CDP parser

Started by dlots, June 01, 2017, 10:48:07 AM

Previous topic - Next topic

dlots

For those that are interested I built a python CDP parser over on https://github.com/GoreNetwork/CDP-parser/tree/master

Give it a text file with the output from "show cdp entry *" from a Cisco IOS device and it will give you a list of dictionaries one dict for each device in this format

{'capabilities': 'Router Switch IGMP ',
'local_int': 'GigabitEthernet1/3',
'platform': 'cisco WS-C6509-E',
'remote_id': 'bob.GoreNetwork',
'remote_int': 'GigabitEthernet2/6',
'remote_ip': '10.0.0.1',
'version': 'Cisco IOS Software, s72033_rp Software '
            '(s72033_rp-ADVIPSERVICESK9_WAN-M), Version 12.2(33)SXH5, RELEASE '
            'SOFTWARE (fc1)'},

deanwebb

That is some cool, right there.
Take a baseball bat and trash all the routers, shout out "IT'S A NETWORK PROBLEM NOW, SUCKERS!" and then peel out of the parking lot in your Ferrari.
"The world could perish if people only worked on things that were easy to handle." -- Vladimir Savchenko
Вопросы есть? Вопросов нет! | BCEB: Belkin Certified Expert Baffler | "Plan B is Plan A with an element of panic." -- John Clarke
Accounting is architecture, remember that!
Air gaps are high-latency Internet connections.

dlots


wintermute000

Did you follow the Kirk Byers tutorial?

that1guy15

Cool stuff dude! Ive never heard of ciscoconfparse but it looks like it has some nice features.

That1guy15
@that1guy_15
blog.movingonesandzeros.net