IOS Report  (ios_report)

Top  Previous  Next

The IOS Version Report Program provides a Cisco IOS version  report for Cisco Routers.  The script cycles through a list of routers and performs a show version”.  The relevant data is extracted from the show version command and saved to a report file.  The data included in this report is:

 

Router Name/ IP Address
Router Model
IOS Version
IOS Feature Set
Memory
Boot Flash Version
Boot Strap Version

 

Program Name: ios_report

 

Script Argument

Description

-rf <filename>

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

-of <filename>

Output File.  File where version 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 version command.  By default the script will only go into 1st level access.  (OPTIONAL)

-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 ios_report 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 report.

 

ios_report -pw logins.txt rf rtrs.rt of report

 

 

Sample Output Report:

 

Router         Model   Version           Feature Set     Memory (KB)     BootFlash       BootStrap

 ------             ------      -------             -----------       -----------          ---------            ---------

10.1.1.1       1720    12.1(5)T8b,    (C1700-SY-M),    32                  -----N/A-----   12.0(1)T,

10.1.2.1       3640    11.3(11)C,      (C3640-IS-M),     64                  -----N/A-----   11.1(20)AA2,

10.1.3.1       3620    11.3(11)C,      (C3620-JS-M),    64                  -----N/A-----   11.1(4)AX

10.1.4.1       3620    12.1(18)T2,     (C3620-JS-M),   64                   -----N/A-----   11.1(4)AX

10.1.5.1       3640    12.2(13)T,       (C3640-JS-M),   128                 -----N/A-----   11.1(12)AA,