Create scripts

Creating a script makes it available to the Insight Control server provisioning appliance. When you have finished creating your script, verify the script was created by finding it in the master pane list on any Scripts screen.

Methods to create a script

There are multiple ways to create a new script:

  • Make a copy of an existing script by saving it under a new name. Use ActionsSave as from any Script screen.

  • Create a new script by selecting ActionsCreate a script from any Scripts screen.

Create Script screen details

Screen component Description
Name

Description:

This is the unique associated with the script. The name of the script appears in the master pane list on the Scripts screen (select Scripts from the Main Menu) and is used to identify a script when you add it to an OS Build Plan.

Data type:

Character string

The Name may not begin with a space or punctuation.

The Name cannot contain: <, >, &, newlines, tabs, slashes (/), or backslashes (\).

The Name must be unique.

Default value:

None

Required:

Yes

Examples:

  • RHEL 5.8_Install

Type

Description:

Indicates the type of script you are creating. Script types include

  • UNIX– Bourne shell(sh), Cshell (csh),and Korn Shell (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)

Default value:

Windows .BAT

Required:

Yes

Run as superuser

Description:

Select Yes if the script should be run with superuser access when executed. Selecting Yes enables you to run the script as superuser without providing a password for the script.

Default value:

No

Required:

Required for all script types except OGFS.

Description

Description:

Use this text area to create a short, meaningful description of what this script does.

Data type:

Character string

The Description has a maximum length of 1333 characters.

Default value:

None

Required:

No

Examples:

  • Install RHEL 5.8 on a server.

Create

Selecting Create saves the script with the information as described on the Create Script screen and closes the screen to return to the Script Overview screen with the new script selected in the master pane.

Create Script screen buttons
Create+

Selecting Create+ creates the script in the appliance database and remains in the Create Script screen so you may continue creating scripts.

Cancel

Exits the Create script screen without saving any edits.

Contents

Description:

This is the text of the script itself.

Data type:

Character strings

Default value:

None