![]() |
Parsing Cisco Mib Wed, 06 Aug 2008
I wrote a little python script to parse Cisco mib. I need this information to implement part of the Nessus Feed Cisco stuff, for example to retrieve the cisco model from snmp.
#
# Parse Cisco Products MIB
#
# You can download mib file from http://www.oidview.com/mibs/9/CISCO-PRODUCTS-MIB.html
#
import re
import fileinput
for line in fileinput.input("cisco_mib_parse.txt"):
#catalyst296024LT OBJECT IDENTIFIER ::= { ciscoProducts 951 } -- 24 10/100, 8 POE and 2T ports switch
p = re.compile("(\S+).*ciscoProducts ([0-9]+)")
m = p.match(line)
model = m.group(1)
number = m.group(2)
posted at: 11:48 | path: /Nessus/cisco | permanent link to this entry | 1 comments | nessus, cisco
* Posted by Marc Nelson at Sat Jan 3 13:13:39 2009
There is trademark, and there is the spirit of the trademark.
This device was so useful and well-appreciated to people. <a href ="http://www.usedcisco.org"> Cisco </a> is a huge company and their products carry a much larger impact than all of the apple products combined.
|
Categories
/ (34) Jaime Blasco (feel free to get in touch) Friend's blogs:
Lecture...
Archives
2010-Aug Tags
| ![]() | ||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
![]() |




