The nvreport utility allows you to generate and view canned reports from the command-line interface. These reports provide information about the backup and restore jobs, storage devices, clients, media utilization, and other aspects of NetVault.
To access help for nvreport, type:
The nvreport utility uses “template” files to output the report data. The template files determine the content, layout, and format of the report. The report templates are located in the <NetVault home>\reports\ templates directory.
There are two methods to specify a template file to generate a report:
• |
Using the actual filename: You can use the “-templatefile” option to specify the actual template file that you want to use. With this option, you must provide the full file path for the template file. |
• |
Using the “nice name”: Each template file has an alternate name value known as its “nice name.” This name is used for the template file in the NetVault WebUI. Specify this “Nice Name” with the “‑templatename” option. |
To access help for the template files, type:
Specifies the name of the NetVault Server that administers the job. | |||
Specifies the report class. Class names are case-insensitive. When a class name is specified with the -class option, the default template file associated with the class is used to run a report. For more information about the available report classes, see Report classes | |||
Specifies the “nice name” of the template file. nvreport -templatename “Client Machines - cli default template” | |||
Specifies the name of the template file. You must specify the full file path with this option. nvreport -templatefile C:\NetVaulBackup\reports\templates\logsclidefault
|
The following table provides a brief description of the report classes available in NetVault.
The following table provides the “nice name” and filename of the plain text template files.
The nvreport utility provides several options to format the layout and content of a report. The following sections outline the use of these options.
You can use one of the following methods to find the real names:
To obtain a list of valid field names for a canned report class, type the following command:
The output includes four columns: Real name, Field name, Data type, and Description.
This command displays all fields that are available with the specified canned report. It includes even those fields that are not displayed when you run the report. You can include these additional fields using the format option. For more information, see Adding or removing columns.
To determine the default fields for a template file, follow these steps:
2 |
Run the nvreport -help fields [Class Name] command. |
Open the template file in a text editor. In this file, the %FORMAT line provides the Real Name for the fields. You can find the template files in <NetVault home>\reports\templates on Windows and <NetVault home>/reports/templates on Linux.
The %FORMAT line of a template file only includes Real Names for the fields displayed when a report is run.
© ALL RIGHTS RESERVED. 이용 약관 개인정보 보호정책 Cookie Preference Center