This is a discussion on strange snmptranslate behaviour within the SNMP Coders forums, part of the Networking and Network Related category; Am I missing something? % snmpwalk -Os -c communitystring -v 1 hostname sysDescr sysDescr.0 = STRING: 3Com SuperStack 3 % snmptranslate -Tp ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Am I missing something?
% snmpwalk -Os -c communitystring -v 1 hostname sysDescr sysDescr.0 = STRING: 3Com SuperStack 3 % snmptranslate -Tp system No log handling enabled - turning on stderr logging system: Unknown Object Identifier (Sub-id not found: (top) -> system) % snmptranslate -Tp iso +--iso(1) | +--org(3) | +--dod(6) | +--internet(1) | +--directory(1) | +--mgmt(2) | | | +--mib-2(1) | | | +--system(1) | | | | | +-- -R-- String sysDescr(1) | | | Textual Convention: DisplayString | | | Size: 0..255 .... If I use anything other than iso with snmptranslate I get the error about Sub-id not found, yet snmpwalk works. Hm even curiouser (going through the examples in snmptranslate) % snmptranslate -On -IR sysDescr ..1.3.6.1.2.1.1.1 % snmptranslate -Onf -IR sysDescr ..iso.org.dod.internet.mgmt.mib-2.system.sysDescr % snmptranslate -Td -OS system.sysDescr No log handling enabled - turning on stderr logging system.sysDescr: Unknown Object Identifier (Sub-id not found: (top) -> system) % snmptranslate -Td -OS iso iso iso OBJECT-TYPE -- FROM #-1 ::= { 1 } which points to needing a -T argument for snmptranslate to not find the Sub-id. (This is today's cvs code under netbsd-current/i386) Cheers, Patrick ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders |
![]() |
| Thread Tools | |
| Display Modes | |
|
|