You can create default settings for the command-line interface by defining one or more profiles on the system. For example, you can specify the storage management console (SMC) for the session, the output format for list commands, the number of rows per page in the command-line output, and the banner that is included with the command-line output.
If a user enters a value with a command that is different from a value in the profile, the command overrides the profile.
These profile files can be specified using the DS CLI command parameter -cfg <profile_name>. If the -cfg profile file is not specified, the user's default profile file is used. If a user's profile file does not exist, the system default profile file is used.
_JAVA_OPTIONS=-Duser.home=…
When you install the command-line interface software, the default profile is installed in the profile directory with the software. The file name is dscli.profile. For example. c:\Program Files\IBM\DSCLI\profile\dscli.profile.
Table 1 provides the list of profile variables that you can use to create the profile.
| Variable | Description |
|---|---|
| banner: on|off | Enables or disables the banner that appears before the command output. This variable is equivalent to the command option -bnr. The command option -bnr overrides this default value. |
| delim | Specifies a delimiter character for the format: delim variable. The default character is a comma. This variable is equivalent to the command option -delim. The command option -delim overrides this default value. |
| devid | Specifies the storage image ID that is the target for the command. This value is equivalent to the command option -dev. The command option -dev overrides this default value. |
| format | Specifies the output format for list commands. Specify
one of the following formats:
|
| fullid | Specifies that IDs display in fully qualified format, which includes the storage image ID. |
| header: on|off | Enables or disables the headers that display with the columns of data in the list commands. This variable is equivalent to the command option -hdr. The command option -hdr overrides this default value. |
| hmc1 | Specifies the primary Storage Manager IP address. This variable is equivalent to the command option -hmc1. The command option -hmc1 overrides this default value. |
| hmc2 | Specifies the secondary Storage Manager IP address. This variable is equivalent to the command option -hmc2. The command option -hmc2 overrides this default value. |
| locale | Specifies the language for the output on the local computer.
|
| locale, continued |
|
| paging: on|off | Controls the display of output. If paging is enabled, a limited number of lines of output displays when a command is issued. The lines do not scroll. You must set the number of lines per page with the rows variable. This variable is equivalent to command option -p. The command option -p overrides this default value. |
| timeout | Set timeout value of client/server synchronous communication.
The unit of the value is second. The default value is 420 seconds. You can
set this timeout if the processing of a command ends by timeout due to network
or client/server performance issue. Note: The command timeout value can be
longer than this value because one command can consist of multiple client/server
requests.
|
| timeout.connection | Set timeout value to establish client or server connection.
The unit of this value is seconds. The timeout value must be greater than
zero. System default socket timeout value is used if the value is set to zero.
The default value is 20 seconds.
Notes:
|
| remotedevid | Specifies the remote storage image ID. This variable is equivalent to the command option -remotedev. The command option -remotedev overrides this default value. |
| rows | Specifies the number of rows per page of output if the paging variable is enabled. This variable is equivalent to command option -r. The command option -r overrides this default value. |
| verbose: on|off | Enables or disables verbose output. This variable is equivalent to the command option -v. The command option -v overrides this default value. |
# # DS CLI Profile # # # Management Console/Node IP Address(es) # hmc1 and hmc2 are equivalent to -hmc1 and -hmc2 command options. #hmc1: 127.0.0.1 #hmc2: 127.0.0.1 # # Default target Storage Image ID # "devid" and "remotedevid" are equivalent to # "-dev storage_image_ID" and "-remotedev storeage_image_ID" command options, # respectively. #devid: IBM.1750-AZ12341 #remotedevid: IBM.1750-AZ12341 # # locale # Default locale is based on user environment. #locale: en # Timeout value of client/server synchronous communication in second. # DSCLI command timeout value may be longer than client/server communication # timeout value since multiple requests may be made by one DSCLI command # The number of the requests made to server depends on DSCLI commands. # The default timeout value is 420 seconds. #timeout: 900 # Socket connection timeout value in seconds. # The timeout value must be greater than zero. # System default socket timeout value is used if timeout value is set to zero. # The default connection timeout value is 20 seconds. #timeout.connection: 20 # Output settings # # ID format of objects: # on: fully qualified format # off: short format fullid: off # Paging and Rows per page. # paging enables/disables paging the output per line numbers specified by "rows". # "paging" is equivalent to "-p on|off" option. # on : Stop scrolling per output lines defined by "rows". # off : No paging. (default) # "rows" is equivalent to "-r #" option. paging: off #rows: 24 # Output format type for ls commands, which can take one of the following values: # default: Default output # xml : XML format # delim : delimit columns using a character specified by "delim" # stanza : Horizontal table format # "format" is equivalent to option "-fmt default|xml|delim|stanza". #format: default # delimitter character for ls commands. #delim: | # Display banner message. "banner" is equivalent to option "-bnr on|off". # on : Banner messages are displayed. (default) # off : No Banner messages are displayed. banner: on # # Display table header for ls commands. "header" is equivalent # to option "-hdr on|off". # on : Table headers are displayed. (default) # off : No table headers are displayed. header: on # # Display verbose information. "verbose" is equivalent to option "-v on|off". # on : Display verbose information. # off : No verbose information. verbose: off # End of Profile