/
Setting Variables in Command Attributes

Setting Variables in Command Attributes

You can declare a special variable type, called a SET variable, in Action-Commands and Trigger-Commands attributes of a CCS script. The following examples illustrate how SET variables may be used to keep track of a state.

An Action-Command attribute declaration also illustrates the valid use of an equals sign operator (=):

Action-Commands:

SET: $updateMade = "no"

In Action-Commands and Trigger-Commands attributes, a SET variable can refer to a list in NetMRI and reference its data (also see the section The getListValue( ) Function):

Action-Commands:{$location eq "West"}

SET: $log1 = getListValue (NetworkServers,Geo,WS1,NMAddr,null)

If the value found in the $location variable happens to be West, the script opens the list NetworkServers from NetMRI and searches for the specified value.

Related content