HP Integrity rx2800 HP Integrity iLO 3 Operations Guide - Page 46

Command menu commands and standard command line scripting syntax, BLADE: Display enclosure, bay

Page 46 highlights

expect "$MA_PROMPT" #Run SL command to dump logs #send "sl -forward -view text -nc\r" send -- "cm\r" expect "$CM_PROMPT" #Run PC command to power on the system send -- "pc -on -nc\r" expect "$CM_PROMPT" send "ma\r" expect "$MA_PROMPT" send "x\r" #} expect eof Command menu commands and standard command line scripting syntax The following list of commands is provided to familiarize you with the Command menu commands. Command-line interface scripting syntax for each command is provided to help you accomplish a scripting task. The following rules apply to scripting syntax: • The -nc (no confirmation) is optional. This special keyword designates that no user confirmation is required to run the command. If you enter -nc at the end of the command line, the command is issued without asking you for user input. Without the -nc option, you are asked to confirm the changes. The only exception to this rule is when a password must be entered. In that case, you are prompted for a password separately. However, commands that require a password can have that password entered on the command line (FW, UC). If -nc is specified on a command with no other parameters or with only a specific multilevel selector, the command displays all or just the specific multilevel parameters. The absence of a specific multilevel parameter on a command that has multilevels causes all the multilevel parameters to display. • Most commands accept -all default. This causes all parameters for that command to be set to the default values. • In some multilevel commands, you can use default to set that level to its default values. • Further use of default on many individual parameters causes that parameter to be set to its default value. • -? (MP command-specific help) is optional. If you enter -? by itself with the command, a usage display appears. In the event of an incorrect command line usage, in addition to the error message, the usage display appears. • Arguments in brackets [ ] are optional. • Without any arguments, commands enter Menu Mode where individual selections can be made or undone before command is confirmed. BLADE: Display enclosure, bay, and Onboard Administrator information NOTE: This command is available only on a server blade. Command access level: Login access The BLADE command facilitates the cabling and initial installation of HP Integrity server blades. It also provides a quick view of the enclosure status. You must have the Configuration Access user right to turn the enclosure locator UID LED on or off. Onboard administrator configuration 46 Using iLO 3

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152

expect "$MA_PROMPT"
#
Run SL command to dump logs
#send "sl -forward -view text -nc\r"
send -- "cm\r"
expect "$CM_PROMPT"
#
Run PC command to power on the system
send -- "pc -on -nc\r"
expect "$CM_PROMPT"
send "ma\r"
expect "$MA_PROMPT"
send "x\r"
#}
expect eof
Command menu commands and standard command line scripting syntax
The following list of commands is provided to familiarize you with the Command menu commands.
Command-line interface scripting syntax for each command is provided to help you accomplish a
scripting task. The following rules apply to scripting syntax:
The
-nc
(no confirmation) is optional. This special keyword designates that no user confirmation
is required to run the command. If you enter
-nc
at the end of the command line, the command
is issued without asking you for user input. Without the
-nc
option, you are asked to confirm
the changes. The only exception to this rule is when a password must be entered. In that case,
you are prompted for a password separately. However, commands that require a password
can have that password entered on the command line (
FW
,
UC
).
If
-nc
is specified on a command with no other parameters or with only a specific multilevel
selector, the command displays all or just the specific multilevel parameters. The absence of
a specific multilevel parameter on a command that has multilevels causes
all
the multilevel
parameters to display.
Most commands accept
-all default
. This causes all parameters for that command to be
set to the default values.
In some multilevel commands, you can use
default
to set that level to its default values.
Further use of
default
on many individual parameters causes that parameter to be set to its
default value.
-?
(MP command-specific help) is optional. If you enter
-?
by itself with the command, a
usage display appears. In the event of an incorrect command line usage, in addition to the
error message, the usage display appears.
Arguments in brackets
[ ]
are optional.
Without any arguments, commands enter Menu Mode where individual selections can be
made or undone before command is confirmed.
BLADE:
Display enclosure, bay, and Onboard Administrator information
NOTE:
This command is available only on a server blade.
Command access level: Login access
The
BLADE
command facilitates the cabling and initial installation of HP Integrity server blades. It
also provides a quick view of the enclosure status. You must have the Configuration Access user
right to turn the enclosure locator UID LED on or off.
Onboard administrator configuration
46
Using iLO 3