Re: Windows and Net-SNMP
Juan Silva <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hello Gary ! My first suggestion will be to test the command using the actual OID number, and sysUpTime.0 (instead of sysUpTime), just in case. The tutorial uses system.sysUpTime.0 for your command. ( http://www.net-snmp.org/tutorial/tutorial-5/commands/snmpget.html ) The "Retrieving a Single MIB Value" and "Retrieving Multiple MIB Values" sections in Chapter 7 of O'reilly's "Essential SNMP" book, second edition, include sample commands and perl scripts that I found the most useful to test Net-SNMP. You probably have seen those already. My second suggestion would be to restart the NetSNMP agent to make sure your changes to config are implemented. Not sure if this will fix your problem, but double check just in case. It is a simple fix but can save you time if this is it. If the restart does not work for you, I would recommend you double check the code in your config files and file locations. Regarding the restart of the SNMP agent, I was also getting errors after making configuration changes because I had not restarted the SNMP agent (I describe below how to restart it, so you can give it a try). Note: I believe it was not needed to reboot Windows. After installation you need to go to the Windows Control Panel --> Administrative Tools --> Services. There scroll down until you find the NetSNMP Agent. If it reads "Started", right-click on it and select "Stop". It will take just a few seconds. After is has been stopped, right-click again and select "Start". Else, if it does not read "Started", right-click and select "Start". Then try your command again. Hope this helps... Juan gary clark <[email protected]> wrote: Hey, I have a quick question regarding Net-SNMP on windows: Just installed Net-SNMP 5.1.3. Built snmpd and setup the snmpd.conf file. Ran the command: snmpd -a -d -Lf tempfile I then perform the command: snmpget -v 2c -c public localhost sysUpTime on the same machine: When examining the tempfile, I can see that the agent received the SNMP GET request: Received SNMP packet(s) from UDP: [127.0.0.1]:1443 GET message -- SNMPv2-MIB::sysUpTime Sending 94 Bytes to UDP:[127.0.0.1]:162 Ok I get a timeout on the snmpget and dont see any sysUpTime? Any ideas? Thanks, Garyc -- SNMPv2-MIB::sysUpTime ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users --------------------------------- Want to be your own boss? Learn how on Yahoo! Small Business. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users