Hitachi

JP1 Version 13 JP1/Integrated Management 3 - Manager Command, Definition File and API Reference


jimalhsetup

Organization of this page

Function

This command sets up a new logical host of JP1/IM - Agent.

This command does not set up the following optional functions and data delivery function to multiple manager hosts.

If you want to use these functions on a logical host, set up the system manually after using this command.

Format

jimalhsetup -h logical-hostname
            -d shared-directory
            -c {online | standby}
            -f set-up-configuration-file
            [-q]

Execution authority

In Windows: Administrator permissions (If the Windows UAC feature is enabled, the command must be executed from the administrator console.)

In Linux: Superuser permissions

Storage destination directory

For Windows

Agent-path\tools\

For Linux

/opt/jp1ima/tools/

Argument

-h logical-hostname

Specifies the logical host name of the target host to be set up.

-d shared-directory

Specifies the directory for the logical host to be created on the shared disk.

-c {online | standby}

Specifies the type of setup for the running system and the standby system in the cluster configuration.

  • online: Specifies that the running system is to be set up.

  • standby: Specifies that the standby system is to be set up.

To perform logical host operation in a non-clustered environment, specify online as -c option.

-f set-up-configuration-file

Specifies configuration file of the new setup command for a logical host that contains information such as:

  • Host information of JP1/IM - Manager to connect to

  • Proxy info for connecting to JP1/IM - Manager

  • Enabling and disabling services

The path to the file can be either full or relative to the location where the command was executed.

If you are setting up in a clustered environment, use the same setup configuration file for the running system and the standby system.

For details about configuration file, see Configuration file of the logical host new setup command (any-file-name) in Chapter 2. Definition Files.

-q

Specifies that the command argument and setup configuration file content are to be checked, and the setup command processing is to be started without user confirmation.

  • If you specify the -q option: Does not prompt for confirmation in the console prior to starting the new setup process (this is the same as typing "y" and pressing Enter in all challenge messages).

  • If you omit the -q option: Prompt the console for confirmation before starting the new setup process.

Return value

0

Normal completion

1

Abnormal termination

Log output

Examples of use

Notes

- Recovery procedure in the event of abnormal termination after the validation pass

If the command ends abnormality after the KNBC10117-I message is output on the console, perform the recovery operation as follows:

  1. Verify that the logical host service is registered in Windows.

    At the command prompt, run services.msc to open management console and verify that the logical host service is registered. If it is not registered, step 2 does not need to be performed.

  2. Deactivates the service for the logical host registered in Windows.

    Release the service from Windows for the service to be used by the logical host.

    To remove a logical host service, use the following command:

    Agent-path\tools\jpc_service -off service-key -h logical-hostname

    The following shows a sample procedure for deactivating Alertmanager service.

    Agent-path\tools\jpc_service -off jpc_alertmanager -h logical hostname
  3. Remove shared-folder.

  1. Verify that the logical host service is registered in systemd.

    Run systemctl list-unit-files command. Verify that the logical host service is registered. If it is not registered, steps 2 to 4 are not required.

  2. Enable the service to unregister logical host service registered with systemd.

    If there is a service on a logical host whose service status is masked, to remove the service for the logical host from systemd, run the following command to enable the service:

    /opt/jp1ima/tools/jpc_service -on service-key -h logical-hostname

    The following example shows how to enable Alertmanager service:

    /opt/jp1ima/tools/jpc_service -on jpc_alertmanager -h logical-hostname
  3. Remove unit definition file for the logical host.

    Delete the unit definition file for the logical host under /usr/lib/systemd/system.

    File name to be deleted: jpc_service-name_logical-hostname.service

  4. Refresh systemd.

    Run the following command to refresh systemd:

    # systemctl daemon-reload
  5. Remove shared-directory.