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

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 06/11/2007, xuxudong <[email protected]> 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
[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.