DX NetOps

  • 1.  Tuesday Tip: Configure Spectrum Modeling Gateway to export Notes attribute

    Posted Apr 25, 2012 04:47 PM

    [color=#f60909][color][color=#f60707][color][color=#ffffff][color][color=#ffffff][color]Tuesday Tip: Configure Spectrum Modeling Gateway to export Notes attribute

    CA Spectrum Tuesday Tip by Joe Ackley, Support Engineer

    Configure Spectrum Modeling Gateway to export Notes attribute

    Description:

    The following is an example of how to configure the Spectrum Modeling Gateway export process to export a device models Notes in addition to the rest of the out of the box data exported.

    Scenario:

    You wish to use the Spectrum Modeling Gateway export process to export the device model information. You use the Notes field in Spectrum to enter important information about the device. You wish to include the model Notes in addition to the default out of the box data that is exported.

    Solution:

    Add the Notes attribute (0x11564) to the <DeviceExportAttributes> tag in the $SPECROOT/SS-Tools/.modelinggatewayresource.xml file. The <DeviceExportAttributes> is a list of device attributes to be exported. When added, be sure to add it between the open tag <DeviceExportAttributes> and the close tag </DeviceExportAttributes>. The following is an example:

    <DeviceExportAttributes>
    <name/>
    <model_type attribute_id="0x10000"/>
    <community_string/>
    <agent_port/>
    <poll_interval/>
    <is_managed/>
    <poll_status/>
    <Security_String/>
    <TimeOut/>
    <TryCount/>
    <Criticality/>
    <Value_When_Orange/>
    <Value_When_Red/>
    <Value_When_Yellow/>
    <Notes attribute_id=”0x11564” />
    <mdl_creat_athr attribute_id="0x11026" />
    <mdl_creat_method attribute_id="0x12a73" />
    <Method_Model_Name attribute_id="0x12ad0" />
    <Redundancy_Admin_Status attribute_id="0x11d2c" />
    <Auto_Reconfigure_Interfaces attribute_id="0x11dd4" />
    <Discover_Connection_After_Linkup_Trap attribute_id="0x11d25" />
    <Device_Discovery_After_Reconfiguration attribute_id="0x11d27" />
    <Generate_Redundancy_Alarms attribute_id="0x11dd6" />
    <Create_Sub_Interfaces attribute_id="0x11f3c" />
    <Topology_Relocate_Model attribute_id="0x11a80" />
    <Disable_Trap_Events attribute_id="0x11cd0" />
    <Enable_Spectrum_Management attribute_id="0x1295d" />
    <Hibernate_Device attribute_id="0x12aca" />
    <Enable_Event_Creation attribute_id="0x129f8" />
    <Redundancy_Admin_Status attribute_id="0x11d2c" />
    <DeviceCPUUtilization_Threshold attribute_id="0x12ab9" />
    <DeviceCPUUtilization_Reset attribute_id="0x12abb" />
    <DeviceCPUUtilization_Duration attribute_id="0x12bce" />
    <DeviceMemoryUtilization_Threshold attribute_id="0x12aba" />
    <DeviceMemoryUtilization_Reset attribute_id="0x12abc" />
    <DeviceMemoryUtilization_Duration attribute_id="0x12bcf" />
    </DeviceExportAttributes>

    When the Spectrum Model Gateeway process is run, the Note attribute 0x11564 will now be included in the resulting export file. The following is an example of the Notes attribute in the resulting export xml file:

    <Device network_address="192.168.2.1" name="My_Host" model_type="Host_Device" model_handle="0x4001b3" Notes="My Host exported notes" Enable_Spectrum_Management="1" Topology_Relocate_Model="0" DeviceMemoryUtilization_Reset="70" mdl_creat_method="1" Redundancy_Admin_Status="0" mdl_creat_athr="spectrum@My_Host" DeviceCPUUtilization_Threshold="85" DeviceCPUUtilization_Reset="70" DeviceMemoryUtilization_Threshold="85" Value_When_Orange="3" Value_When_Yellow="1" Criticality="1" Discover_Connection_After_Linkup_Trap="0" Value_When_Red="7" Device_Discovery_After_Reconfiguration="0" Hibernate_Device="1" Generate_Redundancy_Alarms="1" poll_status="1" Create_Sub_Interfaces="1" Auto_Reconfigure_Interfaces="1" Enable_Event_Creation="1" poll_interval="300" agent_port="161" Disable_Trap_Events="0" DeviceCPUUtilization_Duration="300" community_string="public" DeviceMemoryUtilization_Duration="300" TryCount="3" TimeOut="3000" Method_Model_Name="3" x_coordinate="739" y_coordinate="1126" />

    Please refer to the "Modeling Gateway Toolkit" document for more information on the Spectrum Modeling Gateway.



  • 2.  RE: Tuesday Tip: Configure Spectrum Modeling Gateway to export Notes attrib

    Posted Apr 26, 2012 01:24 AM
    Thanks for this valuable Tip.

    -- Krishna


  • 3.  Re: Tuesday Tip: Configure Spectrum Modeling Gateway to export Notes attribute

    Posted Aug 02, 2017 08:47 AM

    I am currently working on migration from CA Spectrum 9.4 to CA Spectrum 10.2 and I need to keep custom attributes data while migration using spectrum modeling gateway. I added the custom attributes in $SPECROOT/SSTools/.
    modelinggatewayresource.xml file however still not getting custom attributes information in exported xml file.

     

    I tried with Notes attribute as well in Test Environment, still not getting the custom attributes in exported xml file.

     

    modelinggateway.bat -vnm caspectrum -e spec1.xml

     

    Can somebody advise what could be the possible reason?

     

    <DeviceExportAttributes>

    <name/>
    <model_type attribute_id="0x10000"/>
    <community_string/>
    <agent_port/>
    <poll_interval/>
    <is_managed/>
    <poll_status/>
    <Security_String/>
    <TimeOut/>
    <TryCount/>
    <Criticality/>
    <Value_When_Orange/>
    <Value_When_Red/>
    <Value_When_Yellow/>
    <Notes attribute_id="0x11564" />
    <mdl_creat_athr attribute_id="0x11026" />
    <mdl_creat_method attribute_id="0x12a73" />
    <Method_Model_Name attribute_id="0x12ad0" />
    <Redundancy_Admin_Status attribute_id="0x11d2c" />
    <Auto_Reconfigure_Interfaces attribute_id="0x11dd4" />
    <Discover_Connection_After_Linkup_Trap attribute_id="0x11d25" />
    <Device_Discovery_After_Reconfiguration attribute_id="0x11d27" />
    <Generate_Redundancy_Alarms attribute_id="0x11dd6" />
    <Create_Sub_Interfaces attribute_id="0x11f3c" />
    <Topology_Relocate_Model attribute_id="0x11a80" />
    <Disable_Trap_Events attribute_id="0x11cd0" />
    <Enable_Spectrum_Management attribute_id="0x1295d" />
    <Hibernate_Device attribute_id="0x12aca" />
    <Enable_Event_Creation attribute_id="0x129f8" />
    <Redundancy_Admin_Status attribute_id="0x11d2c" />
    <DeviceCPUUtilization_Threshold attribute_id="0x12ab9" />
    <DeviceCPUUtilization_Reset attribute_id="0x12abb" />
    <DeviceCPUUtilization_Duration attribute_id="0x12bce" />
    <DeviceMemoryUtilization_Threshold attribute_id="0x12aba" />
    <DeviceMemoryUtilization_Reset attribute_id="0x12abc" />
    <DeviceMemoryUtilization_Duration attribute_id="0x12bcf" />

    </DeviceExportAttributes>



  • 4.  Re: Tuesday Tip: Configure Spectrum Modeling Gateway to export Notes attribute

    Posted Aug 02, 2017 11:01 AM

    Kamal,

     

    I just ran a test with 10.2 (don't have 9.4 installed) and it worked as expected.

     

    Anything in the spec1.log file? Can you run with the -debug option to see if there are any errors?

     

    Joe



  • 5.  Re: Tuesday Tip: Configure Spectrum Modeling Gateway to export Notes attribute

    Posted Aug 03, 2017 04:58 AM

    Thanks for your response Joseph,

     

    I missed to update community post resolution. I had restarted spectrum and then ran the export again. it worked fine for both Notes attributes and other custom attributes which we need to migrate from 4 spectroservers (9.4) to single spectroserver (10.2). I can clearly see custom attributes data in exported xml. however I am not able to import the data into targeted spectrum due to error: unknown attribute. However custom attribute is already there on targeted spectrum.

     

    Error while Importing data