User's Manual

Table Of Contents
Working with Session Scripts
Working with Test and Script Execution 14-7
Setting Preferences for Session Scripts
The following sub-sections describe how to set preferences for session scripts:
Setting a Default Remote Script Execution Environment
Setting Default Runtime Environment Variables
Setting a Default Remote Script Execution Environment
You can set runtime environment variables at the resource and session level.
To set a default remote script execution environment, on the Active System Manager menu toolbar, click
Window > Preferences > Test and Script Execution > Script Server.
All fields are required and must be completed in order to identify the scripts in the Session Scripts view.
The Secure check box indicates that the communication from the Active System Manager server to the
remote script server is secure. Non-secure will use a Remote Shell Protocol (RSH). If you use Secure, it
will be Secure Shell Protocol (SSH).
Setting Default Runtime Environment Variables
To set default runtime environment variables that will be passed to each session script executions, perform
one of the following options:
1. Open the Script Server preferences:
On the Active System Manager menu toolbar, click Window > Preferences > Test and Script
Execution > Script Server.
In the Resource Scripts view, select one or more resource scripts, right-click and select Preferences.
2. In the Runtime Variable section, select Resource Level Script or Session Level Script.
Table 14-1 on page 14-5 lists the default environment variables.
3. Build the default environment variable list for each context by clicking Variables to select from the
default variables list, or manually enter your environment name. Each variable must be separated by a
space.
4. Click Apply or OK to save your preferences.
Browsing and Executing Session Scripts
To browse and execute session scripts, perform the following steps:
1. Open the Sessions view; on the Active System Manager menu bar, click Window > Show View >
Other > Active System Manager > Sessions > OK.
2. In the Sessions view, open a running session, right-click and select Execute Session Scripts.
The Execute Scripts dialog box displays.
3. Customize your script execution settings as needed; for more information, see the “Customizing Script
Execution” section on page 14-8.