In addition to maintaining runtime agents, the Universal Agent can manage itself through the rulebook, as described in this topic.

Define Universal Agent Rules

In a Universal Agent rulebook, a monitor value of universal identifies a Universal Agent rule.

"monitor": "universal",

The state property has the following values for the Universal Agent: 

When you install the Universal Agent, you get a default rulebook that includes a rule for the Universal Agent. 

To upgrade the Universal Agent, you simply load the new version of the agent in the repository and increment the version number in the rule. When the Universal Agent detects that the rulebook specifies a different version than the version currently running, it automatically restarts itself with the new version.

Example Universal Agent Rule

The default rulebook includes a default rule for the Universal Agent, as follows:

            "name": "Universal Agent rule",
            "comments": "Universal Agent rule",
            "monitor": "universal",
            "config": {
                "version": "",
                "state": "started"
            "condition": "True"

Using Multiple Universal Agent Rules

You can have multiple Universal Agent rules in a rulebook. Each should specify a different name and a different version. Only one rule at a time can specify a state of started.

If multiple rules specify a state of started, only the first one is recognized, and the other started Universal Agent rules are ignored.  As with other rules in the rulebook, Universal Agent rules are ignored if the condition expression yields a value of False.