1.6.3 hcmds64chgurl (updating URL information)
Description
This command updates access (URL) information that is stored in the repository for Common Component and used for starting an application.
You use this command if either of the following configuration changes is made after operation of JP1/AO started:
If the port used by a host that has Common Components installed is changed
If the host name or IP address of a host that has Common Components installed is changed
Syntax
hcmds64chgurl {/list | /change URL-before-change URL-after-change | /change URL-after-change /type Automation}
Arguments
- /list
This option causes the command to display the list of URLs and product names currently set up.
- /change URL-before-change URL-after-change
This option causes the command to overwrite the URL related information currently registered with the new URL related information.
You specify both the URL that is currently registered and the new URL. If you use the option together with the type option, you only specify the new URL.
If you specify a URL with an IPv6 address, enclose the IP address in [ ].
- /type Automation
This option specifies Automation as the name of the product whose URL is to be changed.
Located in
- In Windows:
Common-Component-installation-folder\bin
- In Linux:
/opt/HiCommand/Base64/bin
Execute permission
Execute the command as a user with Administrator or root permissions.
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 URL cannot be found. |
253 |
Restoring the repository failed. |
254 |
Backing up the repository failed. |
255 |
The command terminated abnormally. |
Example
The following examples show how to use the command for each case.
To display, in Windows, the list of URLs and product names currently set up:
hcmds64chgurl /list
To overwrite, in Windows, the URL related information currently registered with the new URL related information:
hcmds64chgurl /change "http://192.168.11.33:22015" "http://192.168.11.55:22015"