From: Ron R. <ron...@ce...> - 2011-03-17 21:01:21
|
> 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. |