Creating a Substitution Variable

GUI

Procedure

  1. Open a substitution variable screen.
    Level Commands
    Enterprise Shared Objects > Substitution Variables
    Host
    1. Infrastructure > Hosts
    2. Choose a host.
    3. Click Substitution Variables.
    Environment
    1. Infrastructure > Environments
    2. Choose an environment.
    3. Click Substitution Variables.
    Node
    1. Infrastructure > Nodes
    2. Choose a node.
    3. Click Substitution Variables.
    Application
    1. Applications .
    2. Choose an application.
    3. Click Substitution Variables.
    Application fragment
    1. Applications.
    2. Choose an application.
    3. Click Substitution Variables.
    4. Click Application Fragment Substitution Variables.
  2. In the Substitution Variables table, click Add.
    A row is added to the table.
  3. In the Name column, type a name for the variable.
  4. In the Type column, select the variable type from the drop-down list.
  5. Optionally click the Description and Local Value columns and provide a description and value respectively.
  6. Click Save.

CLI

Procedure

  1. In the data file, specify a SVar element in base format. Nest the SVar element under a parent Enterprise, Environment, Host, Node, Application, or AppFragment element.
    <SVar xsi:type="amxdata_base:SubstitutionVariable" name="svarName" 
    type="String" value="svarValue"/>
    
  2. In the build file, set the action attribute of the AMXAdminTask element to set or add and the objectSelector attribute to //SVar. The add action adds variables in the data file that don't exist in the database and updates variables defined both data file and database. The set does the same as add and deletes variables in the database not defined in the data file.
    <AMXAdminTask action="add" objectSelector="//SVar"/>