[AusNOG] Cisco SNMP on a certain line card
Nathan Brookfield
nathan.brookfield at serversaustralia.com.au
Wed Jul 11 01:53:29 EST 2012
Hi Ian;
Very true comments, I think the issue here is that Jared is trying to limit
an SNMP community from only being able to access certain ports or a certain
Sup6 card and not having access to pole other parts of the device.
A better rephrase of the question would be 'How can I limit a community or
an SNMP peer to a certain Sup6' if at all possible?
Many Thanks;
Nathan
From: ausnog-bounces at lists.ausnog.net
[mailto:ausnog-bounces at lists.ausnog.net] On Behalf Of Ian Henderson
Sent: Tuesday, 10 July 2012 10:54 PM
To: Jared Hirst
Cc: ausnog at lists.ausnog.net
Subject: Re: [AusNOG] Cisco SNMP on a certain line card
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/20120711/65ea8ceb/attachment.html>
More information about the AusNOG
mailing list