Re: Please correct my understanding regarding snmpwalk

Fredrik Björk <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi!

Just like JMJ wrote, the device that is supposed to answer the request 
has not implemented that specific OID/MIB tree. If you run the walk 
detailed below, you'll see that it jumps directly to .1.3.6.1.4.1.8072.2 
and never dives into .1.3.6.1.4.1.8072.1 since the first OID the SNMP 
agent responds with is not .1 (since it isn't implemented) but .2.someting.

$ snmpbulkwalk -On -v 2c -c public 127.0.0.1 .1.3.6.1.4.1.8072

-On gives you only numeric output so you see the OID numbers. I think 
that'll give you a good idea on this matter.

Btw, snmpbulkwalk is a whole lot faster than snmpwalk on v 2c or higher.

/Fredrik


$ snmptranslate .1.3.6.1.4.1.8072.2

Den 2016-03-18 kl. 12:01, skrev Jurkiewicz Jean-Marc:
>
> Hi,
>
> Snmptranslate knows what .1.3.6.1.4.1.8072.2 is, but the equipment ( 
> localhost in this case) has no “answer” to that request: No Such 
> Object available on this agent at this OID
>
> Best regards
>
> JMJ
>
> *De :*Aslam Abbas [mailto:[email protected]]
> *Envoyé :* vendredi, 18. mars 2016 11:50
> *À :* [email protected]
> *Objet :* Please correct my understanding regarding snmpwalk
>
> $ snmptranslate .1.3.6.1.4.1.8072.1
> NET-SNMP-MIB::netSnmpObjects
>
>
> $ snmptranslate .1.3.6.1.4.1.8072.2
> NET-SNMP-EXAMPLES-MIB::netSnmpExamples
>
> So I am looking at two OIDs. .1.3.6.1.4.1.8072.1 and .1.3.6.1.4.1.8072.2.
> If I do an snmpwalk on the first
> $ snmpwalk -mALL -v 2c -c public localhost .1.3.6.1.4.1.8072.1
> NET-SNMP-AGENT-MIB::nsModuleName."".1.0.0 = STRING:
> NET-SNMP-AGENT-MIB::nsModuleName."".1.1.0 = STRING:
> NET-SNMP-AGENT-MIB::nsModuleName."".1.2.0 = STRING:
> NET-SNMP-AGENT-MIB::nsModuleName."".7.1.3.6.1.2.1.4.127 = STRING: ip
> ....
> ...
> ...
>
> I can see all the values. But if I do on the second one.
>
> $ snmpwalk -mALL -v 2c -c public localhost .1.3.6.1.4.1.8072.2
> NET-SNMP-EXAMPLES-MIB::netSnmpExamples = No Such Object available on 
> this agent at this OID
>
> What am I missing here? Why does it say no object when I can do an 
> snmptranslate?
> /usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt contains a trap 
> definition for netSnmpExampleHeartbeatRate. I was trying to see if I 
> could get the netSnmpExampleHeartbeatRate value by doing a snmpwalk 
> and then greping from it.
>
> My /etc/snmp/snmpd.conf has the following view:
>
>  view all       included   .1         80
>
> Thanks,
>
> *Aslam Abbas*
>
> about.me/aslamabbas
>
> Aslam Abbas on about.me
>
>
>
> ------------------------------------------------------------------------------
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
>
>
> _______________________________________________
> 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

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140

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