Host configuration script (hostcfg), Hostcfg usage, Hostcfg sample output – HP XP Performance Advisor Software User Manual

Page 51

Advertising
background image

Host configuration script (HOSTCFG)

This CLUI script requests array information from a Host Agent, removes unwanted hosts, or unrequests

array information.

HOSTCFG usage

Following is the general format of the command to invoke the script:
hostcfg –op <op_string> -ha <HostAgent> [-auth <user:passwd>] [-ms <URL>]

[-L] [d<char>] [-hr] [-?]
Following are the arguments for this command:
Required arguments:

–op

The operation to be performed. Not necessary if -list

is used. Must be followed by one of the following:
xpinfo_req: indicates that must send the XPINFO data to the Management station.

xpinfo_unreq: indicates that the Management

Station no longer needs the XPINFO data.
ha_rem: requests the management station to remove this Host

Agent from its database.

–ha

The location of the Host Agent. This can either be a host name or an IP address. Not

necessary if -list is used.

Optional arguments:

–list

Lists the host configuration data that is stored on the management station.

–L

The output from the -list switch must be labeled, but delimited.

–d

The character used to delimit output.

–hr

Output from the -list switch must be in human-readable form.

–auth

Authentication. Must be followed by a username and password pair in the form

user:passwd.

–ms

Management station. Must be followed by the URL of the management station.

–?

Prints the usage statement.

HOSTCFG sample output

The following are output data samples for the CLUI shell script described in the previous section:

hostcfg -list hr

Host Name

OS

Status

Last Update

hpbs1428.user.server.com

hp-ux

RECEIVED

14:04:41 01.31.2002

hostcfg -list -L

Host Name,OS,Status,Last Update

hpbs1428.user.server.com,hp-ux,RECIEVED,140441 01312002

hostcfg -list

hpbs1428.user.server.com,hp-ux,RECIEVED,140441 01312002

HP StorageWorks Performance Advisor XP Software command-line user interface user guide

51

Advertising