DX NetOps

  • 1.  Adding custom attributes to alarms

    Posted May 26, 2016 03:55 AM

    Hi All,

     

    Does anyone know if it is possible to add some custom attributes to alarms which can be populated during alarm creation time (Event config)?

     

    I noticed there are 4 new alarm attributes since 10.1.1 (UIM alarm ID, source, etc) and was wondering how easy it is to add custom ones.

     

    What I'm hoping to do is add specifically an NMS attribute which tells me which NMS the trap came from. This way I can run queries through the rest API and see only specific alarm from one or multiple NMS's we have sending traps.

     

    The idea is to populate this field potentially with event config.


    Is this possible? If not - I'll add an idea but hoping it's already possible.


    Thanks,

     

     

    Frank



  • 2.  Re: Adding custom attributes to alarms

    Broadcom Employee
    Posted May 26, 2016 10:03 AM

    Yes - it is possible to do this using the an AutoOperator and a LUA script.

     

    Here's an article that discusses the process - http://www.ca.com/us/support/ca-support-online/product-content/knowledgebase-articles/tec000003845.aspx

     

    Links in  the docs:

    NAS script editor - The nas Script Editor - CA Unified Infrastructure Management Probes - CA Technologies Documentation

    NAS LUA extensions - The nas Extentions to Lua (All Versions) - CA Unified Infrastructure Management Probes - CA Technologies Documentation

     

    Hope that helps!

     

    Phil



  • 3.  Re: Adding custom attributes to alarms
    Best Answer

    Broadcom Employee
    Posted May 26, 2016 03:32 PM

    Hope the query is for Spectrum , could you please try the below steps :

     

     

    1) Create the custom alarm attributes by adding them to the GlobalAlarm model type using the

    Model Type Editor. The attribute group ID value must be set to equal 11f4c.

    mte.jpg

     

     

    2)For this example modifying existing trap present in <Specroot>\SS\CsVendor\Cisco_Router\AlertMap file , added decimal equivalent of hex custom attribute in one of the varbind

     

    #ciscoEnvMonTempStatusChangeNotif trap   #ciscoEnvMonTemperatureStatusDescr

    1.3.6.1.4.1.9.9.13.3.6.7   0x00210c10 1.3.6.1.4.1.9.9.13.1.3.1.2(1,0) \

                                             #ciscoEnvMonTemperatureStatusValue

                                            1.3.6.1.4.1.9.9.13.1.3.1.3(4294901760,0) \

                                             #ciscoEnvMonTemperatureState

                                            1.3.6.1.4.1.9.9.13.1.3.1.6(3,0)

     

    3)For testing added the attribute in < Specroot >\custom\alarm\config\alarm-table-config.xml

    <column>

    <name>myalarmattr</name>

    <content>

    <attribute>0xffff0000</attribute>

    </content>

    <default-width>30</default-width>

    </column>

     

    4)Send a trap , the value present in the varbind is shown

     



  • 4.  Re: Adding custom attributes to alarms

    Posted May 27, 2016 02:46 AM

    Thanks both for the information. Going to give this a try!

     

    Regards,

     

    Frank



  • 5.  Re: Adding custom attributes to alarms

    Posted May 27, 2016 05:00 AM

    Is that the only way to use a custom attribute for an alarm? Is there any way to update the value of the custom attribute? Other than having the SpectroSERVER modify when receiving it as a varbind in a trap?



  • 6.  Re: Adding custom attributes to alarms

    Posted May 27, 2016 05:28 AM

    You can manipulate alarm info using REST 'PUT' call:

     

    e.g.:

     

    http://<SPECSRV>/spectrum/restful/alarms/<ALARMID>?attr=0x12022&val=<VAL>

     

    I imagine if you have the custom attribute id, you could just use it instead of the one I used above (Trouble Ticket) to modify it's value.

     

    Regards,


    Frank



  • 7.  Re: Adding custom attributes to alarms

    Posted May 30, 2016 05:00 AM

    Do you know if it's possible to use those custom attributes in Report Manager?