Configuring the GFI Network Server Monitor 7 Reporter wizard to automatically produce reports.

The information in this article applies to:

  • GFI Network Server Monitor 7

Article ID: KBID002473

Query keywords: reporter

The NSM 7 Reporter wizard can be used to automatically generate reports which are generated by the Reporter wizard user interface. This functionality has been introduced in the NSM 7 20051108 build. Previous builds of NSM 7 do not include this feature.


To automatically generate a report, the first thing to do is to create a template file which will contain the settings of the report. This template file can be created by using the /record command line switch.

 

/record:<FILE> switch

Usage:

nsmreprt.exe /record:<Full path of XML file which will contain report options>

Example:

nsmreprt.exe /record:c:\Template.xml

 

Note: file paths which include spaces should be enclosed in double quotes.

 

When running the NSM Reporter with the above command line switch, the wizard will create the specified template file once that the report has been created. The template file is in XML format and contains values for the options which are asked by the NSM Reporter before generating a report.

 

Automatic reports need to be created for a span of time and not for a particular time frame. For this reason, the recorded template file will default the DateTime value to “TODAY” so that the auto generated report will contain information of the actual day on which the auto report is being made. The wizard also supports the “THISWEEK” value for creating weekly reports.

 

Once the template file has been created and customized, the next step is how to instruct the reporter to create the automatic reports. Automatic report creation is done by using 2 command line switches, which are:

 

/nodialogs and /file:<FILE> switches

Usage:

nsmreprt.exe /nodialogs /file:<Full path of XML file recorded using /record switch>

Example:

nsmreprt.exe /nodialogs /file:”c:\Template.xml”

 

Note: file paths which include spaces should be enclosed in double quotes.

 

When the Reporter is executed with the above two parameters and the specified template file is valid, the Reporter will be run without displaying any dialogs or message boxes. The Reporter will gather all of the information from the specified template file and generate the report. The report is saved as the file specified in the template file’s “Output” value.