Sun N1 Service Provisioning System 5.1 XML Schema Reference Guide

<call> Step

Use the <call> step to execute a control block that is associated with a component that is already installed on the target host.

The <call> step has the following child elements:

Attributes for the <call> Step

The <call> element has one required attribute of type entityName, blockName, which is the name of the control block to execute on the installed component.

<argList> Element

The <argList> element is a child of the <call>, <install>, <uninstall>, <execSubplan>, and <addSnapshot> steps. This element specifies a list of variables to be passed as arguments to the called service.

The called service declares the variables that it expects by using a <paramList> element. The collection of variables listed in the <argList> and in the called <paramList> need not be the same.

For each variable declared in the <paramList> that does not have a default value, a corresponding variable of the same name must be included in the <argList>. If this condition is not met, a preflight error is raised at plan runtime. The provisioning system runs through each variable in the called <paramList> for which there is a corresponding variable in the <argList>. The value of the variable in <paramList> obtains the value of the corresponding variable in <argList> for the duration of the execution of the called service.

Variables in <argList> that do not correspond to a variable in the called <paramList> are silently ignored. Thus, you can redefine a service by adding parameters while still ensuring backward compatibility. So, one plan could call both the old and new versions of the same service.

The arguments of the <argList> element are expressed as attributes. The order in which the attributes appear is not significant. The following <argList> declares two arguments, password and path:


<argList password=":[password]" path="/tmp"/>

Attributes for the <argList> Element

The <argList> element must have at least one attribute. Each attribute is treated as a named variable to be passed to the called service. The name of each attribute must be an identifier without substitution variable references. The attribute name should correspond to the name of a parameter in the called service. The value of each attribute is an arbitrary string that can include references to variables in the enclosing scope, but not other arguments within the <argList>.