RE: using symbolic names in oids

"Mike Ayers" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <83E753BE7B6A324ABB336245BAF1DAAC0A5B5F13@mailserver.metatv-ds.metatv.com>
> From: Ed Greenberg [mailto:[email protected]] 
> Sent: Tuesday, January 13, 2009 7:55 AM

> If I do this:
>     $ snmpwalk -v 2c -c mll-O lb001.geni.com vsvrTotHits.3.119.119.119
> I get this:
> NS-ROOT-MIB::vsvrTotHits."www" = Counter64: 1464380524
> 
> Does it not then follow that I should be able to do this:
>     $ snmpwalk -v 2c -c mll-O lb001.geni.com vsvrTotHits.www
> which unfortunately results in
> vsvrTotHits.www: Unknown Object Identifier (Index out of range: www
> (vsvrName))
> or perhaps this:
>     $ snmpwalk -v 2c -c mll-O lb001.geni.com vsvrTotHits.\"www\"
> which similarly results in:
> vsvrTotHits."www": Unknown Object Identifier (Index out of range: "www
> (vsvrName))
> 
> What am I missing? How can I use the symbolic names?

	Try:

$ snmpwalk -v 2c -c mll-O 'lb001.geni.com vsvrTotHits."www"'

	IIRC, this works on most Unix shells.


	HTH,

Mike

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