Previous Topic: Add an AlertNext Topic: Update a CI


Add a CI to a Service

To add a CI to a service, run the GCEventAddCmd batch program with an XML file containing the <Relationship> tag and appropriate required properties with corresponding values.

Note: For a complete list of USM property tags, see the USM schema to determine which USM properties are required for the specific class of CI.

The following example lets you add a CI to a service by running the batch program as follows:

GCEventAddCmd -hSOIserver.ca.com:7090 -fMyServiceRelation.xml

The MyServiceRelation.xml file includes the following information:

<Services>
	<Relationship>
	  <property tag="eventType" value="AddRelationship" /> 
	  <property tag="SourceMdrElementID" value="UCService" /> 
	  <property tag="TargetMdrElementID" value="UCServer" /> 
	  <property tag="ScopeMdrElementID" value="UCService" /> 
	  <property tag="Semantic" value="HasMember" /> 
	  <property tag="className" value="BinaryRelationship" /> 
	</Relationship>
</Services>

The parameters used in this example XML file are as follows:

eventType

Specifies the type of event. For this example, the value is AddRelationship.

SourceMdrElementID

Specifies the unique source identifier. For this example, the value is UCService.

TargetMdrElementID

Specifies the unique target identifier. For this example, the value is UCServer.

ScopeMdrElementID

Specifies the service in which the relationship exists. For this example, the value is UCService.

Semantic

Relates one USM instance to another. For this example, the value is HasMember.

className

Specifies the USM class name. For this example, the value is BinaryRelationship.