Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: help,how to use snmpget to get at information

0 views
Skip to first unread message

Dave Shield

unread,
Nov 6, 2007, 7:07:12 AM11/6/07
to
On 06/11/2007, xuxudong <xuxu...@itgchn.com> wrote:
> I used net-snmp 5.1.1, have set up it successfully.
> When I want use snmpget to get AT table's information.
> But I can't get result , I can use snmpwalk and get the result like this:
>
> snmpwalk -v 2c -c public 127.0.0.1 at
>
> RFC1213-MIB::atIfIndex.2.1.192.168.4.65 = INTEGER: 2
> RFC1213-MIB::atPhysAddress.2.1.192.168.4.65 = Hex-STRING: 00 0F E2 13 0D 86
> RFC1213-MIB::atNetAddress.2.1.192.168.4.65 = Network Address: C0:A8:04:41:00:00:00:00
>
>
> So, I want to know how to use snmpget

Try
snmpget -v 2c -c public 127.0.0.1 attIfIndex.2.1.192.168.4.65
snmpget -v 2c -c public 127.0.0.1 atPhysAddress.2.1.192.168.4.65
snmpget -v 2c -c public 127.0.0.1 atNetAddress.2.1.192.168.4.65

or even

snmpget -v 2c -c public 127.0.0.1 attIfIndex.2.1.192.168.4.65
atPhysAddress.2.1.192.168.4.65 atNetAddress.2.1.192.168.4.65

(all as one line)

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Net-snmp-users mailing list
Net-snm...@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

0 new messages