To create a service, run the GCEventAddCmd batch program with an XML file that contains the <Service> tag and appropriate property tags with corresponding values. The template tag structure is as follows:
<Services> <Service> ... ... </Service> </Services>
Note: For a complete list of USM property tags, see the USM schema to determine which USM properties are required for this class of CI.
The following example lets you create a service called MyService by running the batch program as follows:
GCEventAddCmd -hSOIserver.ca.com:7090 -fMyService.xml
The example uses the MyService.xml file that includes the following information:
<Services> <Service> <property tag="eventType" value="AddService" /> <property tag="MdrElementID" value="MyService" /> <property tag="className" value="Service" /> <property tag="ServiceName" value="MyService" /> <property tag="ServiceVersion" value="0" /> <property tag="Description" value="Adding a new Service" /> <property tag="AdministrativeStatus" value="Managed" /> </Service> </Services>
The USM properties used in this example XML file are as follows:
Specifies the type of event. For this example, the value is AddService.
Specifies a unique identifier for the service. For this example, the value is MyService.
Specifies the USM class name. For this example, the value is Service.
Specifies the name of the service that distinguishes it from others. For this example, the value is MyService.
Specifies the version level of the service. For this example, the value is 0.
Specifies a detailed description of the service. For this example, the value is Adding a new Service.
Specifies the high-level status of the service. For this example, the value is Managed.
|
Copyright © 2013 CA.
All rights reserved.
|
|