Previous Topic: Update a CINext Topic: How to Find USM Properties for a CI


Delete a CI

You can manage CIs in two different XML tag contexts—<Events> tag and <Services> tag.

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:

eventType

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

MdrElementID

Specifies a unique identifier for the CI. For this example, the value is MyMachine.

className

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

Label

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.

Description

Specifies a description of the CI. For this example, the value is "Delete the ComputerSystem".

AdministrativeStatus

Specifies the high-level administrative status of the CI. For this example, the value is Managed.

Vendor

Specifies the hardware vendor name. For this example, the value is Dell.

PrimaryDnsName

Specifies the fully qualified DNS name of the entity. For this example, the value is MyMachine.ca.com.

ComputerName

Specifies the name of the computer. For this example, the value is MyMachine.

MemoryInGB

Specifies the amount of system memory. For this example, the value is 1024.