|
Question : snmpget returns "Cannot find module" in net-snmp
|
|
How can I get snmpget working ? This is from a Windows XP box
Currently it returns all this :
C:\SNMP\net-snmp\bin>snmpget -v2c -c public 192.168.1.1 system.sysDescr.0 Cannot find module (IP-MIB): At line 0 in (none) Cannot find module (IF-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0 in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find module (SNMPv2-MIB): At line 0 in (none) Cannot find module (SNMPv2-SMI): At line 0 in (none) Cannot find module (UCD-SNMP-MIB): At line 0 in (none) Cannot find module (UCD-DEMO-MIB): At line 0 in (none) Cannot find module (SNMP-TARGET-MIB): At line 0 in (none) Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none) Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none) Cannot find module (UCD-DLMOD-MIB): At line 0 in (none) Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none) Cannot find module (SNMP-MPD-MIB): At line 0 in (none) Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none) Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none) Cannot find module (SNMPv2-TM): At line 0 in (none) system.sysDescr.0: (Sub-id not found: (top) -> system)
- I've copied net-snmp.dll into c:\windows\system32 - I've set snmp.conf (in the same dir as the EXEs) to
mibdirs c:\snmp\net-snmp\share\snmp\mibs persistentDir c:\snmp\net-snmp\snmp\persist tempFilePattern c:\snmp\net-snmp\temp\snmpdXXXXXX
Any ideas ? I get a feeling I need to "install the mibs" but if so how do I do that ?
When I add -m ALL
snmpget v2c -m ALL -c public 192.168.1.1 system.sysDescr.0
I get the error (Sub-id not found).
thanks
|
Answer : snmpget returns "Cannot find module" in net-snmp
|
|
Found it at last
C:\SNMP\net-snmp\bin>set MIBDIRS=C:\SNMP\net-snmp\share\snmp\mibs
C:\SNMP\net-snmp\bin>snmpget -v1 -c public 192.168.1.1 system.sysDescr.0 SNMPv2-MIB::sysDescr.0 = STRING: Cisco PIX Firewall Version 6.3(3)
I had to do that set statement. The snmp documentation is sooooo bad for windows, I've been stuck on this all day !!!
thanks
|
|
|