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!
”segment fault" occurs, snmpd stops, and the debug information stops at:
……
trace: netsnmp_handle_request(): snmp_agent.c, 2975:
results: request results (status = 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:[EMAIL PROTECTED]
Sent: 2005年9月21日 16:30
To: Ying Wang(CD)
Cc: [email protected]
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 ’:’ separated list of mib tokens that represent
textual mib files that should be found and parsed. If the
directive value starts with a ’+’ 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
-------------------------------------------------------
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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users