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:
Specifies the type of event. For this example, the value is AddRelationship.
Specifies the unique source identifier. For this example, the value is UCService.
Specifies the unique target identifier. For this example, the value is UCServer.
Specifies the service in which the relationship exists. For this example, the value is UCService.
Relates one USM instance to another. For this example, the value is HasMember.
Specifies the USM class name. For this example, the value is BinaryRelationship.
|
Copyright © 2013 CA.
All rights reserved.
|
|