# Configuring SNMP Agents SNMP, or Simple Network Management Protocol, is a crucial component for network management, allowing OpManager to effectively monitor and manage network devices. An SNMP Agent is a very small file that is installed on a network device. The agent collects and sends its operational data to an SNMP manager, for easy network monitoring and management. This help document will guide you through the process of configuring SNMP Agent on a Windows system. - [Configuring SNMP agent in Windows XP/2000,2003](https://www.manageengine.com/network-monitoring/help/configuring-snmp-agents.html#configuringsnmp) - [Configuring SNMP agent in Windows NT](https://www.manageengine.com/network-monitoring/help/configuring-snmp-agents.html#windowsnt) - [Configuring SNMP agent in Linux versions prior to 8](https://www.manageengine.com/network-monitoring/help/configuring-snmp-agents.html#linux) - [Configuring the Agent in Linux versions 8 and above](https://www.manageengine.com/network-monitoring/help/configuring-snmp-agents.html#linuxver8) - [Configuring SNMP agent in Solaris](https://www.manageengine.com/network-monitoring/help/configuring-snmp-agents.html#solaris) ## Configuring SNMP Agent in Windows XP, 2000, and 2003 Systems For details about installing SNMP agents in Windows systems, refer to this [help document](https://manageengine.com/network-monitoring/help/install-snmp-windows.html) on Installing SNMP Agent on Windows Systems. ### To configure SNMP agent in Windows XP and 2000 systems, follow the steps given below: ![To configure snmp agents: Configuration in Windows XP and 2000 systems](https://www.manageengine.com/network-monitoring/help/images/SNMP-2.png) 1. Click **Start**, point to **Settings**, click **Control Panel**. 2. Under Administrative Tools, click **Services**. 3. In the Details tab, right-click **SNMP Service** and select **Properties**. 4. In the **Security** tab, select **Send authentication trap** if you want a trap message to be sent whenever authentication fails. 5. Under Accepted community names, click **Add**. 6. Under **Community Rights**, select a permission level for this host to process SNMP requests from the selected community. 7. In **Community Name**, type a case-sensitive community name, and then click **Add**. 8. Specify whether or not to accept SNMP packets from a host: - To accept SNMP requests from any host on the network, regardless of identity, click **Accept SNMP packets from any host**. - To limit acceptance of SNMP packets, click **Accept SNMP packets from these hosts**, click **Add**, type the appropriate host name, IP or IPX address, and then click **Add** again. 9. Click **Apply** to apply the changes. ### To configure SNMP traps, follow the steps given below: 1. Click **Start**, point to **Settings**, click **Control Panel**. 2. Under Administrative Tools, click **Services**. 3. In the details pane, right-click **SNMP Service** and select **Properties**. 4. In the **Traps** tab, under **Community name**, type the case-sensitive community name to which this computer will send trap messages, and then click **Add** to list. 5. Under **Trap destinations**, click **Add**. 6. In the **Host name, IP or IPX** address field, type host name or its IP address of the server (OpManager server) to send the trap, and click **Add**. 7. Repeat steps 5 through 7 until you have added all the communities and trap destinations you want. 8. Click **OK** to apply the changes. ## Configuring SNMP Agent in Windows NT Systems To configure SNMP agent in Windows NT systems, follow the steps given below: - Click **Start**, point to **Settings**, click **Control Panel**. - Under Administrative Tools, click **Services**. - In the details pane, right-click **SNMP Service** and select **Properties**. - In the **Security** tab, select **Send authentication trap** if you want a trap message to be sent whenever authentication fails. - Under **Accepted Community Names**, click **Add**. - In the Community Names box, type the community name to authenticate the SNMP requests. - To move the name to the Accepted Community Names list, click **Add**. - Repeat steps 6 and 7 for any additional community name. - To specify whether to accept SNMP packets from any host, or from only specified hosts, click one of two options: - **Accept SNMP Packets From Any Host**, if no SNMP packets are to be rejected on the basis of source computer ID. - **Only Accept SNMP Packets From These Hosts**, if SNMP packets are to be accepted only from the computers listed. To designate specific hosts, click **Add**, type the names or addresses of the hosts from which you will accept requests in the IP Host or IPX Address box, and then click **Add**. - Repeat step 11 for any additional hosts. - In the **Agent** tab, specify the appropriate information (such as comments about the user, location, and services). - Click **OK** to apply the changes. Further, the SNMP Agent running Windows NT does not respond to Host Resource Data, by default. To include this support, you should have Windows NT Service Pack 6 & above. Verify this and then follow the steps given below: **Note:** Windows NT 4.0 Server does NOT come with a Host Resource MIB. ### If you are running Windows NT Service Pack 6a, and have a Windows 2000 Server: **Step 1. Copy the %SystemRoot%\System32\hostmib.dll file from the Windows 2000 Server to the %SystemRoot%\System32 folder on your Windows NT 4.0 Server.** **Notes:** - C:\WinNT is the value of %SystemRoot% - If you don't have a Windows 2000 Server, you can download the hostmib.dll file from [http://bonitas2.zohocorp.com/zipUploads/2018_06_01_09_53_53_o_1cespfn5tllr1hc5uv9uc8rmi1.tar.gz](http://bonitas2.zohocorp.com/zipUploads/2018_06_01_09_53_53_o_1cespfn5tllr1hc5uv9uc8rmi1.tar.gz) - If the above file is not compatible, you may download the compatible version from below page: [https://www.pconlife.com/fileinfo/hostmib.dll-info/](https://www.pconlife.com/fileinfo/hostmib.dll-info/) **Step 2. From cmd-prompt > Run regedit or Regedt32 and add the following keys and values:** **Key:** HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HostMIB\CurrentVersion **Value Name:** Pathname **Type:** REG_SZ **Data:** C:\WinNT\system32\hostmib.dll **Key:** HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\ExtensionAgents **Value Name:** 3 **Type:** REG_SZ **Data:** HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HostMIB\CurrentVersion **For registering the DLL using Microsoft REGSVR utility, follow below steps:** - Copy the file to "C:\Windows\SysWOW64\" (for 32bit) **OR** copy the file to "C:\Windows\System32\" (for 64bit) - You should be able to copy the .dll file in both above said system folders without any problems. In order to complete this step, you must run the Command Prompt as an administrator. - Open the Start Menu and type "cmd" on your keyboard. Right-click the "Command Prompt" search result and click the "Run as administrator" option. - Paste the following command into the Command Line window that opens up and press Enter key. **For 32 bit:** ``` %windir%\System32\regsvr32.exe hostmib.dll ``` **For 64 bit:** ``` %windir%\SysWoW64\regsvr32.exe hostmib.dll ``` - Restart your Windows NT box. ### To Configure SNMP Traps, follow the steps given below: - Click **Start**, point to **Settings**, and then click **Control Panel**. Double-click **Administrative Tools**, and then double-click **Services**. - In the details pane, click **SNMP Service**, and then click **Properties**. - Click the **Traps** tab. - To identify each community to which you want this computer to send traps, type the name in the Community Name box. Community names are case sensitive. - After typing each name, click **Add** to add the name to the list. - To specify hosts for each community you send traps to, after you have added the community and while it is still highlighted, click **Add** under Trap Destination. - To move the name or address to the Trap Destination list for the selected community, type the host name in the IP Host/Address or IPX Address box, and then click **Add**. - Repeat step 10 for any additional hosts. - Click **OK** to apply the changes. ## Configuring the Agent in Linux versions prior to 8 - Stop the agent if it is running already using the command: **/etc/rc.d/init.d/snmpd stop** - Make the following changes in */etc/rc.d/init.d/snmpd* file: - Replace the line **daemon /usr/sbin/snmpd $OPTIONS** with **daemon /root/ucd_agent/sbin/snmpd $OPTIONS** - Replace the line **killproc /usr/sbin/snmpd** with **killproc /root/ucd_agent/sbin/snmpd** This is to choose the current installed version while starting and stopping the SNMP agent. - Start the agent using the command: **/etc/rc.d/init.d/snmpd start** ## Configuring the Agent in Linux versions 8 and above On Linux versions 8 and above, the latest version of SNMP will already be available. You need to just make the following changes in **snmpd.conf file:** - Insert the line *view allview included .1.3.6* next to the line *# name incl/excl subtree mask(optional)* - Change the line *access notConfigGroup "" any noauth exact systemview none none* next to the line *# group context sec.model sec.level prefix read write notif* as *access notConfigGroup "" any noauth exact allview none none* - Then restart the snmp agent using the following command: */etc/rc.d/init.d/snmpd restart* ## Configuring the Agent in Solaris Systems For details about installing SNMP agents in Solaris systems, refer to [installing SNMP Agent on Solaris Systems](https://manageengine.com/network-monitoring/help/install-snmp-solaris.html). - Stop the agent if it is running already using the following command: */etc/init.d/init.snmpdx stop* - Make the following changes in /etc/init.d/init.snmpdx file: - Replace the lines *if [ -f /etc/snmp/conf/snmpdx.rsrc -a -x /usr/lib/snmp/snmpdx ]; then /usr/lib/snmp/snmpdx -y -c /etc/snmp/conf -d 3 -f 0 fi* with */sbin/snmpd* - Replace the line */usr/bin/pkill -9 -x -u 0 '(snmpdx|snmpv2d|mibiisa)'* with */usr/bin/pkill -9 -x -u 0 '(snmpd)'* - Restart the agent using the following command: */etc/init.d/init.snmpdx start.*