HP Service Manager Doctor

Add to My manuals
39 Pages

advertisement

HP Service Manager Doctor | Manualzz

Rule Configuration File Snippets

SM_Configuration_Rule.xml snippet

<?xml version="1.0" encoding="UTF-8"?>

<xml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:noNamespaceSchemaLocation="SM_Configuration_Rule.xsd" version="1.0">

<source id="configuration" description="service mangaer configuration validation rules">

<domain id="StartUp" description="validate sm startup configuration" >

<rule id="sync" description="validate synch parameter" >

<operation param="sync" action="ValidateIsNotNull" />

</rule>

<rule id="systemstart" description="validate system.start" >

<operation param="system.start" action="ValidateIsNotNull" />

</rule>

<rule id="startuprule" description="validate startup by combination of sync and system.start" >

<condition operator="and" target="false">

<conditionrule id="sync" />

<conditionrule id="systemstart" />

</condition>

<output type="failed" message="failed: sync and system.start p rocesses should not be started at the same, the recommendation is to remove sync from configuration.

For further information, please refer to “Configuring a horizontal scaling environment” on help server."

/>

<output type="success" message="success: sync and system.start are not set both" />

</rule>

</domain>

……

SM_Configuration_Rule.xsd snippet

<xs:complexType name="rule_type">

HP Service Manager (9.33)

Page 32 of 39

SM Doctor User's Guide

Rule Configuration File Snippets

<xs:sequence>

<xs:element name="condition" minOccurs="0" type="condition-type">

<xs:unique name="NoRepeatConditionRule">

<xs:selector xpath="conditionrule"/>

<xs:field xpath="@id"/>

</xs:unique>

</xs:element>

<xs:element name="operation" minOccurs="0" type="operation_type">

</xs:element>

<xs:element name="output" minOccurs="0" maxOccurs="unbounded" type=

"output_type">

</xs:element>

</xs:sequence>

<xs:attribute name="id" type="xs:string" use="required" />

<xs:attribute name="description" type="xs:string" use="optional" />

<xs:attribute name="mode" use="optional" >

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:enumeration value="multiple" />

<xs:enumeration value="single" />

</xs:restriction>

</xs:simpleType>

</xs:attribute>

</xs:complexType>

HP Service Manager (9.33)

Page 33 of 39

advertisement