From: Neil Moore (neil@droopy.com)
Date: Thu Dec 19 2002 - 11:48:07 GMT-3
Here is my snmpwalk
%ping 10.10.10.5
%snmpwalk 10.10.10.5 ccie|grep 10.10.10.100
at.atTable.atEntry.atIfIndex.1.1.10.10.10.100 = 1
at.atTable.atEntry.atPhysAddress.1.1.10.10.10.100 = Hex: 00 02 2A BE DA 21
at.atTable.atEntry.atNetAddress.1.1.10.10.10.100 = Network Address:
0A:0A:0A:64
ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaIfIndex.1.10.10.10.100 =
1
ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaPhysAddress.1.10.10.10.10
0 = 0:2:2a:be:da:21
ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaNetAddress.1.10.10.10.100
= IpAddress: 10.10.10.100
ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaType.1.10.10.10.100 =
dynamic(3)
My mac address is 0:2:2a:be:da:21
Try a similar snmpwalk with a grep of a machine you know is in the table to
find the mib location.
Hope that helps
----------------------------------------
Neil Moore CCIE#10044
----- Original Message -----
From: "Weidong Xiao" <Weidong.Xiao@vi.net>
To: <ccielab@groupstudy.com>
Sent: Thursday, December 19, 2002 7:20 AM
Subject: OT: SNMP query
> Hello group,
>
> How to get the "sh mac" results from a switch? What is the variable-name
for those mac addresses?
>
> I used "snmpwalk <machine> <community-string>" on a Linux host and got the
whole stuff from a switch, but couldn't find anything relating to "sh mac"
results on the switch. Is it feasible to get the those mac addresses via
SNMP?
>
> Thanks,
>
> Weidong
> .
.
This archive was generated by hypermail 2.1.4 : Fri Jan 17 2003 - 17:21:49 GMT-3