Description
|
Sets options that control CLI behavior. If you are accessing the CLI through the network port, settings apply to the current CLI session only. If you are accessing the CLI through the enclosure CLI port, settings persist across sessions.
The base, locale, precision, temperature scale, timeout, and units settings are read from the user account, and can be overridden by using this command.
|
Syntax
|
set cli-parameters
[api|api-embed|console|ipa|json|wbi]
[base 2|10]
[brief enabled|disabled|on|off]
[locale English|en|Spanish|es|French|fr|German|de|Japanese|ja|Korean|ko|Chinese-simplified| zh-s]
[pager enabled|disabled|on|off]
[precision <#>]
[storage-size-base 2|10]
[storage-size-precision <#>]
[storage-size-units auto|MB|GB|TB]
[temperature-scale celsius|c|fahrenheit|f]
[timeout <#>]
[units auto|MB|GB|TB]
|
Parameters
|
api|api-embed|console|ipa|json|wbi Optional. Sets the output mode:
- api: Supports scripting by displaying command output in XML. All objects are displayed at the same level, related by
COMP elements.
- api-embed: Alternate form of XML output which displays "child" objects embedded (indented) under "parent" objects. Enabling this option enables the brief parameter.
- console: Supports interactive use of the CLI by displaying command output in easily readable format. This format automatically sizes fields according to content and adjusts content to window resizes. This is the default.
- ipa: Alternate form of XML output which displays as
api-embed format with
brief mode enabled.
- json: Standard JavaScript Object Notation (JSON) output.
- wbi: A JSON-like format used internally by the PowerVault Manager.
base 2|10
Optional. Sets the base for entry and display of storage-space sizes:
- 2: Sizes are shown as powers of 2, using 1024 as a divisor for each magnitude. In base 2 when you set a size, whether you specify a base-2 or base-10 size unit, the resulting size will be in base 2.
- 10: Sizes are shown as powers of 10, using 1000 as a divisor for each magnitude. This is the default. In base 10 when you set a size, the resulting size will be in the specified size unit. This option is the default.
Operating systems usually show volume size in base 2. Disk drives usually show size in base 10. Memory (RAM and ROM) size is always shown in base 2.
brief enabled|disabled|on|off
Optional.
- enabled or
on: In XML output, this setting shows a subset of attributes of object properties. The name and type attributes are always shown.
- disabled or
off: In XML output, this setting shows all attributes of object properties. This is the default.
locale English|en|Spanish|es|French|fr|German|de|Japanese|ja|Korean|ko|Chinese-simplified|zh-s
Optional. The display language. The default is English.
pager enabled|on|disabled|off
Optional.
- enabled or
on: Halts output after each full screen to wait for keyboard input. This is the default.
- disabled or
off: Output is not halted. When displaying output in API format, which is intended for scripting, disable paging.
precision <#>
Optional. Sets the number of decimal places (1–10) for display of storage-space sizes. The default is1.
storage-size-base 2|10
Optional. Alias for
base.
storage-size-precision <#>
Optional. Alias for precision.
storage-size-units auto|MB|GB|TB
Optional. Alias for units.
temperature-scale celsius|c|fahrenheit|f
Optional. Sets the scale for display of temperature values:
- fahrenheit or
f: Temperatures are shown in degrees Fahrenheit.
- celsius or
c: Temperatures are shown in degrees Celsius. This is the default.
timeout <#>
Optional. Sets the timeout value in seconds for the login session. Valid values are 120–43200 seconds (2–720 minutes). The default is 1800 seconds (30 minutes).
units auto|MB|GB|TB
Optional. Sets the unit for display of storage-space sizes:
- auto: Sizes are shown in units determined by the system. This is the default.
- MB: Sizes are shown in megabytes.
- GB: Sizes are shown in gigabytes.
- TB: Sizes are shown in terabytes.
Based on the precision setting, if a size is too small to meaningfully display in the selected unit, the system uses a smaller unit for that size. For example, if units is set to TB, precision is set to 1, and base is set to 10, the size 0.11709 TB is instead shown as 117.1 GB.
|
Examples
|
Set CLI parameters.
# set cli-parameters timeout 600 console pager off precision 2 units GB temperature-scale f
For scripting, display XML output in
api-embed format and disable paging.
# set cli-parameters api-embed pager off
For scripting, display brief XML output in
api-embed format and disable paging.
# set cli-parameters api-embed pager off brief on
Set the CLI to show output in console format.
# set cli-parameters console
Set the CLI to show output in JSON format.
# set cli-parameters json
|