Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Cisco > 2924XL SNMP MAC Table Read Oddity

Reply
Thread Tools

2924XL SNMP MAC Table Read Oddity

 
 
Steven Carr
Guest
Posts: n/a
 
      02-23-2008
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

iEYEARECAAYFAkfAJKgACgkQg6K71gPSyTBi4ACggoS8O9uilI YFjUJJMr+uFJ9X
2/sAn3J5WqncKN1J4Uw6GqjbpoibJD4L
=WkOJ
-----END PGP SIGNATURE-----

 
Reply With Quote
 
 
 
 
Merv
Guest
Posts: n/a
 
      02-23-2008

looks like you got the static MAC's and the dynamic MACS for VLAN 1


see Cisco doc "How To Get Dynamic CAM Entries (CAM Table) for Catalyst
Switches"

http://cco.cisco.com/en/US/tech/tk64...80094a9b.shtml

to get each dynamic CAN entry - you need to retriev one VLAN at a time
using

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





 
Reply With Quote
 
 
 
 
Steven Carr
Guest
Posts: n/a
 
      02-23-2008
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+CaP3zs5Y f5v2hkCNNfbqfa
6csAnA6C3hdvvYElpMvWcLjSEuuUL+vq
=uFBw
-----END PGP SIGNATURE-----

 
Reply With Quote
 
Steven Carr
Guest
Posts: n/a
 
      02-23-2008
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

iEYEARECAAYFAkfAfxAACgkQg6K71gPSyTDAfQCgjUPr53deUT sE+R5o553lks8b
LCQAn0Np5gUIOaLYGiIrJDQKtd04AADp
=gv73
-----END PGP SIGNATURE-----

 
Reply With Quote
 
Merv
Guest
Posts: n/a
 
      02-23-2008
On Feb 23, 3:16 pm, Steven Carr <(E-Mail Removed)> 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
 
Reply With Quote
 
Bod43@hotmail.co.uk
Guest
Posts: n/a
 
      02-25-2008
On 23 Feb, 20:51, Merv <(E-Mail Removed)> wrote:
> On Feb 23, 3:16 pm, Steven Carr <(E-Mail Removed)> 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



 
Reply With Quote
 
Steven Carr
Guest
Posts: n/a
 
      03-04-2008
http://www.velocityreviews.com/forums/(E-Mail Removed) 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

iEYEARECAAYFAkfNlaEACgkQg6K71gPSyTD48wCeMaTDAgpMh9 MDOzT+zZJsUKnM
PzkAn3zyRJdRn6VTYP6YdjscxMwf5mSX
=hMvU
-----END PGP SIGNATURE-----

 
Reply With Quote
 
Bod43@hotmail.co.uk
Guest
Posts: n/a
 
      03-07-2008
On 4 Mar, 19:31, Steven Carr <(E-Mail Removed)> wrote:
> (E-Mail Removed) 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.






 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cisco 2924XL SNMP (MIBs & VLAN switching) Steven Carr Cisco 2 01-25-2008 07:01 PM
Re: Difference btwn 2924XL v. 2924XL-EN Jim Kirby Cisco 1 10-01-2007 03:15 PM
2924XL SNMP - need help John Oliver Cisco 0 03-07-2005 09:41 PM
Is the 2924XL-A with Enterprise IOS the same as 2924XL-EN? Ed Simmons Cisco 2 03-06-2004 11:09 PM
Is the 2924XL-A with Enterprise IOS the same as 2924XL-EN? Ed Simmons Cisco 0 03-03-2004 11:20 PM



Advertisments