smiSendCommand

This command allows a user to dispatch commands to any SMI object within the DNS-world (see below)

Usage


smiSendCommand <objectName> <commandString> [<options>] [<proxy>]


where
<objectName>
is the full object name (domain::object) of the SMI object receiving the command
<commandString>
is, in the simplest case, the name of the action to be sent to the object.
<proxy>
can be any printable character (except minus sign) and indicates that the command should be sent directly to the proxy (bypassing any state manager)
the following options are available:
Option value1 value2 Comment Example
-dns <dnsNode>[:<dnsPort>] allows to change the DNS Node and Port number -dns lxplus001.cern.ch:007
-pi <parameterName> <integerValue> will append integer parameter to the command string -pi RUNNUMBER 269
-pf <parameterName> <floatingPointValue> will append floating point parameter to the command string -pf TEMP 35.67
-ps <parameterName> <stringConstant> will append string parameter to the command string -ps FILE '/bin/program.exe'
-dbg the command string,instead of being sent to the object, is simply printed to standart output. Usefull for debugging.

Notes on <stringConstant>

Example

Let's assume that there is a fictitious State Manager executing in domain EXPERIMENT. Let's further assume that there is an object CONTROL inside the domain. And finally let's assume that in its current state the object accepts an action START_NEW_RUN with two parameters: RUN_NUMBER (integer) and RUN_TYPE (string constant). In order to make this object execute the action, the following command is executed:

smiSendCommand EXPERIMENT::CONTROL START_NEW_RUN -pi RUN_NUMBER 1234 -ps RUN_TYPE 'COSMICS'

NB. As the option -dns is not present on the command line, the command will assume that the DIM Name server is running on the host that is given by the value of DIM_DNS_NODE environmental variable.