Cisco Request

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
neilr
Posts: 9
Joined: Tue Jun 28, 2005 12:34 pm
Location: Northern California

Cisco Request

Post by neilr »

Hi,

I found this document which explains the steps for doing snmpwalk to get the MAC info associated with VLAN's and Ports. Is there a script already for this? If no is someone interested in creating it?

http://www.cisco.com/en/US/tech/tk648/t ... 4a9b.shtml

Thanks,
--Neil
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

do a search for cammer. It was included with MRTG in the contribs folder for a while. There is also a version that uses a mysql backend & php frontend
neilr
Posts: 9
Joined: Tue Jun 28, 2005 12:34 pm
Location: Northern California

Post by neilr »

Thanks I'll look into that.
neilr
Posts: 9
Joined: Tue Jun 28, 2005 12:34 pm
Location: Northern California

Post by neilr »

Hi,

I looked into cammer and unfortunately I'm running a 6500 Catalyst with all layer2 VLAN's (no routing), since cammer requires a router to get the mac-addresses from it will not work for me.

Anyone have any other ideas or suggestions?

Thanks,
--Neil
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

You use the address of the router that ties the vlans together. I am assuming
that you are running a router on stick in which the 6500 vlans can talk to one another via an external router.


Code: Select all

perl \cammer\cammer.pl public@10.1.1.10 public@10.1.1.1 >macout.txt
assuming that public is your SNMPReadCommunityString and 10.1.1.10 is your switch and 10.1.1.1 is your Router.
neilr
Posts: 9
Joined: Tue Jun 28, 2005 12:34 pm
Location: Northern California

Post by neilr »

actually, they are not tied together at all, they don't communicate at all, they are not routed at all. hence my issue. The switch is only doing layer2, none of the networks associated with the vlan's are being routed except through NAT/PIX firewall.

I guess I could give it the PIX as the router and see what happens.

--Neil
neilr
Posts: 9
Joined: Tue Jun 28, 2005 12:34 pm
Location: Northern California

Post by neilr »

hmm,

that actually seemed to work. Here was the output file.
Attachments
macout.txt
(15.73 KiB) Downloaded 479 times
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests