I'm following the documentation in the connector guide, page 74.
I'm testing out creating 1 service:
<?xml version="1.0" encoding="ISO-8859-1"?>
<Services>
<Service>
<property tag="eventType" value="AddService" />
<property tag="MdrElementID" value="AlphaserveClientPool" />
<property tag="className" value="Service" />
<property tag="ServiceName" value="AlphaserveSvcName" />
<property tag="Description" value="Alphaserve Description" />
<property tag="AdministrativeStatus" value="Managed" />
</Service>
</Services>
When I run the import command, it seems to work:
D:\APPS\CA\SOI>GCEventAddCmd.bat -hlocalhost:7090 -fd:\uct\Create_ServiceServiceTags.xml
Executing GCEventAddCmd .....
GCEventAddCmd() - adding service: AlphaserveClientPool
Return code: 0
but when I check the service modeler, it comes up displayed as "instanceID" ?
The Description & Administrative Status got filled in correctly but DevideID, InstanceID, Label, ServiceName all got: instanceID
This is SOIv3.1.
I also tried with instanceID filled in but I wasn't able to delete Ci's that I created with this property filled in. I had to manually delete them from the database using Delete From CIStaging where ....
So i am using the MdrElementID as the UUID for the service CI.
The old 3.1 gc_serviceadd.xml example uses the following code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<Services>
<Service>
<property tag="eventType" value="AddService" />
<property tag="instanceID" value="UC_Service"/>
<property tag="className" value="SA_Service" />
<property tag="deviceID" value="UC_Service" />
<property tag="severity" value="0" />
<property tag="situationMessage" value="Adding a new Service" />
</Service>
When in the newest SOI v3.2 example universalAdd_Service.xml it uses this:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Events>
<Event>
<property tag="eventType" value="AddCIEvent" />
<property tag="MdrElementID" value="MyService" />
<property tag="className" value="Service" />
<property tag="Label" value="MyService" />
<property tag="Description" value="Description of an new Service" />
<property tag="AdministrativeStatus" value="Managed" />
<property tag="ServiceName" value="MyService" />
<property tag="ServiceVersion" value="1" />
</Event>
</Events>
Which tag should be used; Events or Services?