RE: snmpwalk works, but snmpget doesn't?

"Ron Rader" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <C88FF64CFD06EE4B91C5B89CD48379FE71A7F7@dellserver.cipheroptics.local>
> snmpwalk -c my_comm -v 2c nsp.web-ster.com
.1.3.6.1.4.1.9.10.27.1.2.1.1
> SNMPv2-SMI::enterprises.9.10.27.1.2.1.1.0 = INTEGER: 0
> 
> :snmpget -c my_comm -v 2c nsp.web-ster.com
.1.3.6.1.4.1.9.10.27.1.2.1.1
> SNMPv2-SMI::enterprises.9.10.27.1.2.1.1 = No Such Instance currently
> exists at this OID
> 
> How can snmpwalk find the data, but if I snmpget it directly it
doesn't
> work?

  Try the following:

snmpget -c my_comm -v 2c nsp.web-ster.com .1.3.6.1.4.1.9.10.27.1.2.1.1.0

  Walk will proceed along the OID path until it is told there are no
more data; get needs an exact OID.  So you can hand snmpwalk an inexact
chunk of the OID tree and it will return all child data.  Example: your
<oid>.0.

  Ron



The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting all copies. Thank you.

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
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.