Hitachi

JP1 Version 12 JP1/Navigation Platform Setup and Operations Guide


9.2 npaclexport command (export access permission groups)

Description

This command exports information about the saved access permission groups.

Use this command to export only the information about access permission groups. For example, the npaclexport command is useful if you want to change only the access permission groups when you add users who can reference Operational Contents.

If you want to export information about Operational Contents, see 9.8 npexport command (export Operational Contents).

Note that this command must be executed while the system is running after setup has been completed. Open the command prompt as an administrator.

Format

npaclexportΔ[-iΔpath-of-access-permission-group-name-input-file]Δ[-lΔpath-of-access-permission-group-export-list-filepath-of-export-destination-file

For the path of the export file, specify an absolute path or a relative path consisting of a maximum of 200 characters. The file is output in ZIP format.

Use backslashes (\) for the delimiters. If a path contains a single-byte space, enclose the entire path in double quotation marks ("). In addition to these symbols, the only other symbols permitted in directory paths are single-byte colons (:) and single-byte periods (.) that indicate relative paths.

Options

-i path-of-access-permission-group-name-input-file

Specifies the absolute path or the relative path of the access permission group name input file.

When this option is specified, only the access permission groups whose names are listed in the specified file are exported. If this option is omitted, all access permission groups are exported.

-l path-of-access-permission-group-export-list-file

Specifies the absolute path or the relative path of the access permission group export list file.

When this option is specified, a list of exported access permission groups is output as a text file.

Format of an access permission group name input file

Specify the access permission group names delimited by the end-of-line code. Create the access permission group name input file as a text file. If it is not a text file, an error message (KDCZ10147-E) will be displayed during command execution.

To specify the standard access permissions, specify either the Japanese name or the English name for the standard access permissions.

A character string without any spaces (single-byte or double-byte spaces) before and after each line is imported as an access permission group name. If an access permission group name becomes an empty character string as a result of deleting spaces before and after the line, that line is not imported.

If an EOF code is detected on a line, the character string up to the EOF code is imported as an access permission group name.

Note that comment lines cannot be added (by, for example, using hash marks (#)).

Format of an access permission group export list file

Header information is output at the beginning of the file and then messages are output in the following format:

[result-type]<T>[access-permission-group-name] <T>[access-permission-group-ID]<CR><LF>

<T>: Tab character

<CR><LF>: Termination character (0x0D, 0x0A)

The following table provides the details of the messages.

Table 9‒2: Details of the messages that are output to access permission group export list files

Item

Description

Result

Outputs the execution result of the npaclexport command:

exported

Access permission groups have been exported.

Access Permission Group Name

Outputs the names of the exported access permission groups.

Access Permission Group ID

Outputs the IDs of the exported access permission groups.

The following shows an output example of an access permission group export list file:

[Figure]

Notes:

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.

Notes

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

Example 1

This example exports access permission groups under the following conditions:

  • The path of the export file is C:\work\repository.zip.

  • All access permission groups are to be exported.

> Navigation-Platform-installation-directory\bin\npaclexport C:\work\repository.zip
Example 2

This example exports access permission groups under the following conditions:

  • The path of the export file is C:\work\repository.zip.

  • The path of the access permission group name input file is C:\work\accessName.txt.

  • The access permission groups specified in the access permission group name input file are to be exported.

> Navigation-Platform-installation-directory\bin\npaclexport -i C:\work\accessName.txt C:\work\repository.zip
Example 3

This example exports access permission groups under the following conditions:

  • The path of the export file is C:\work\repository.zip.

  • The path of the access permission group export list file is C:\work\list.csv.

  • All access permission groups are to be exported.

> Navigation-Platform-installation-directory\bin\npaclexport -l C:\work\list.csv C:\work\repository.zip