HP Client Virtualization with VMware View and VMware ThinApp manual Hpssacli Esxcli syntax

Page 11

Table 7 HPSSACLI Command-Line Arguments

Argument

Function

esxcli

The esxcli application.

namespace

Each plugin must have an associated namespace which defines any environment or other system

 

variables required by the application.

object

A plugin must have one or more associated objects which defines a single operation.

command

Prepares the esxcli target to accept a command-line string.

cmd options

Additional switches associated with the command itself (if necessary).

“command-string”

This is the string which dictates the operation that should be executed by the target application itself.

The current namespace and command names are: hpssacli and cmd respectively. The {cmd options} parameter can be cmdopts or -q. There is no need for an {object} type for hpssacli since the application operates on internal commands supplied in the command-string.

HPSSACLI ESXCLI syntax

The HPSSACLI utility is supported by the ESXCLI utility.

Use the following command syntax for all commands:

#esxcli –server=”servername or IP” –user=”username” –password=”root password” hpssacli cmd -q “command-string”

The command-stringparameter supports same commands that are specified at the HPSSACLI interactive command-line interface.

Example 1 This example shows the information about all the SmartArray controller on the server.

esxcli –server=”servername or IP” –user=”username” –password=”root password” hpssacli cmd -q “controller all show status ”

The following output is displayed:

Smart Array P212 in Slot 9

Controller Status: OK

Smart Array P410i in Slot 0 (Embedded)

Controller Status: OK

Cache Status: OK

Battery/Capacitor Status: OK

Example 2 This example shows the detailed configuration information for the SmartArray controller in slot 0.

#esxcli –server=”servername or IP” –user=”username” –password”root password” hpssacli cmd -q “controller slot=0 show config detail”

The following output is displayed:

Smart Array P410i in Slot 0 (Embedded)

Bus Interface: PCI

Slot: 0

Serial Number: 5001438013A25C90

Cache Serial Number: PBCDF0CRH0J7SD

RAID 6 (ADG) Status: Disabled

Controller Status: OK

Hardware Revision: C

HPSSACLI utility

11

Image 11
Contents HP VMware Utilities User Guide Acknowledgments Contents Prerequisites IntroductionHponcfg utility Hponcfg command-line syntaxHponcfg Command Line Arguments Hponcfg return codes Hponcfg command file contentsObtaining an entire configuration Obtaining a specific configuration Hponcfg command-line examples Setting a configurationHponcfg command-line examples Hpbootcfg Command Line Arguments Hpbootcfg utilityHpbootcfg command-line syntax Hpbootcfg Esxcli syntaxHpssacli utility Hpbootcfg return codesHpbootcfg command-line examples Hpssacli command-line syntaxHpssacli Esxcli syntax Hpssacli Command-Line ArgumentsIntroduction Hptestevent utility Hptestevent command-line syntaxHptestevent return codes Hptestevent command-line examplesHptestevent command-line examples Hptestevent Esxcli syntaxExample Usage HP contact information Subscription service Documentation feedbackContacting HP Before you contact HPDocuments New and changed information in this editionRelated information Typographic conventionsUnderstood or followed will result in personal injury or Index