RE: how can I make the net-snmp do a operation use a variable nameinstead of an oid?

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


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-21-2005
Ying Wang
 
Posts: n/a
Default RE: how can I make the net-snmp do a operation use a variable nameinstead of an oid?

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB 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:32 PM.


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