Solved

SNMPGET outside mac address on a cisco 501

Posted on 2007-03-29
1
467 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
Arrow Electronics was searching for a KVM  (Keyboard/Video/Mouse) switch that could display on one single monitor the current status of all units being tested on the rack.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

739 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