Hitachi

JP1 Version 12 JP1/SNMP System Observer Description, Operator's Guide and Reference


ssodemandrpt

Organization of this page

Format

To create a report:
ssodemandrpt -def report-definition-file-name
             -savefile report-file-name
             [-title report-title]
             [-type {CSV | HTML | HTMLSVG}]
             [-start {DATE date-and-time 
              | BDATE date | BMONTH month[,date]}]
             [-stop  {DATE date-and-time | BDATE date 
              | BMONTH month[,date]}]
To output the command usage:
ssodemandrpt -h

Function

The ssodemandrpt command extracts data from a collection database and creates a report in either HTML or CSV format.

Options

-def report-definition-file-name

Specifies a report definition file. Specify the report definition file name in 255 bytes or less, including the path name.

-savefile report-file-name

Specifies the name of the file to which the created report is to be output by using only a file name or an absolute path.

If you specify only a file name, the file is stored in either an HTML or CSV database. Specify the report file name in 255 bytes or less, including the path name. If you do not specify an extension with the file name, .html or .csv is automatically added according to the report type. Therefore, specify a file name in 250 bytes or fewer or 251 bytes or fewer, including the path name, because an extension is automatically added.

If the specified file exists, the created report overwrites the file.

When you specify an absolute path, if the directory specified for the path name does not exist, a report file is not created. Specifiable characters are single-byte alphanumeric characters, periods (.), underscores (_), and hyphens (-).

-title report-title

Specifies the title of the report file. If you omit this option, no title is displayed in the report file. Specify the title in 255 bytes or less. Also, do not specify Japanese and multi-byte codes that are different from the character encoding specified for the lang key in the report definition file.

-type {CSV | HTML | HTMLSVG}

Specifies a report output format. Specify CSV, HTML, or HTMLSVG for the report output format. If you omit this option, the report is output in the CSV format. No graph-format report is displayed in CSV-format report files.

If you specify HTML, a report is output in the VML standard. If you specify HTMLSVG, a report is output in the SVG standard. For details about the VML standard and the SVG standard, see 2.4.1(1) Report file formats.

-start {DATE date-and-time | BDATE date | BMONTH month[,date]}

Specifies the start date and time of the data extraction range.

DATE date-and-time

Starts extracting the data collected after the specified date and time. Specify the date and time in the yy.mm.dd.hh.mm.ss format. The specifiable range is January 1, 1980 00:00:00 to December 31, 2099 23:59:59.

BDATE date

Extracts data from 00:00:00 on the date the specified number of days before the command execution date. The values that can be specified are 0 to 30 (days). If you specify 0, the command extracts data, starting at 0:00:00 on the date the command was executed.

BMONTH month[,date]

Extracts data at 00:00:00 on the specified date in the month the specified number of months before the command execution month. The values that can be specified in month are 0 to 12 (months). The values that can be specified in date are 1 to 31 (date). If you specify 0, the command extracts data for the month in which the command was executed. If you do not specify date, the command extracts data from the first day of the month.

-stop {DATE date-and-time | BDATE date | BMONTH month[,date]}

Specifies the end date and time of the data extraction range.

DATE date-and-time

Extracts collected data to the specified date and time. Specify the date and time in the yy.mm.dd.hh.mm.ss format. The specifiable range is January 1, 1980 00:00:00 to December 31, 2099 23:59:59.

BDATE date

Extracts data until 23:59:59 on the date the specified number of days before the command execution date. The values that can be specified are 0 to 30 (days). If you specify 0, the command extracts data to 23:59:59 on the date the command was executed.

BMONTH month[,date]

Extracts data until 23:59:59 on the specified date in the month the specified number of months before the command execution month. The values that can be specified in month are 0 to 12 (months). The values that can be specified in date are 1 to 31 (date). If you specify 0 as month, the command extracts data to the month in which the command was executed. If you do not specify date, the command extracts data to 23:59:59 on the last day of the month.

-h

Outputs the command usage. This option cannot be specified together with other options.

Return values

0

Normal termination

-1

Execution error such as incorrect arguments