You can manage CIs in two different XML tag contexts—<Events> tag and <Services> tag.
<Events> <Event> eventType = UpdateCIEvent
<Services> <Service> eventType = UpdateCI
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 update a CI description by running the batch program as follows:
GCEventAddCmd -hSOIserver.ca.com:7090 -fUpdateCI.xml
The UpdateCI.xml file includes the following information:
<Events> <Event> <property tag="eventType" value="UpdateCIEvent" /> <property tag="MdrElementID" value="MyMachine" /> <property tag="className" value="ComputerSystem" /> <property tag="Label" value="MyMachine" /> <property tag="Description" value="Update to the Description" /> <property tag="AdministrativeStatus" value="Managed" /> <property tag="Vendor" value="Dell" /> <property tag="PrimaryDnsName" value="MyMachine.ca.com" /> <property tag="ComputerName" value="MyMachine" /> <property tag="MemoryInGB" value="1024" /> </Event> </Events>
The parameters used in this example XML file are as follows:
Specifies the type of event. For this example, the value is UpdateCIEvent.
Specifies a unique identifier for the CI. For this example, the value is MyMachine.
Specifies the USM class name. For this example, the value is ComputerSystem.
Specifies a short description for identification of the CI. It is important that the value of the Label uniquely distinguishes entities in the interface. For this example, the value is MyMachine.
Specifies a description of the CI. For this example, the value is "Update to the Description".
Specifies the high-level administrative status of the CI. For this example, the value is Managed.
Specifies the hardware vendor name. For this example, the value is Dell.
Specifies the fully qualified DNS name of the entity. For this example, the value is MyMachine.ca.com.
Specifies the name of the computer. For this example, the value is MyMachine.
Specifies the amount of system memory. For this example, the value is 1024.
|
Copyright © 2013 CA.
All rights reserved.
|
|