HP Insight Control Server Provisioning 7.2 Online Help

Table Of Contents
6 Scripts
6.1 About scripts
Scripts are what you use to accomplish provisioning tasks in IC server provisioning. Run a script
by placing it as a step in an OS Build Plan. Multiple scripts may be run one after the other as a
series of steps within a Build Plan.
IC server provisioning supports a variety of script types, some of which run on target servers and
some that run on the appliance.
IC server provisioning comes with HP-provided scripts that run with the HP-provided Build Plans.
You may also create your own scripts to meet the needs of your facility.
“Script types (page 64)
“HP-provided scripts (page 64)
“Running scripts (page 64)
6.1.1 Script types
The types of scripts supported by Insight Control server provisioning are:
UNIX Bourne shell (sh), C shell (csh), and KornShell (ksh)
Windows .BAT Windows batch file
Windows VBScript Visual Basic scripting
Python Python programming language
OGFS Opsware Global File System (used to control the embedded Server Automation
instance)
NOTE: OGFS scripts execute on the appliance; all other script types execute on target servers.
6.1.2 HP-provided scripts
HP supplies some scripts with the IC server provisioning product. These scripts are read only and
are identified by the HP-provided field on the Overview General panel showing Yes. In most cases
it is not necessary to modify the scripts provided by HP because most customization is done via
the OS Build Plans and configuration files. See “Create a new script” (page 31) for additional
information.
NOTE: The library of HP-provided scripts includes some SA scripts that are part of its larger
library and are not supported by Insight Control server provisioning. The HP-provided scripts used
in HP-provided Build Plans or scripts referenced in documentation are supported. See The Insight
Control server provisioning Guide to Build Plans and Build Plan Steps white paper for a list, available
at http://www.hp.com/go/insightcontrol/docs.
6.1.3 Running scripts
To run your script, you must add it to an OS Build Plan as a step. Once you've added the script
to an OS Build Plan, you can set parameters on the OS Build Plan Edit screen. See “Running scripts”
(page 68).
6.2 Copying scripts
Procedure 37 To copy a script
1. Select the script of interest from the master pane of any Scripts screen.
2. Select ActionsSave as.
64 Scripts