[c-nsp] Stupid SNMP tricks.
Ziv Leyes
zivl at gilat.net
Sun May 10 06:23:03 EDT 2009
If you're running this from a script it can be possible to cut out the lines you need using grep and then cutting the text.
I have a few scripts in a linux that I use to fetch different values from several devices.
Let me know if you need further assistance with it, or send me an example of what you sample, what is the whole output and what are the relevant lines you need out of it. I can write you a little script for you that can format the output as you want.
Ziv
-----Original Message-----
From: cisco-nsp-bounces at puck.nether.net [mailto:cisco-nsp-bounces at puck.nether.net] On Behalf Of Drew Weaver
Sent: Wednesday, May 06, 2009 10:37 PM
To: 'cisco-nsp at puck.nether.net'
Subject: [c-nsp] Stupid SNMP tricks.
Hey all, I'm trying to script a few things using SNMP (data collection, mainly).
I've essentially found the OIDs I need, but it seems like there is no way to separate routes by how they originate.
For example if you do an snmpwalk ... ipRouteNextHop, it shows you all of the routes in the entire system including EIGP, IGP, locally originated.
Does anyone know of any way to only get information for a specific type of route?
In my case I only want to see the locally originated routes.
Thanks,
-Drew
_______________________________________________
cisco-nsp mailing list cisco-nsp at puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/
************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************
************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************
More information about the cisco-nsp
mailing list