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: [email protected] [mailto:[email protected]] On Behalf Of Drew Weaver Sent: Wednesday, May 06, 2009 10:37 PM To: '[email protected]' 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 [email protected] 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. ************************************************************************************ _______________________________________________ cisco-nsp mailing list [email protected] https://puck.nether.net/mailman/listinfo/cisco-nsp archive at http://puck.nether.net/pipermail/cisco-nsp/
