On 2 August 2011 21:15, Jo�o Daniel Neves <joaodanielneve...@hotmail.com> wrote:
> OID = An Cisco OID number.
>
> If I ran this command "snmpget -c public -v 2c host OID"
> I got an error that OID could not be found (or something like that).

That will only work if you provide the full OID of a single instance.

You're more likely to see something if you try

     snmpgetnext  -c public -v 2c host OID
or
     snmpwalk  -c public -v 2c host OID




> If I run this command "snmpwalk -c public -v 2c host | grep OID"

That will probably walk the standard MIB objects only
(depending on the version you're using).  That wouldn't
include vendor-specific information



>               "snmpwalk -c public -v 2c host | grep sysUpTime*"
> *for example
>
> I got an "nothing" from grep. Grep haven't found anything.

Hmmm... that's surprising.



> But...surprisingly
> If I ran "snmpwalk -c public -v 2c host OID"
> I got the an answer.

Yes, that's right.

    snmpwalk ... OID

will walk the subtree rooted at the given OID


> Is this difference between snmpwak and snmpget normal?

Yes


> Why just "snmpwalk -c public -v2c host oid" worked?

See above

Dave

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to