State Manager Run Time Options

When State Manager is running, some of its behaviour can be controlled by Run Time Options. These options are initially specified on the start command (smiSM) e.g.:

smiSM -d 6 -t 1 'domain_name' 'file_name'

The values of most of them can be dynamically changed once State Manager is running. See below. These options are:

Available Options

Option Option Id Comment
Diagnostic Level d An integer whose value determines the amount of diagnostic printing generated. Default value is 3. The max value is 9.
Unlocked IFs Flag u Value 0 or 1. The default is 0. Affects the way IF instructions are processed. Described in detail elsewhere.
New Time Format Flag t Value 0 or 1. The default is 0. Messages such as diagnostic prints are time-stamped. This option determines its format. When the value is 0, the format is:
'day' 'month' dd:mm:ss yyyy e.g. Fri Nov 25 15:11:55 2011
When the value is 1, the format is:
yyyy.mm.dd hh:mm:ss.sss e.g. 2011.11.25 15:11:55.357
Dns node dns This is the host on which dns server is running. e.g. lxplus086.cern.ch The default is an empty string, in which case the host is assumed to be the same as the host on which the State Manager is running.
Options for loop control
Max.no. of state changes per second loopMaxChanges Maximum number of state changes/second allowed
Fatal no. of state changes per second loopMaxChangesFatal No of state changes/second beyond this limit is considered fatal and will cause State Manager to exit.
Min Loop Duration (secs) loopMinDuration Minimal time of the potential loop for it to be considered serious.

Changing the value of an option when State Manager is running

For this purpose the command smiChangeOption is provided. It has the following format:

smiChangeOption 'domain-name' 'option-id' 'option-value'

for example:

smiChangeOption RUNCONTROL d 3

In addition, set of routines is provided to facilitate this task from an User Interface to State Manager. See SMIUIRTL description.