strange snmptranslate behaviour

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 ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-04-2005
Patrick Welche
 
Posts: n/a
Default strange snmptranslate behaviour

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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:59 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0