Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Macro name changed from html to html-bobswift during server to cloud migration processing.

...

For example, the following script shows how a Controller variable could be used.

Panel
Html bobswift
<pre>
#!/bin/bash
echo Task Name: ${ops_task_name}
echo Task Instance: ${ops_task_id}
</pre>
Note
titleNote

You also can enter a script directly into a Universal Template, but you cannot select a stored script.

...

Field Name

Description

Details

This section contains detailed information about the Script.

Name

Include Page
UC69IL:Script NameUC69
IL:Script Name

Version

Include Page
UC69IL:VersionsUC69
IL:Versions

Description

Include Page
UC71xIL:SummaryUC71x
IL:Summary

Member of Business Services

Include Page
UC71xIL:Member of Business ServicesUC71x
IL:Member of Business Services

Anchor
Script Type
Script Type
Script Type

Type of script:
 
Options:

Html bobswift
<ul>
<li> Script 
<li> SAP Definition 
<li> UDM Script
<li> Web Service Payload 
<li> Data
</ul>

Anchor
Resolve UAC Variables
Resolve UAC Variables
Resolve UAC Variables

Controls whether or not the Script will be parsed in pursuit of Universal Controller variables. It allows the Controller to avoid the overhead of parsing a Script that does not contain variables.
 

Note
titleNote

Variables could be embedded with this field disabled; likewise, you could have a Script with no variables but have this field enabled. However, enabling this field for a Script that does not contain Controller variables will impose an unnecessary burden (however small) on the Controller.

Anchor
Content
Content
Content

Include Page
UC67:Content
UC67:Content

For UDM Scripts, Source and Destination credentials are available for use. The credentials can be coded into the UDM script using the following File Transfer variables:

Html bobswift
<ul>
<li> 

ops_src_cred_user

Html bobswift
<li> 

ops_src_cred_pwd

Html bobswift
<li> 

ops_dst_cred_user

Html bobswift
<li> 

ops_dst_cred_pwd

Html bobswift
</ul>

The variables will be resolved by UDM internally. The following example illustrates the correct way to code them:
 

Panel
Html bobswift
<pre> open src=srcserver user=$(ops_src_cred_user) pwd=$(ops_src_cred_pwd) dst=dstserver user=$(ops_dst_cred_user) pwd=$(ops_dst_cred_pwd)
</pre>

 
The values for these variables are sent to UDM via stdin. This provides a secure channel where the credentials never show up in the script or on the command line.

Metadata

This section contains Metadata information about this record.

UUID

Universally Unique Identifier of this record.

Updated By

Name of the user that last updated this record.

Updated

Date and time that this record was last updated.

Created By

Name of the user that created this record.

Created

Date and time that this record was created.

Buttons

This section identifies the buttons displayed above and below the Script Details that let you perform various actions.

Save

Saves a new script record in the Controller database.

Save & New

Saves a new record in the Controller database and redisplays empty Details so that you can create another new record.

Save & View

Saves a new record in the Controller database and continues to display that record.

New

Displays empty (except for default values) Details for creating a new record.

Update

Include Page
UC69IL:Update buttonUC69
IL:Update button

Anchor
Upload Script
Upload Script
Upload Script

Allows you to upload a script from the local file system and place it in the Content field (see Uploading a Script, below).

Copy

Creates a copy of this script, which you are prompted to rename.

Delete

Include Page
UC69IL:Delete buttonUC69
IL:Delete button

Refresh

Refreshes any dynamic data displayed in the Details.

Close

For pop-up view only; closes the pop-up view of this task.

Tabs

This section identifies the tabs across the top of the Script Details that provide access to additional information about the script.

Tasks

Lists of all tasks using this script.

Notes

Include Page
UC69IL:Notes tabUC69
IL:Notes tab

Versions

Include Page
UC69IL:Versions tabUC69
IL:Versions tab

Anchor
Uploading a Script
Uploading a Script
Uploading a Script

...