Re: snmpwalk filtering by oid

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
    [Sorry for the delay in responding to this]


On Fri, 2005-10-28 at 22:47 +0800, tikcireviva wrote:
> I run snmpwalk to get the arp table from my cisco switch with the 
> following command.
>      snmpwalk -v 1 -c public 10.10.10.11
> 
> It then returns a bunch of data... I don't really interested to.
> Could anyone please tell me how to filter out those data
> with other OIDs?

Specify the root of the tree that you're interested in
after the IP address.


> I did the following:
>    snmpwalk -v 1 -c public 10.10.10.11 3.6.1.2.1.3.1.1

Close, but not quite.
You missed out the leading '1'
Try
     snmpwalk -v 1 -c public 10.10.10.11 .1.3.6.1.2.1.3.1.1

or simply

     snmpwalk -v 1 -c public 10.10.10.11 atEntry

or possibly

     snmpwalk -v 1 -c public 10.10.10.11 ipNetToMediaTable

(which is a newer version of the same information).

Dave


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
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.