05-16-2005 12:44 PM
I am looking for interface specific information accessible via SNMP that is not in the ifTable.
MAC addresses connected to a specific interface - similar to what i can obtain with a "show mac-address-table | include GigabitEthernet2/41" command.
VLAN membership of a specific interface - similar to what i can obtain with a "show run interface GigabitEthernet2/41 | include vlan" command
Clear counters for a specific interface - similar to what i can obtain with a "clear counters gigabitEthernet 2/41" command
Thanks,
Matt
05-16-2005 01:02 PM
I have found an object that USED to clear the port counters, but is depreciated.
sysClearPortTime = 1.3.6.1.4.1.9.5.1.1.13
Wouldnt it be nice if the documentation referenced what a depreciated objects functionality was replaced with.
05-17-2005 04:10 AM
Hi,
I think most of your scenarios are covered here:
http://www.cisco.com/en/US/tech/tk648/tk362/tk605/tsd_technology_support_sub-protocol_home.html
HTH
Paddy
09-29-2005 05:50 AM
Hi Matt,
Finding MAC addresses connected to a specific interface is not a trivial thing to do with SNMP. It is a multi-step process too involved to describe here. If you still need this I can send you a perl program I've written to do this.
Now I have a question for you: Did you ever get an answer to your 2nd question? (Getting the Vlan membership of a specific interface).
Thanks.
Colin
09-29-2005 09:00 AM
I did manage to get nearly everything I was looking for after much searching (no thanks to any documentation lol).
The VLAN number is available on the 4500 platforms at 1.3.6.1.4.1.9.9.68.1.2.2.1.2.$ifIndex.
The VLAN name is available at 1.3.6.1.4.1.9.9.46.1.3.1.1.4.1.$vlanNumber.
I have managed to get the following info for department admins (in a web interface written in PHP) if you are interested in anything additionally:
Port Index Number (from module/port syntax)
Module Number (from index)
Module Port Number (from index)
Port Connector (GBIC Type)
Admin Status
Operating Status
Promiscuous Mode
Port Speed
Bytes In
Bytes Out
Errors In
Errors Out
Vlan Number
Vlan Name
Wall Port (ties to separate database)
I have the start of a MAC address lookup, but its been a while since I've looked at it so I cant recall how far I got on it. If you have a working program I would love to see it.
Thanks,
Matt
09-30-2005 06:19 AM
Hi Matt. Thanks for the info.
You can pick up a copy of my program at http://tenfwd.mcmaster.ca/~wucolin/macsnap-giveaway.pl. The section you're interested in is between lines 102 and 171. This program iterates through all my switches in a database and grabs the MAC addresses on each interface.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide