[AusNOG] Cisco SNMP on a certain line card

Ian Henderson ianh at ianh.net.au
Tue Jul 10 22:54:17 EST 2012


On 10/07/2012, at 10:43 PM, Jared Hirst wrote:

> I have a supervisor 6 card and I am wondering how I can do SNMP on a certain line card, we have 5 Gbe switches in the one chassis and I want to be able to just export SNMP for one of the switches in the ‘stack’ does anyone know of any way to do this?

You mentioned a Sup6 which implies a 4500. These don't work like a stack of 3750s or similar - its just one big switch. SNMP against the IP address of the supervisor, then use code/text utils/whatever to grab the card you're after matching on ifDescr. For example for slot 3:

snmpwalk -c commstringgoeshere -v2c switch1 ifDescr | grep GigabitEthernet3

This isn't the most efficient method, you'd usually want to do that once, store the ifIndex to ifDescr map somewhere, and just query ifIndex directly depending on what you're trying to achieve.

Rgds,



- I.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ausnog.net/pipermail/ausnog/attachments/20120710/0919e653/attachment.html>


More information about the AusNOG mailing list