This is a discussion on RE: how can I make the net-snmp do a operation use a variable nameinstead of an oid? within the SNMP Users forums, part of the Networking and Network Related category; Hi Dave, Thanks for your kindly help! I tried it, but a boring problem is still encountered, as following: If ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi Dave,
Thanks for your kindly help! I tried it, but a boring problem is still encountered, as following: If a table has multi-index, the translation will failed! =A1=B1segment fault" occurs, snmpd stops, and the debug information = stops at: =A1=AD=A1=AD trace: netsnmp_handle_request(): snmp_agent.c, 2975: results: request results (status =3D 0): trace: netsnmp_handle_request(): snmp_agent.c, 2978: results: (stop here!) At the same time, the translation to scalars and uni-index tables are = ok. Yolanda -----Original Message----- From: Dave Shield [mailto:D.T.Shield@csc.liv.ac.uk]=20 Sent: 2005=C4=EA9=D4=C221=C8=D5 16:30 To: Ying Wang(CD) Cc: net-snmp-users@lists.sourceforge.net Subject: Re: how can I make the net-snmp do a operation use a variable = nameinstead of an oid? On Wed, 2005-09-21 at 16:18 +0800, Ying Wang(CD) wrote: > I want to do like this: snmpwalk -v 1 -c public 127.0.0.1 xxSystem. $ man snmp.conf mibs (mib-tokens|+mib-tokens) Specifies a =A1=AF:=A1=AF separated list of mib tokens that = represent textual mib files that should be found and parsed. If the directive value starts with a =A1=AF+=A1=AF it prepends this = list to the front of the default mib token list Assuming 'xxSystem' is defined in the MIB file XX-MIB, then try creating a file $HOME/snmp.conf and adding the line: mibs +XX-MIB Note that this goes in the 'snmp.conf' library config file, *not* the agent's 'snmpd.conf' file. That 'd' is important! Dave =09 ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |