Hitachi

JP1 Version 12 JP1/Navigation Platform Setup and Operations Guide


9.21 npuploadoplog command (upload operation logs)

Description

This command compresses Navigation Platform operation logs into zipped files and then stores the zipped files in a static contents storage folder.

Because this command might slow down Navigation Platform operations, we recommend that you execute it when Navigation Platform traffic is light.

Before you execute this command, perform the following:

Format

npuploadoplogΔ[-c]Δ[target-zipped-file-path]

Options

-c

Sorts operation log files by update date and then concatenates them into a single zipped file.

If this option is omitted, the command zips multiple operation log files into a zip file without concatenating the files.

target-zipped-file-path

Specifies the destination of the zipped files.

Specify a local disk path. If the specified path does not belong to the local disk, operation is not guaranteed.

If this option is omitted, the command assumes the following path:

Navigation-Platform-installation-directory\PP\uCPSB\httpsd\htdocs\ucnpoperationlogs\operationlogs.zip

You can specify an absolute path or a relative path.

If the file path contains a single-byte space, enclose the entire path in single-byte double quotation marks (").

Characters that are not permitted for Windows path names are not allowed.

A path containing a reserved device name cannot be specified as this file path.

If the specified file path exceeds the OS's maximum path length, the operation might fail.

Return value

Return value

Description

0

The command terminated normally or terminated with a warning.

1

The command terminated abnormally.

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 uploads the operation logs under the following conditions:

> Navigation-Platform-installation-directory\bin\npuploadoplog