Hitachi

JP1 Version 12 JP1/Navigation Platform Setup and Operations Guide


9.3 npconvertoplog command (rename operation log files)

Description

This command renames operation log files according to the numbering method for the Navigation Platform version.

The numbering method for operation log files is either of the following:

  1. Method of numbering in chronological order of the update dates/times of the operation log files

    The following example renames operation log files with this numbering method:

    The names of operation log files before change are as follows:

    operation3.log (update date/time: 2015/6/18:15:00)

    operation2.log (update date/time: 2015/6/19:14:00)

    operation1.log (update date/time: 2015/6/22:13:00)

    When these operation log files are renamed by this numbering method, their new names are as follows:

    operation1.log (update date/time: 2015/6/18:15:00)

    operation2.log (update date/time: 2015/6/19:14:00)

    operation3.log (update date/time: 2015/6/22:13:00)

    The operation log files are renamed by this numbering method during version upgrade processing. For details, see 3.6 Upgrading Navigation Platform.

  2. Method of numbering sequentially starting with the most recent update date/time of the operation log files

    The following example renames operation log files with this numbering method:

    The names of operation log files before change are as follows:

    operation1.log (update date/time: 2015/6/18:15:00)

    operation2.log (update date/time: 2015/6/19:14:00)

    operation3.log (update date/time: 2015/6/22:13:00)

    When these operation log files are renamed by this numbering method, their new names are as follows:

    operation3.log (update date/time: 2015/6/18:15:00)

    operation2.log (update date/time: 2015/6/19:14:00)

    operation1.log (update date/time: 2015/6/22:13:00)

    Use this method if you have been using operation logs with Hitachi Navigation Platform 10-00 and JP1/Integrated Management - Navigation Platform 10-50 or earlier and you want to continue to perform user-specific analyses on the operation logs with JP1/Navigation Platform 11-00 or later.

Format

npconvertoplogΔ[-r]Δpath-of-operation-log-storage-directory

Specify the path of the directory that stores the operation logs to be renamed. This cannot be the directory path specified in the ucnp.base.server.operationlog.path property.

Options

-r

Renames the operation log files using the method of numbering sequentially starting with the most recent update date/time of the operation log files. If this option is omitted, the operation log files are renamed using the method of numbering in chronological order of the update date/time of the operation log files.

Notes:

Return value

Return value

Description

0

Renaming of operation log files was successful.

1

Renaming of operation log files failed.

2

A lock error occurred on the command.

9

An execution permission error occurred.

Note:

The return value is undefined if the command is terminated by a cause beyond the command's control (such as when the command is terminated forcibly by pressing the Ctrl key and the C key at the same time).

Example

This example assumes that the operation log storage directory is C:\temp\oplog:

> Navigation-Platform-installation-directory\bin\npconvertoplog C:\temp\oplog