When planning for software upgrades or whether it is for informational purposes, there could be a need to have a list of all clients managed by a NVBU server and their respective NVBU versions. Currently there is a canned report called "Client Statuses" which already provides this information in HTML format.
However, if the output needs to be produced via command line for scripting purposes, there is currently no way to show all clients and their versions. For instance:
../netvault/util/nvreport -class clients does not contain the NVBU versions information
For more information on this topic, please see the Module 4-Advanced Administration Part Two-Web-based Training
To include the version information for each client when reports are run via CLI, please do as follows:
- edit the '../netvault/reports/templates/clientsclidefault' file
- add the %VERSION variable to the 3rd line anywhere you want that column to appear when the report is run:
example:
=================================
%CLASS "Clients"
%NICENAME "Client Machines - cli default template"
%FORMAT "%NAME %TYPE %VERSION %STATUS %SERVER %HAVEACCESS %PREFERREDADDRESS %CONTACTADDRESS"
%SORT "%NAME+"
%OUTPUTAVERAGERECORD "No"
%OUTPUTTOTALRECORD "No"
%OUTPUTTYPE 0
%HEADERNAME "Default"
%FOOTERNAME "Default"
==================================
- save the file and run the following command to verify the output:
../netvault/util/nvreport -templatefile ../netvault/reports/templates/clientsclidefault OR ../netvault/util/nvreport -class clients
This should produce the same result as the GUI canned report "Client Statuses".