NSH Script: Create Global List of Uptime Values Across Environment

Version 2

    The attached script queries target servers for their current uptime, using the NSH command "nstats". It then updates a centralized data file that contains the latest uptime results from all servers across all runs of the script. In this manner, users can run this script against any subset of hosts as often as they like and the resulting data file will always contain the most recent results across all servers that have been targeted.


    Furthermore, this script is written to explicitly convert the results from the data file into an XML file. The XML file can then be used as a data source, either within a BladeLogic custom report or as a source for other programs.


    To view the help for this script, simply run:


    nsh uptime.nsh -h or

    nsh uptime.nsh -?