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:
-
Allocate for the static contents storage folder a free space equivalent in size to the total capacity of the current operation logs.
-
Also allocate for a temporary directory a free space of the same size as the static contents storage folder.
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. |
Example
This example uploads the operation logs under the following conditions:
-
The upload target is the default directory.
-
The operation log files to be uploaded are not concatenated (multiple operation log files are zipped into a zip file).
> Navigation-Platform-installation-directory\bin\npuploadoplog