HP ProLiant WS460c HP Scripting Toolkit 9.50 for Linux User Guide - Page 36

Using HPSSASCRIPTING, Capturing a configuration, Using an Input script

Page 36 highlights

Using HPSSASCRIPTING Starting with version 8.28.13.0, HP SSA Scripting is now a standalone application that is distributed with the HP SSA CLI application. In HP SSA versions prior to 8.28.13.0, the scripting executable was provided with the HP SSA GUI component. For more information, see the Configuring Arrays on HP Smart Array Controllers Reference Guide on the HP website at http://www.hp.com/support/CASAC_RG_en. Users familiar with the previous versions of HP SSA Scripting must now install the HP SSA CLI application to obtain the scripting executable. The new HP SSA scripting executable (hpssascripting) replaces the former executable (cpqssaxe) in all scripts. The HP SSA Scripting application has two scripting modes: • Capture mode for capturing a configuration (page 36) HP SSA inspects the configuration of all internal and external array controllers connected to the server and then writes a script file describing this configuration. • Input mode for using an Input script (page 36) HP SSA reads the array configuration described in a specified script file. See "Creating an HP SSA script file" (page 37). HP SSA then applies this configuration to a target system. NOTE: For a complete list of all command-line parameters, execute the /? utility. Capturing a configuration To capture the configuration of a system, enter the following command at the system command line prompt: hpssascripting -c [drive:][path] OUTPUTFILENAME.ext [-internal | -external] -e [drive:][path]ERRORFILENAME.ext OUTPUTFILENAME is the name of the capture file, and ext. is the file extension. If you do not specify a name and location for this file, HP SSA uses the default name HPSSAOUTPUT.ini and places the file in the HP SSA working directory. The -internal and -external switches limit capture to internal or external controllers. The -e switch information is used only if HP SSA must generate an error file. By default, HP SSA names the error file ERROR.ini and places it in the HP SSA working directory. Using an Input script To use an Input script to configure or reconfigure a system, first locate a suitable HP SSA script or see "Creating an HP SSA script file" (page 37). Then, enter the following command at the system command line prompt: hpssascripting -i [drive:][path]FILENAME.ext [-internal | -external] [-reset] -e [drive:][path]ERRORFILENAME.ext FILENAME is the name of the HP SSA input file, and ext is the file extension. If you do not specify the name and location of this file, HP SSA searches for HPSSAINPUT.ini in the HP SSA working directory. The -internal and -external switches limit configuration operations to internal or external controllers. The -reset flag destroys any existing data and overwrites the current configuration with the configuration specified in the script. The -e switch information is used only if HP SSA must generate an error file. By default, HP SSA names the error file ERROR.ini and places it in the HP SSA working directory. 36 Scripting Toolkit utilities

  • 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

</hprcu>
Using HPSSASCRIPTING
Starting with version 8.28.13.0, HP SSA Scripting is now a standalone application that is distributed
with the HP SSA CLI application. In HP SSA versions prior to 8.28.13.0, the scripting executable
was provided with the HP SSA GUI component.
For more information, see the
Configuring Arrays on HP Smart Array Controllers Reference Guide
on the HP website at
h
t
tp://w
w
w
.hp
.co
m/su
ppo
r
t/CA
S
A
C_R
G_e
n
.
Users familiar with the previous versions of HP SSA Scripting must now install the HP SSA CLI
application to obtain the scripting executable. The new HP SSA scripting executable
(
hpssascripting
) replaces the former executable (
cpqssaxe
) in all scripts.
The HP SSA Scripting application has two scripting modes:
Capture mode for capturing a configuration
(page 36)
HP SSA inspects the configuration of all internal and external array controllers connected to
the server and then writes a script file describing this configuration.
Input mode for using an Input script
(page 36)
HP SSA reads the array configuration described in a specified script file. See
“Creating an HP
SSA script file” (page 37)
. HP SSA then applies this configuration to a target system.
NOTE:
For a complete list of all command-line parameters, execute the
/?
utility.
Capturing a configuration
To capture the configuration of a system, enter the following command at the system command
line prompt:
hpssascripting -c [drive:][path]
OUTPUTFILENAME.ext
[-internal |
-external] -e [drive:][path]
ERRORFILENAME.ext
OUTPUTFILENAME
is the name of the capture file, and
ext
. is the file extension. If you do not
specify a name and location for this file, HP SSA uses the default name
HPSSAOUTPUT.ini
and
places the file in the HP SSA working directory.
The
-internal
and
-external
switches limit capture to internal or external controllers.
The
-e
switch information is used only if HP SSA must generate an error file. By default, HP SSA
names the error file
ERROR.ini
and places it in the HP SSA working directory.
Using an Input script
To use an Input script to configure or reconfigure a system, first locate a suitable HP SSA script or
see
“Creating an HP SSA script file” (page 37)
.
Then, enter the following command at the system command line prompt:
hpssascripting -i [drive:][path]
FILENAME.ext
[-internal | -external]
[-reset] -e [drive:][path]
ERRORFILENAME.ext
FILENAME
is the name of the HP SSA input file, and
ext
is the file extension. If you do not specify
the name and location of this file, HP SSA searches for
HPSSAINPUT.ini
in the HP SSA working
directory.
The
-internal
and
-external
switches limit configuration operations to internal or external
controllers.
The
-reset
flag destroys any existing data and overwrites the current configuration with the
configuration specified in the script.
The
-e
switch information is used only if HP SSA must generate an error file. By default, HP SSA
names the error file
ERROR.ini
and places it in the HP SSA working directory.
36
Scripting Toolkit utilities