Inventory Report (cisco_inventory_rpt)

Top  Previous  Next

The Cisco Inventory Report Program provides an Inventory of all components in your network.  Cisco IOS version  report for Cisco Routers.  The script cycles through a list of routers/switches and performs a show inventory.  The relevant data is extracted from the show inventory command and saved to a report file.  The data included in this report is:

 

Router Name/ IP Address
Name of the specific component on the router/switch
Description of the specific component on the router/switch
Part ID of the specific component on the router/switch
Version ID of the specific component on the router/switch
Serial Number of the specific component on the router/switch

 

 

Program Name: cisco_inventory_rpt

 

Script Argument

Description

-rf <filename>

List of routers or IP Address to run script against (REQUIRED)

-of <filename>

Output File.  File where inventory report will be written to.  (REQUIRED)

-ual (1 or 2)

User Access Level.  Tells the script what access-level (1st or 2nd) to log into the router before performing the show inventory command.  By default the script will only go into 1st level access.  (OPTIONAL)

-del <delimiter>

String used as delimiter between columns in the output file.  The default delimiter is 3 consecutive colons(:::).  This may be useful to change when importing the results of this script into a program such as Microsoft Excel.

-nokey

Dont prompt user for encryption key when using encrypted password file.  (OPTIONAL)

-ssh

Use Secure Shell when accessing routers.  Do NOT use with -pw option. (OPTIONAL)

-pw <filename>

Login/Password File.  (OPTIONAL)

-log <filename>

Save detailed trace file to a name other than the default file name.  (OPTIONAL)

-ulog

Unique Log file.  Save detailed trace log file to a Unique filename automatically created by script. Filename will be in format of scriptname_timestamp.log. (OPTIONAL)

 

Sample Command: The following command runs the cisco_inventory_rpt program against the routers listed in the file rtrs.rt.  The script will not prompt the user for passwords a password file is being used with the -pw option.  The resulting report will be written to the file inventory_report.txt.

 

cisco_inventory_rpt -pw logins.txt rf rtrs.rt of inventory_report.txt

 

 

Sample Output Report (after importing data to MS Excel)

 

Router

NAME

DESCR

PID

VID

Serial Num

nyrtr-1

"Chassis"

"Cisco 7206VXR, 6-slot chassis"

CISCO7206VXR

---

74530813

nyrtr-1

"NPE-G1 0"

"Cisco 7200 Series Network Processing Engine NPE-G1"

NPE-G1

---

66342519

nyrtr-1

"disk2"

"256MB Compact Flash Disk for NPE-G1"

MEM-NPE-G1-FLD128

---

---

nyrtr-1

"module 1"

"VAM2"

SA-VAM2

V01

JAB87522765

nyrtr-1

"Power Supply 1"

"Cisco 7200 AC Power Supply"

PWR-7200-AC

---

---

 

 

 

 

 

 

sjrtr-3

"Chassis"

"1841 chassis, Hw Serial#: 965613917, Hw Revision: 5.0"

1841

5.0

FTK8635P487

sjrtr-3

"C1841 Motherboard with 2 Fast Ethernet"

"C1841 Motherboard with 2 Fast Ethernet"

C1841 Motherboard with 2 Fast Ethernet

5.0

FTK8635P487

sjrtr-3

"WIC/VIC 0"

"WAN Interface Card - Serial (1T)"

WAN Interface Card - Serial (1T)

1.0

13745564

 

 

 

 

 

 

ny-sw-3

1

"WS-C3560G-48TS"

WS-C3560G-48TS-S

02

W6B0372J0V2

 

 

 

 

 

 

njbb-3

"CISCO7609"

"Cisco Systems Cisco 7600 9-slot Chassis System"

CISCO7609

---

FOX0751001V

njbb-3

"WS-C6K-VTT 1"

"VTT FRU 1"

WS-C6K-VTT

---

NWG07490996

njbb-3

"CLK-7600 1"

"OSR-7600 Clock FRU 1"

CLK-7600

---

NWG10350306

njbb-3

"CLK-7600 2"

"OSR-7600 Clock FRU 2"

CLK-7600

---

NWG10350306

njbb-3

"module 3"

"WS-X6748-GE-TX CEF720 48 port 10/100/1000mb Ethernet Rev. 2.4"

WS-X6748-GE-TX

V02

SAL4021Q5BT

njbb-3

"switching engine sub-module of 3"

"WS-F6700-CFC Centralized Forwarding Card Rev. 2.1"

WS-F6700-CFC

V01

SAL85672BNR

njbb-3

"module 5"

"RSP720-3C-GE 2 ports Route Switch Processor 720 Rev. 5.2"

RSP720-3C-GE

V03

JAE6421VERH

njbb-3

"msfc sub-module of 5"

"7600-MSFC4 C7600 MSFC4 Daughterboard Rev. 1.1"

7600-MSFC4

0

JAE9934TM2J

njbb-3

"switching engine sub-module of 5"

"7600-PFC3C Policy Feature Card 3 Rev. 1.1"

7600-PFC3C

0

JAE3456G0D9

njbb-3

"module 6"

"RSP720-3C-GE 2 ports Route Switch Processor 720 Rev. 5.2"

RSP720-3C-GE

V03

JAE4249YHTE

njbb-3

"msfc sub-module of 6"

"7600-MSFC4 C7600 MSFC4 Daughterboard Rev. 1.1"

7600-MSFC4

0

JAE4249YNH5

njbb-3

"switching engine sub-module of 6"

"7600-PFC3C Policy Feature Card 3 Rev. 1.1"

7600-PFC3C

0

JAE4249TTPE

njbb-3

"FAN-MOD-09 1"

"Vertical 9-slot Fan FRU 1"

FAN-MOD-09

---

HYY17457345

njbb-3

"FAN-MOD-09 2"

"Vertical 9-slot Fan FRU 2"

FAN-MOD-09

---

HYY17457332

njbb-3

"PS 2 WS-CAC-3000W"

"AC power supply, 3000 watt 2"

WS-CAC-3000W

V01

RTY15678AYT