> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Vinh Nguyen
> Sent: Wednesday, September 19, 2007 4:30 PM

> e.g. if you have one entry with named "abcd", then you would query it
> like this:
> snmpget -v 2c -c public localhost nsIETFWGChair1.4.97.98.99.100
> note:
> 4 = number of entries in the index
> 97,98,99,100 = long values of "a","b","c","d"

        You can also do:

snmpget -v 2c -c public localhost nsIETFWGChair1."abcd"

        ..which generates the same request as the above - a nice little feature 
of net-snmp.  For IMPLIED strings (strings without a length encoding, which may 
only occur as a final index), enclose the string in single quotes.  Those of 
you running Unix-like shells must properly escape the single and double 
quote-marks to use this notation:

snmpget -v 2c -c public localhost 'nsIETFWGChair1."abcd"'


        HTH,

Mike

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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

Reply via email to