DX NetOps

 View Only
  • 1.  How to pass Spectrum attribute value into SDM "Description" field

    Posted Oct 19, 2015 01:13 PM

    I'd like to customize SDM "Description" field using default and/or customized attributes from Spectrum, how do I can do it?



  • 2.  Re: SDM - How to add attritube value into "Description" field

    Posted Oct 19, 2015 10:11 PM

    May I follow described steps on post

     

    Including additional info in Event Message

     

    https://communities.ca.com/message/241696704#241696704

     

     

    The attribute to be added under Event Message can be for eg: "sysLocation" (0x1102e). Is it possible customize/create an event to get its value through EventDisp using "ReadAttributeInstance" as shown below?

     

    ReadAttributeInstance (\

                            {C CURRENT_MODEL},\

                            {H 0x1102e}



  • 3.  Re: How to pass Spectrum attribute value into SDM "Description" field

    Posted Oct 21, 2015 09:23 AM

    Follows below image containing default atrtibutes displayed under description field.

    Description.png



  • 4.  Re: How to pass Spectrum attribute value into SDM "Description" field

    Broadcom Employee
    Posted Oct 22, 2015 09:03 AM

    Hi Marcio,

      I don't think this can be done (at least not for this event or the Fault Isolation (FI) events).  To get it to work you would need to use a procedure on the original event and generate a new event to pass the Location value.  For the Fault Isolation events, this will not work as the inference handler would not function correctly with the new event code (the codes and event info are hardcoded/stored so that the FI algorithms can run properly).  If you start messing with those events, you start messing with the inference handler and you will get undesirable results.  If you do this on other events, you should use the internal Location attribute (0x23000d) so as not to introduce performance issues with events.

    Cheers

    Jay



  • 5.  Re: How to pass Spectrum attribute value into SDM "Description" field

    Posted Oct 22, 2015 09:19 AM

    Hi Jay,

     

    Could you please show me a customized event procedure getting any attribute value to the new event? 

     

    Thanks a lot!!!!



  • 6.  Re: How to pass Spectrum attribute value into SDM "Description" field

    Posted Oct 22, 2015 09:29 AM

    Maybe something like below code:

     

    0xffff0000 E 50 P " \

      CreateEventWithAttributes( \

        ReadAttribute( \

              { C CURRENT_MODEL }, \

              { H 0x23000d } ), \   <--- Location --->

        { H 0xffff0001 }, \

        GetEventAttributeList() )"



  • 7.  Re: How to pass Spectrum attribute value into SDM "Description" field

    Posted Oct 22, 2015 09:36 AM

    There is a good example documented in knowledge document TEC518237.



  • 8.  Re: How to pass Spectrum attribute value into SDM "Description" field

    Posted Oct 22, 2015 10:02 AM

    Hi Jay,

     

    How do I can display attribute Location (0x23000d) into "Description" field?

     

    0xfff0000 E 50 P "\

      CreateEventWithAttributes( \

        { C CURRENT_MODEL }, \

        { H 0xffff0001 }, \

        SetEventAttribute( \

          GetEventAttributeList(), \

          { U 111}, \

          ReadAttribute( \

            { C CURRENT_MODEL }, \

            { H 0x23000d } ) ) )"


    Regards,

    Márcio





  • 9.  Re: How to pass Spectrum attribute value into SDM "Description" field

    Broadcom Employee
    Posted Oct 22, 2015 03:40 PM

    Hi Marcio,

     

    You have to display the value of {U 111} variable in the Event Message.

    Just add the following in the 0xffff0001 Event Message:

    Location = {S 111}

     

    Thanks,

    Silvio



  • 10.  Re: How to pass Spectrum attribute value into SDM "Description" field

    Broadcom Employee
    Posted Jun 26, 2017 01:33 PM

    Thanks for using the CA Community!  It looks like your question has been answered so we are closing this thread out.  If you have additional questions, please feel free to contact us again.