?
Solved

SNMPGET outside mac address on a cisco 501

Posted on 2007-03-29
1
Medium Priority
?
519 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 2000 total points
ID: 18822859
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

Free recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Optimal Xbox 360 connectivity requires "OPEN NAT". If you use Juniper Netscreen or SSG firewall products in a home setting, the following steps will allow you get rid of the dreaded warning screen below and achieve the best online gaming environment…
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month16 days, 11 hours left to enroll

862 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