Solved

SNMPGET outside mac address on a cisco 501

Posted on 2007-03-29
1
456 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
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Broadband over Power Lines Broadband over Power Lines is the technology of transmitting computer data through power lines. This method of connectivity allows the user to have access to the internet without having to rely on additional cables, suc…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

831 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