6

I am trying to figure out a way to keep track of network equipment, including chassis and service modules/line cards. So when I need to find something, I know where I can find it.

1) telnet access available

2) IOS, IOS-XE, IOS-XR, NX-OS, ASA

I am wondering how feasible is it to use script to parse something like #show modules, #show diag in a large scale. Any better ideas? Yes they do have asset tags but they keep getting moved around and scanning the tags is way too much work to keep the information updated.

Btw SNMP is nice but it's probably not going to work in this environment. Connections and configs get changed on daily basis.

Mike Pennington
  • 29,876
  • 11
  • 78
  • 152
sdaffa23fdsf
  • 1,281
  • 3
  • 20
  • 24
  • You mentioned "SNMP is nice but it's probably not going to work in this environment. Connections and configs get changed on daily basis"... I am not sure I understand this part of the question... is there a relationship between SNMP and configs changing daily? – Mike Pennington Oct 16 '13 at 08:55
  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you can post and accept your own answer. – Ron Maupin Jan 04 '21 at 22:30

6 Answers6

5

Something like RANCID might help you out here. Plus, if you don't do config management it would take care of that for you as well.

RANCID goes out and logs into all of your devices [launched via cron] grabs config/inventory, places it in a source control system and emails you config/inventory diffs. (This would catch any hardware moving around)

Using RANCID for inventory tracking isnt all that pretty though. I just grep what I am looking for from the config/inventory archive.

rancid@network configs$ grep XENPAK *
6509-1.stackexchange.com:!PID: XENPAK-10GB-SR
6509-1.stackexchange.com:!PID: XENPAK-10GB-SR
6509-1.stackexchange.com:!PID: XENPAK-10GB-LR
6509-1.stackexchange.com:!PID: XENPAK-10GB-SR
6509-1.stackexchange.com:!PID: XENPAK-10GB-SR
6509-1.stackexchange.com:!PID: XENPAK-10GB-SR
6509-1.stackexchange.com:!PID: XENPAK-10GB-LR
6509-1.stackexchange.com:!PID: XENPAK-10GB-SR
core-2.stackexchange.com:!PID: XENPAK-10GB-LR            VID: V02 , SN: XXXXXXXXXXX
core-2.stackexchange.com:!PID: XENPAK-10GB-LR            VID: V02 , SN: XXXXXXXXXXX
core-2.stackexchange.com:!PID: XENPAK-10GB-LR            VID: V02 , SN: XXXXXXXXXXX
core-2.stackexchange.com:!PID: XENPAK-10GB-LR            VID: V02 , SN: XXXXXXXXXXX
rancid@network configs$

Since this is all kept in a revision control system you can look back to see when a module was added or removed.

radmacher
  • 339
  • 1
  • 5
3

I run python scripts to parse inventory (for the same platforms) on a daily basis... The best options I have found are parsing CLI show inventory, "show mod" (for platforms that don't support show inventory), and polling ENTITY-MIB.

Sadly, I have to use all three mechanisms, since there isn't a one-size fits all solution for all Cisco HW / SW permutations, unless Cisco NCS can do it... I haven't tried NCS yet, so I can't say.

Mike Pennington
  • 29,876
  • 11
  • 78
  • 152
2

Switchmap is SNMP-based, but it might be worth taking a look at for building inventories of equipment, modules, etc.

Teun Vink
  • 16,953
  • 6
  • 44
  • 70
1

My favorite Tool for this is WKTOOL but it's only supported under Windows.

Mike Pennington
  • 29,876
  • 11
  • 78
  • 152
0

You can set up the basic Zenoss monitoring server, it's supports Cisco Devices information gathering via SNMP. This provides a lot of information just by adding an IP (like: IOS version, interfaces + IP configuration, ...)

Zenoss + Cisco howto:

Bulki
  • 2,363
  • 7
  • 25
  • 43
  • Does it support all the Cisco devices requested by realdreams? – Mike Pennington Oct 14 '13 at 10:32
  • @MikePennington good question, supported devices can be found at this page: http://wiki.zenoss.org/ZenPack:Cisco_Devices (see features) , this is only about the official ZenPack. If you do some tweaking yourself, you can make your own ZenPack, containing more specific SNMP MIB's. It's a very flexible monitoring software. The difference with the paying version is that you have to do it more yourself. – Bulki Oct 14 '13 at 10:53
  • But this doesn't seem to support IOS-XR... can you add information to support that? – Mike Pennington Oct 14 '13 at 10:56
  • @MikePennington I'll look into it, get back to you on that one. – Bulki Oct 14 '13 at 11:58
0

If you want something that will show you your gear in a rack type of diagram, I would recommend either of the following:

www.drackula.net

www.noclayer.com

Network Samurai
  • 1,378
  • 13
  • 25