Hitachi

JP1 Version 12 JP1/Automatic Operation Command and API Reference 


1.5.1 encryptpassword (creating a password file)

Description

This command creates a password file that you can specify as an argument in a JP1/AO command.

You can execute the command with the user ID and password of a user registered in JP1/AO and the path to the password file to be created for that user to create an encrypted password file.

By specifying the created password file instead of the password when each command is executed, specifying the password is no longer needed.

Syntax

encryptpassword
     /user user-ID
     /password password
     /passwordfile password-file-path

Arguments

/user user-ID

This option specifies the user ID of a JP1/AO user for which you want to create a password file.

The number of possible characters is in the range from 1 to 256 characters.

The possible characters are half-width alphanumeric characters, !, #, $, %, &, ', (, ), *, +, -, ., =, @, \, ^, _, and |.

This option is not case sensitive.

/password password

This option specifies the password of the user indicated by the user option.

The number of possible characters is in the range from 1 to 256 characters.

The possible characters are the same as those for the user option.

/passwordfile password-file-path

This option specifies the absolute or relative path to the password file to be created. An error occurs if the specified path exists.

Located in

In Windows:

JP1/AO-installation-folder\bin

In Linux:

/opt/jp1ao/bin

Execute permission

Execute the command as a user with Administrator or root permissions. If a user without Administrator or root permissions executes the command, a message appears asking the user to elevate the permission level.

Execute the command as a user with Administrator permissions. If a user without Administrator permissions executes the command, a message appears asking the user to elevate the permission level.

Return code

The following table lists the return codes from the command.

Return code

Description

0

The command succeeded.

1

The argument is invalid.

2

The command execution has been interrupted.

3

The service status is invalid.

4

An exclusive error occurred.

5

Communication failed.

6

Authentication failed. (The specified value is invalid.)

7

An invalid path is specified.

8

The output path already exists.

9

The specified path does not exist.

10

The specified path is not accessible.

14

You do not have permission to execute the command.

200

Creating the password file failed.

255

The command execution has been interrupted due to an error other than the above.

Example

The following example shows how to use the command to create, in Windows, a password file for the specified user:

encryptpassword /user user01 /password pass01 /passwordfile passfile