DX NetOps

  • 1.  Exporting Event Models using Southbound Gateway in CMDB format

    Posted Apr 18, 2017 11:15 AM

    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



  • 2.  Re: Exporting Event Models using Southbound Gateway in CMDB format

    Broadcom Employee
    Posted Apr 18, 2017 11:50 AM
      |   view attached

    Someone feel free to correct me if I’m wrong but I don’t believe it can be done.  It looks like the cmdb option only exports devices and service models…

     

    Cheers

    Jay



  • 3.  Re: Exporting Event Models using Southbound Gateway in CMDB format

    Posted Apr 19, 2017 09:38 AM

    Thank you Jay.

     

    Under CMDBClassMapping, 

    <SPECTRUMModelClass>10</SPECTRUMModelClass> <!-- EventModel -->

     

    Should be 

     

    <SPECTRUMModelClass>124</SPECTRUMModelClass> <!-- EventModel -->

     

    It was a typo. Model Class ID for Event Model is 124.

     

    Can someone please confirm on Jay's statement about Exporting Event Models?

     

    Also, let me know if anyone tried the mentioned scenario and how.

     

    Regards,

    Rajashekar

     



  • 4.  Re: Exporting Event Models using Southbound Gateway in CMDB format

    Posted Jun 18, 2018 09:14 AM

    Hi Rajashekar,

     

     Please see this KB "Spectrum Modeling Gateway CMDB export not exportin - CA Knowledge", I think it don't meet you needs, but it explain your doubt.



  • 5.  Re: Exporting Event Models using Southbound Gateway in CMDB format

    Posted Jun 18, 2018 10:59 AM

    Thank you for this. I am using different way to get the required models.

    This thread can be marked as answered.