You can manage CIs in two different XML tag contexts—<Events> tag and <Services> tag.
<Events> <Event> eventType = DeleteCIEvent
<Services> <Service> eventType = DeleteCI
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.
You can delete only those CIs (by using the Universal connector) that the Universal connector has created. You cannot delete a CI from a different connector.
The following example lets you delete a CI called MyMachine of USM type ComputerSystem by running the batch program as follows:
GCEventAddCmd -hSOIserver.ca.com:7090 -fDeleteCI.xml
The DeleteCI.xml file includes the following information:
<Events> <Event> <property tag="eventType" value="DeleteCIEvent" /> <property tag="MdrElementID" value="MyMachine" /> <property tag="className" value="ComputerSystem" /> <property tag="Label" value="MyMachine" /> <property tag="Description" value="Delete the ComputerSystem" /> <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 DeleteCIEvent.
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 "Delete the ComputerSystem".
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.
|
|