Re: using symbolic names in oids

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2009/1/14 Mike Ayers <[email protected]>:
>> > $ snmpwalk -v 2c -c mll-O 'lb001.geni.com vsvrTotHits."www"'
>>
>> The problem with that command is that the shell will swallow
>> the double quotes.   These need to be passed to the SNMP
>> command, so that it can distinguish between implied string
>> index values ('www') and explicit-length ones ("www")
>
>        No, the shell will eat the single quotes on the outside and leave the doubles as-is.  I know this works on bourne shells - are you perhaps using a csh?


No - I'm using bash.

However, I'm also using a relatively small font, and hadn't spotted
the enclosing single quotes.
My apologies.

Ed - either Mike's suggestion or mine should work.
In either case, the effect is to pass the double-quotes round "www"
through to the snmpwalk command.

Dave

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.