DX NetOps

  • 1.  How do I reference a username/model within EventDisp?

    Posted Feb 06, 2017 09:34 AM

    Hi everyone,

     

    If I'm creating an event procedure, how would I reference the current username, model etc. within the event? I've tried GetEventVariable({u}), where {u} is a reference to username within event description files. This doesn't parse well.

     

    I'm interested in this in order to add such variables to dynamic alarms.

     

    Any ideas?



  • 2.  Re: How do I reference a username/model within EventDisp?

    Broadcom Employee
    Posted Feb 06, 2017 07:16 PM

    There are only CURRENT_EVENT and CURRENT_MODEL reserved constants in Event Procedure. You can refer Input Parameters - CA Spectrum - 10.2 - CA Technologies Documentation for details.

    There is no constant that refers to current username. May be you can describe in more details about what you are trying to achieve by configuring Event Procedure



  • 3.  Re: How do I reference a username/model within EventDisp?

    Posted Feb 07, 2017 02:56 AM

    Sure,

     

    I want to create a dynamic alarm which states which attribute was modified by the current user in Oneclick. It would take events created by log_user_events and turn them into alarms which can then be exported with SANM. 

     

    To my understanding, it's not possible to export user actions within Oneclick (other than User models as of Spectrum 10.2), so this is a compromise. 

     

    Therefore I'd like to create an event procedure which takes the current username, along with a few variables, and put it into the alarm title.



  • 4.  Re: How do I reference a username/model within EventDisp?

    Broadcom Employee
    Posted Feb 08, 2017 07:52 PM

    I don't see we can extract 'username' information using Event Procedure. We can extract event variable data from the event but not 'username' data as it is not event variable. Maybe others have any idea?

    Tuesday Tip:  How to enable user event logging 



  • 5.  Re: How do I reference a username/model within EventDisp?

    Posted Feb 07, 2017 03:30 AM

    One thing I have been missing is a way to get an alarm when someone deletes a model from Spectrum: we need to know who did it and when. So far it is not possible as far as I know. Cheers, Veronique



  • 6.  Re: How do I reference a username/model within EventDisp?

    Posted Feb 15, 2017 08:47 AM

    Alright, it seems this isn't possible at present. 

    Hopefully a more robust user logging will be implemented in the upcoming versions. At present this is a noticeable security and administrative caveat.