beautypg.com

3 using the properties file to specify parameters, 4-1 specifying the log file – HP XP Command View Advanced Edition Software User Manual

Page 293

background image




Using the Device Manager properties file



293

NOTE:

When true is set in a property file for an option without an argument, it cannot be

overwritten to false from the command line.

Table 5-2

lists options and their corresponding properties.

Table 5-2

Options and their corresponding properties

Option Property

Argument

-u

or --user

user

user ID

-p

or --password

password

password

-s

or --secure

secure no

argument

-i

or --input

input

filename

-o

or --output

output

filename

-f

or --format*

format*

csv

or xml

-t

or --messagetrace

messegetrace no

argument

* This option and property can be specified only when the GetStorageArray command is used.

5-3 Using the properties file to specify

parameters

Command parameters can be specified on the command line or in the properties file. When they are
specified in the properties file, you do not need to specify them on the command line.

If you specify parameters on the command line when they are also specified in the properties
file, the values of the parameters specified on the command line take precedence.

When you specify parameters in the properties file, use the format shown in the following
example:

serialnum=30057

model=XP512

NOTE:

In the properties file, specify only parameters that apply to a given command. If the file

contains a parameter that does not apply, the command may have unexpected results. For this
reason, do not specify parameters that can cause problems for other commands.

5-4 Setting up the Device Manager CLI execution

environment

This section describes how to set up the Device Manager CLI execution environment based on

Table 5-1

Example of Properties File (in Windows).

5-4-1 Specifying the log file

The default file name of the log file used by Device Manager CLI is hdvmcli.log. This file is
created in the Device Manager CLI execution directory or folder. You can specify a default file
name, log output destination, log level, and so on. Specify the log output destination in the
hdvmcli.logfile

property in the properties file.