Managing a variable table definition from the Orchestration CLI

Each variable table definition has the following format and arguments:

Syntax

vartable [folder/]tablename
[descriptiondescriptionˮ]
[isdefault]
members
[variablename  “variablevalueˮ]
...
[variablename  “variablevalueˮ]
end

Arguments

vartable [folder/]tablename
Using this keyword, you can define the name of the variable table. Optionally, you can specify the folder name in which the variable table is defined.

The name must start with a letter, and can contain alphanumeric characters, dashes, and underscores.

description tabledescriptionˮ
Using this keyword, you can add a description of the variable table.

The content must be enclosed within double quotation marks. To use quotation marks ("), place a backslash (\) before.

isdefault
Using this keyword, you can specify if the table you are creating has to be used as deafult. You cannot define more than one default table. Specifying this table as the default one substitutes the previous default table.
members variablename variablevalueˮ
Using this keyword, you can create a list of variables and the related values separated by spaces.

The name must start with a letter, and can contain alphanumeric characters, dashes, and underscores.

Values must be enclosed within double quotation marks.

Comments

You can manage variable definitions using ocli model action parm, using the following syntax:
[tablename.]variablenamevariablevalue
tablename
Using this keyword, you can define the name of the variable table in which you can add new variables. You must have already defined the variable table.
[folder/]variablename
Using this keyword, you can define the name of the variable. Optionally, you can specify the folder name, in which the variable table is defined, before the name of the variable.

The name must start with a letter, and can contain alphanumeric characters, dashes, and underscores.

value
Using this keyword, you can assign a value to the variable. The name of other variables cannot be used as value.
Examples
  • The following example shows a variable table definition without a specified folder:
    VARTABLE TABLE1
      MEMBERS
      TEMP_DIR "/tmp/temp1"
      HOME_PATH "/home/user1"
    END
    
    After saving, the definition is displayed as follows:
    $vartable
    
    VARTABLE /TABLE1
      MEMBERS
        HOME_PATH "/home/user1"
        TEMP_DIR "/tmp/temp1"
    END
    
  • The following example shows a variable table definition with a specified folder:
    VARTABLE FOLDER1/TABLE2
      ISDEFAULT
      MEMBERS
      TEMP_DIR "/tmp/temp2"
      HOME_PATH "/home/user2"
    END
    
    After saving, the definition is displayed as follows:
    $vartable
    
    VARTABLE /FOLDER1/TABLE2
      ISDEFAULT
      MEMBERS
        HOME_PATH "/home/user2"
        TEMP_DIR "/tmp/temp2"
    END