Last modified: Aug. 6, 2008
Contents
1 - Summary
2 - Dependencies
3 - Net-SNMP installation
4 - Service configuration
5 - Snmpwalk example
6 - Service check
1 - Summary
This guide will show you how to install net-snmp in Windows 2003. For this
guide to work you will need to be running Windows 2003.
2 - Dependencies
You will need to install the Windows SNMP service, and then disable the two
services. Navigate to the Control Panel, and go to Add/Remove Windows
Components. Double-click on the Management and Monitoring Tools component.
Click the check box next to Simple Network Management Protocol.
You will be prompted to insert the Windows 2003 CD. After the wizard completes
the Windows SNMP service will be installed. Now, we will disable the two
services. Type the following in at Run button on the Start Menu. This will
open the management console for services.
services.msc /s
Stop each of the following services and then change their startup type to be
Disabled.
Both of the Windows SNMP services have now been stopped and disabled from
starting at boot.
3 - Net-SNMP installation
Download the net-snmp binary for Windows at http://net-snmp.sourceforge.net/.
Run the installer and make sure to choose the Windows Extension DLL support.
Change the destination folder to be C:\Program Files\Net-SNMP\usr and continue
with the installation.
Register the net-snmp service by clicking on Register Agent Service.
After running this you will get a message that says the Net-SNMP Agent
successfully registered as a service.
4 - Service configuration
Make it so the net-snmp service starts at boot time. Type the following in at
Run button on the Start Menu. This will open the management console for
services.
services.msc /s
Set the Net-SNMP Agent service to have it's startup type to be Automatic.
The configuration file that net-snmp will use is located in the following
directory.
C:\Program Files\Net-SNMP\usr\etc\snmp\snmpd.conf
You can create your own configuration file. Here is a simple example.
rocommunity public 127.0.0.1
Open a command prompt and start the net-snmp service.
The service has successfully started.
5 - Snmpwalk example
Run snmpwalk to view the SNMP tree. This example displays the system
description.
6 - Service check
Reboot your computer. Log in like normal and check to see that the net-snmp
service is running. Type the following in at Run button on the Start Menu.
This will open the management console for services.
services.msc /s
Check to make sure that the net-snmp has started.
That's it, now you have net-snmp running on Windows 2003.
|