Hi All,
We are looking for a way to export event models in CMDB format from Spectrum using Southbound Gateway toolkit and we use the resulting output file to feed the CA Service Desk CMDB.
I have tried editing the ".modelinggatewayresource.xml" and "cmdbresource.xml" files as described below and didn't work.
I have modified the file ".modelinggatewayresource.xml" as below.
Under ModelTypes section:
EventModel = "0x3dc0001" (Added this to represent EventModel Model type)
Added below to export Event Models.
<SpectrumConfigurationExport model_type="EventModel" >
<Model_Name attribute_id="0x1006e" />
<Unique_ID attribute_id="0x3dc0004" />
</SpectrumConfigurationExport>
Once done, executed the below command.
./modelinggateway -vnm lxspectrum01 -e normal_export.xml --> This is for normal export
Where lxspectrum01 is the spectrum server.
The above command is exporting the event models in to output XML file as the event models are part of a global collection or part of a container.
Now, As per our requirement, I have edited ".cmdbresource.xml" and added the below under Class Mapping.
<CMDBClassMapping>
<CMDBClass family="Other" class="Other" />
<SPECTRUMModelClass>10</SPECTRUMModelClass> <!-- EventModel -->
</CMDBClassMapping>
and used below command to export the models in CMDB format.
./modelinggateway -vnm lxspectrum01 -cmdb -e cmdb_export.xml
The above command is exporting Devices, Interfaces, Services and etc. but not Event Models.
Please let me know how to export Event Models in the output XML file in CMDB format.
Also, which attribute I can use for representing the Operating System Details to classify the devices as Window/Linux?
Regards,
Rajashekar