2924XL SNMP MAC Table Read Oddity

Discussion in 'Cisco' started by Steven Carr, Feb 23, 2008.

  1. Steven Carr

    Steven Carr Guest

    Can anyone help with this, it's got me puzzled as to why I can't obtain
    the MAC table via SNMP from my 2924XL switches...

    IOS (tm) C2900XL Software (C2900XL-C3H2S-M), Version 12.0(5)WC17,
    RELEASE SOFTWARE (fc1)

    From the Telnet session:
    > loft-sw01#show mac
    > Dynamic Address Count: 12
    > Secure Address Count: 0
    > Static Address (User-defined) Count: 0
    > System Self Address Count: 49
    > Total MAC addresses: 61
    > Maximum MAC addresses: 2048
    > Non-static Address Table:
    > Destination Address Address Type VLAN Destination Port
    > ------------------- ------------ ---- --------------------
    > 000d.934a.cd22 Dynamic 2 FastEthernet0/3
    > 0011.2433.9ada Dynamic 2 FastEthernet0/2
    > 0016.cbab.289b Dynamic 2 FastEthernet0/4
    > 0016.cbc3.a595 Dynamic 3 FastEthernet0/23
    > 0017.f2f9.f0d8 Dynamic 3 FastEthernet0/12
    > 0019.bbf3.7e5b Dynamic 2 FastEthernet0/6
    > 001b.543a.1fe6 Dynamic 1 FastEthernet0/23
    > 001b.543a.1fe6 Dynamic 2 FastEthernet0/24
    > 001b.543a.1fe6 Dynamic 3 FastEthernet0/23
    > 001b.543a.1fe8 Dynamic 1 FastEthernet0/24
    > 001b.543a.1fe9 Dynamic 1 FastEthernet0/23
    > 00d0.b7e0.c8de Dynamic 2 FastEthernet0/5


    But over SNMP:
    > server ~ # snmpwalk -c xxxxxx -v2c loft-sw01 .1.3.6.1.2.1.17.4.3.1.1
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.4.192.119.30.128 = Hex-STRING: 00 04 C0 77 1E 80
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.4.192.119.30.129 = Hex-STRING: 00 04 C0 77 1E 81
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.4.192.119.30.130 = Hex-STRING: 00 04 C0 77 1E 82
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.4.192.119.30.131 = Hex-STRING: 00 04 C0 77 1E 83
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.4.192.119.30.132 = Hex-STRING: 00 04 C0 77 1E 84
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.4.192.119.30.133 = Hex-STRING: 00 04 C0 77 1E 85
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.4.192.119.30.134 = Hex-STRING: 00 04 C0 77 1E 86
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.4.192.119.30.135 = Hex-STRING: 00 04 C0 77 1E 87
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.4.192.119.30.136 = Hex-STRING: 00 04 C0 77 1E 88
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.4.192.119.30.137 = Hex-STRING: 00 04 C0 77 1E 89
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.4.192.119.30.138 = Hex-STRING: 00 04 C0 77 1E 8A
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.4.192.119.30.139 = Hex-STRING: 00 04 C0 77 1E 8B
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.4.192.119.30.140 = Hex-STRING: 00 04 C0 77 1E 8C
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.4.192.119.30.141 = Hex-STRING: 00 04 C0 77 1E 8D
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.4.192.119.30.142 = Hex-STRING: 00 04 C0 77 1E 8E
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.4.192.119.30.143 = Hex-STRING: 00 04 C0 77 1E 8F
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.4.192.119.30.144 = Hex-STRING: 00 04 C0 77 1E 90
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.4.192.119.30.145 = Hex-STRING: 00 04 C0 77 1E 91
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.4.192.119.30.146 = Hex-STRING: 00 04 C0 77 1E 92
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.4.192.119.30.147 = Hex-STRING: 00 04 C0 77 1E 93
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.4.192.119.30.148 = Hex-STRING: 00 04 C0 77 1E 94
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.4.192.119.30.149 = Hex-STRING: 00 04 C0 77 1E 95
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.4.192.119.30.150 = Hex-STRING: 00 04 C0 77 1E 96
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.4.192.119.30.151 = Hex-STRING: 00 04 C0 77 1E 97
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.4.192.119.30.152 = Hex-STRING: 00 04 C0 77 1E 98
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.27.84.58.31.230 = Hex-STRING: 00 1B 54 3A 1F E6
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.27.84.58.31.232 = Hex-STRING: 00 1B 54 3A 1F E8
    > SNMPv2-SMI::mib-2.17.4.3.1.1.0.27.84.58.31.233 = Hex-STRING: 00 1B 54 3A 1F E9


    Any help/guidance/slap on the wrist if I've made a mistake would be
    appreciated.

    Thanks

    Steve

    --
    Steve Carr
    http://gpf.me.uk


    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.8 (Darwin)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

    iEYEARECAAYFAkfAJKgACgkQg6K71gPSyTBi4ACggoS8O9uilIYFjUJJMr+uFJ9X
    2/sAn3J5WqncKN1J4Uw6GqjbpoibJD4L
    =WkOJ
    -----END PGP SIGNATURE-----
     
    Steven Carr, Feb 23, 2008
    #1
    1. Advertising

  2. Steven Carr

    Merv Guest

    Merv, Feb 23, 2008
    #2
    1. Advertising

  3. Steven Carr

    Steven Carr Guest

    Merv wrote:
    > a modifued community string in that you append "@<vlan no>" at the end
    > of the community string


    You're a star :) works a treat, thanks alot

    --
    Steve Carr
    http://gpf.me.uk


    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.8 (Darwin)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

    iEYEARECAAYFAkfAYbcACgkQg6K71gPSyTBCTACgj+CaP3zs5Yf5v2hkCNNfbqfa
    6csAnA6C3hdvvYElpMvWcLjSEuuUL+vq
    =uFBw
    -----END PGP SIGNATURE-----
     
    Steven Carr, Feb 23, 2008
    #3
  4. Steven Carr

    Steven Carr Guest

    Merv wrote:
    > a modifued community string in that you append "@<vlan no>" at the end
    > of the community string


    One more question...

    This is all for part of my uni project, network monitoring/MAC tracking
    system - would you recommend using SNMP to obtain the MAC table &
    interface and then match them up, or zip in over telnet and get it using
    the "show mac-address-table" command and then parse the output. I know
    it both gets me the same information but which is going to be the faster.

    --
    Steve Carr
    http://gpf.me.uk


    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.8 (Darwin)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

    iEYEARECAAYFAkfAfxAACgkQg6K71gPSyTDAfQCgjUPr53deUTsE+R5o553lks8b
    LCQAn0Np5gUIOaLYGiIrJDQKtd04AADp
    =gv73
    -----END PGP SIGNATURE-----
     
    Steven Carr, Feb 23, 2008
    #4
  5. Steven Carr

    Merv Guest

    On Feb 23, 3:16 pm, Steven Carr <> wrote:
    > Merv wrote:
    > > a modifued community string in that you append "@<vlan no>" at the end
    > > of the community string

    >
    > One more question...
    >
    > This is all for part of my uni project, network monitoring/MAC tracking
    > system - would you recommend using SNMP to obtain the MAC table &
    > interface and then match them up, or zip in over telnet and get it using
    > the "show mac-address-table" command and then parse the output. I know
    > it both gets me the same information but which is going to be the faster.
    >
    > --
    > Steve Carrhttp://gpf.me.uk
    >
    > signature.asc
    > 1KDownload


    not sure as I have never tried doing this type of comparison.

    if you have time do both for the learning experience
     
    Merv, Feb 23, 2008
    #5
  6. Steven Carr

    Guest

    On 23 Feb, 20:51, Merv <> wrote:
    > On Feb 23, 3:16 pm, Steven Carr <> wrote:
    >
    >
    >
    >
    >
    > > Merv wrote:
    > > > a modifued community string in that you append "@<vlan no>" at the end
    > > > of the community string

    >
    > > One more question...

    >
    > > This is all for part of my uni project, network monitoring/MAC tracking
    > > system - would you recommend using SNMP to obtain the MAC table &
    > > interface and then match them up, or zip in over telnet and get it using
    > > the "show mac-address-table" command and then parse the output. I know
    > > it both gets me the same information but which is going to be the faster.

    >


    I have not a clue - however:-

    The SNMP will involve a 'transaction' for each VLAN
    the telnet method is a single command for all VLAN

    Against that it is possible that setting up the telnet
    session may have more overhead - particularly if
    fancy authentication is used.

    Have you considered rcommand.http? Just to
    add confusion:)
     
    , Feb 25, 2008
    #6
  7. Steven Carr

    Steven Carr Guest

    wrote:
    > Have you considered rcommand.http? Just to
    > add confusion:)


    haven't got a clue what that is...


    --
    Steve Carr
    http://gpf.me.uk


    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.8 (Darwin)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

    iEYEARECAAYFAkfNlaEACgkQg6K71gPSyTD48wCeMaTDAgpMh9MDOzT+zZJsUKnM
    PzkAn3zyRJdRn6VTYP6YdjscxMwf5mSX
    =hMvU
    -----END PGP SIGNATURE-----
     
    Steven Carr, Mar 4, 2008
    #7
  8. Steven Carr

    Guest

    On 4 Mar, 19:31, Steven Carr <> wrote:
    > wrote:
    > > Have you considered rcommand.http? Just to
    > > add confusion:)

    >
    > haven't got a clue what that is...


    I meant rsh or http.
    rcommand is something else.

    ip rcmd rcp-enable
    Configures the Cisco IOS software to allow remote users to
    copy files to and from the router.

    This may work for configs.

    ip rcmd rsh-enable
    Configures the router to allow remote users to execute
    commands on it using the rsh protocol.
     
    , Mar 7, 2008
    #8
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jim Kirby
    Replies:
    1
    Views:
    4,155
    xfiles
    Oct 1, 2007
  2. Michel Lapointe

    Listing MAC Table with SNMP

    Michel Lapointe, Nov 6, 2003, in forum: Cisco
    Replies:
    2
    Views:
    4,730
    Michel Lapointe
    Nov 7, 2003
  3. Ed Simmons
    Replies:
    0
    Views:
    474
    Ed Simmons
    Mar 3, 2004
  4. Ed Simmons
    Replies:
    2
    Views:
    2,045
    Ant Mahoney
    Mar 6, 2004
  5. John Ramsden
    Replies:
    0
    Views:
    980
    John Ramsden
    Jul 24, 2004
Loading...

Share This Page