Solved

SNMPGET outside mac address on a cisco 501

Posted on 2007-03-29
1
425 Views
Last Modified: 2012-08-13
How can I use SNMPGET from inside a cisco 501 to ask it what its outside mac address is ?

In an SNMPWALK command it has the ip address on the LHS so you cant query it unless you know the address already ? Seems a bit backwards!

IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.2 = OID: SNMPv2-SMI::zeroDotZero
IP-MIB::ipAdEntAddr.192.168.0.174 = IpAddress: 192.168.0.174
IP-MIB::ipAdEntAddr.192.168.1.1 = IpAddress: 192.168.1.1
IP-MIB::ipAdEntIfIndex.192.168.0.174 = INTEGER: 1
IP-MIB::ipAdEntIfIndex.192.168.1.1 = INTEGER: 2


thanks
0
Comment
Question by:plq
1 Comment
 
LVL 28

Accepted Solution

by:
batry_boy earned 500 total points
Comment Utility
First, you'll need to enable the SNMP agent on the PIX...see the following link for instructions on the "snmp-server" command:

http://www.cisco.com/en/US/products/sw/secursw/ps2120/products_command_reference_chapter09186a00801cd841.html#wp1191051

You should be able to poll the PIX via SNMP once this has been done.  The following OID should get you info on the MAC address:

The MAC address information is stored in the following SNMP Object Identifier (OID):

dot1dTpFdbTable / 1.3.6.1.2.1.17.4.3

.1.3.6.1.2.1.17.4.3
dot1dTpFdbTable OBJECT-TYPE
        -- FROM BRIDGE-MIB
        DESCRIPTION    "A table that contains information about unicast
                      entries for which the bridge has forwarding and/or
                      filtering information.  This information is used
                      by the transparent bridging function in
                      determining how to propagate a received frame."
::= { iso(1) org(3) dod(6) internet(1) mgmt(2) mib-2(1) dot1dBridge(17) dot1dTp(4) 3 }

See the following URL for where I found this:

http://www.mibdesigner.com/examples/BRIDGE-MIB.html

You should be able to retrieve MAC address information by specifying the above SNMP OID.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Hi All,  Recently I have installed and configured a Sonicwall NS220 in the network as a firewall and Internet access gateway. All was working fine until users started reporting that they cannot use the Cisco VPN client to connect to the customer'…
Before I go to far, let's explain HA (High Availability) and why you should consider it.  High availability is the mechanism used to provide redundancy to any service at the same site and appears as a single service to the users of that service.  As…
This video discusses moving either the default database or any database to a new volume.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now