HP XP Command View Advanced Edition Software User Manual

Page 282

Advertising
background image




Command line interface commands



282

2.

From the execution result of the AddHost command, make sure that specified information is
correctly output to the name and hosttype parameters.

Notes on executing the AddHost command:

If the host name specified during mainframe host environment setup and the host name
specified during Device Manager environment setup do not match, information registered in
the mainframe agent cannot be acquired.

Do not specify the wwnlist parameter when registering the mainframe host in the Device
Manager. If you do, an error occurs.

Record the objectID value output when the AddHost command is executed. You will
need this value for the subsequent procedures and operations.

Although the IP address specified in the ipaddress parameter of a command is registered
as an attribute of the mainframe host, the IP address registered using the AddHost
command is not used for communication with the mainframe agent. The information
necessary for communication with the mainframe agent is specified in section

4-12-2-2

.

Action to be taken if an error occurs during the execution of the AddHost command:

Use the GetHost command to check whether the mainframe host is registered. If the
mainframe host is not registered, register it using the AddHost command. If the mainframe
host has been registered incorrectly, use the ModifyHost command to correct the registered
information. For details on how to correct the registered mainframe host information, see
section

4-12-8

.

Command format:

hdvmcli AddHost "hostname=

mainframe-host-name" "hosttype=2"

Example of executing the command:

hdvmcli AddHost -o "D:\logs\AddHost.log" "hostname=toro2" "hosttype=2"

Example of output from executing the command:

RESPONSE:

An instance of Host

objectID=*****

name=toro2

capacityInKB=0

hostType=2

*****

: The values are encoded by the CLI.

4-12-2-2 Registering the mainframe agent running on the mainframe host in

Device Manager

To use the AddURLLink command to register the mainframe host in Device Manager:

1.

Execute the AddURLLink command to register the mainframe agent running on the mainframe
host in Device Manager.

When you execute the command, specify the following parameters:

URL

: In this parameter, specify the IP address of the mainframe host where the mainframe

agent is installed, and the port number used by the mainframe agent.

Name

: In this parameter, specify the character string MainframeAgent, which indicates

mainframe agent. This parameter is case-sensitive.

Linkedid

: In this parameter, specify the object ID of the mainframe host that was output

when the mainframe host was registered using the AddHost command.

2.

From the execution result of the AddURLLink command, make sure that specified information
is correctly output to the url, name, and linkedid parameters.

Advertising