Referencing Parameters in Scripts
Blueprints are composed of Steps, and each Step has a unique name and a number of other attributes, including a Script, where the actual commands for executing the Step are written. In these commands, curly braces { } are used to delimit Values which are referenced by Parameters.
In order to be used in a Script the Parameters names are stripped of any separating spaces between words and converted to camelcase - with only the first letter of the second, and any subsequent words, capitalised.
So if a Parameter is named - This is my Name, it would be converted to:
thisIsMyName
.
Values are referenced in scripts as:
{placeHolderName.placeValueAttribute}
.
So for a Parameter with the name This is my Name of type Server,
we can refer to the IP address in a script as:
{thisIsMyName.ip}
.
The expressions contained in the curly braces are evaluated prior to Job
being Run, and the curly brace expressions are replaced by actual Values
. In the example above
{thisIsMyName.ip}
would be substituted with the IP attribute of the Value that was assigned
to the Parameter - THIS IS my name in the Plan.
This substitution of Values is performed by Attune, so using the curly Brace {} notation to reference attribute Values works with all Script regardless of the type of Script.
Value Attributes
This section details the Value attributes for each Parameter type.
OS Credential
Attributes of OS Credential Parameter type can be referenced as follows:
Value Attribute |
Attribute Name |
Script Reference |
---|---|---|
Name |
name |
|
User |
user |
|
Password |
password |
|
Comment |
comment |
|
SQL Credential
Attributes of SQL credential Parameter type can be referenced as follows:
Value Attribute |
Attribute Name |
Script Reference |
---|---|---|
Name |
name |
|
User |
user |
|
SID |
sid |
|
Password |
password |
|
As Sysdba |
asSysDba |
|
Comment |
comment |
|
Node
Attributes of Node Parameter type are referenced as follows:
Value Attribute |
Attribute Name |
Script Reference |
---|---|---|
Name |
name |
|
IP Address |
ip |
|
Hostname |
hostname |
|
Domain Name |
domain |
|
Comment |
comment |
|
Node List
Node List is a comma separated list of node Parameters (CSV).
Attributes of Node List Parameter type are referenced as follows:
Value Attribute |
Attribute Name |
Script Reference |
---|---|---|
Name |
name |
|
Server |
serverNames |
|
Server |
serverIps |
|
Server |
serverHostnames |
|
Server |
serverTypes |
|
Server |
serverDomains |
|
Server |
serverFqns |
|
Comment |
comment |
|
IPv4 Subnet
Attributes of IPv4 Subnet Parameter type are referenced as follows:
Value Attribute |
Attribute Name |
Script Reference |
---|---|---|
Name |
name |
|
Subnet |
subnet |
|
Netmask |
netmask |
|
Gateway IP |
gateway |
|
DNS IP 1 |
dns1 |
|
DNS IP 2 |
dns2 |
|
Comment |
comment |
|
Text
Attributes of Text Parameter type are referenced as follows:
Value Attribute |
Attribute Name |
Script Reference |
---|---|---|
Name |
name |
|
Value |
value |
|
Comment |
comment |
|