SNMP Trap Jython Action Scripts set incident attribute (458 Views)
Reply
Advisor
lcain
Posts: 19
Registered: ‎02-06-2012
Message 1 of 2 (458 Views)

SNMP Trap Jython Action Scripts set incident attribute

We converted from 7.5 to 9.10.  In 7.5 we had multiple instance of the SNMP Object with difference names based on files with a list of nodes.

 

I was able to in 9.10 using SNMP Trap Configuration>Node Settings>Enhancement to change the Category but I can not change the incident name.    So I thought I would try Jyphon.  I got as far as setting hooking up a script but I am not sure how to set incident in the jyphon script.    Does anyone know where this is document?

 

Thanks.

HP Expert
Dave Young
Posts: 560
Registered: ‎09-27-2000
Message 2 of 2 (451 Views)

Re: SNMP Trap Jython Action Scripts set incident attribute

Icain,

 

  NNM and NNMi have take a different route to implement customisations to a trap.  As you stated NNM used the concept of copying the OID and giving the trap configuration a different name and then identifying the matching configuration base on the source field which could either be a node list or a file containing a series of nodes.

 

  NNMi has taken a different approach.  Now you have the one incident within which you can match on either an interface group, a node group, or the default configuration.  In each of these sections you can then configure the enrichment, dampening, actions etc which can also be further qualified with the use of payload filters.

 

  The actions that can be run are either program files, perl scripts, kernel scripts on unix or jython functions as defined in a jython.py file.   If you need to provide the name of the incident, or any other incident, source node or source object attribute, to the jython function then this can be done via the parameter list.  A complete list of all incident attributes can be found at the URL:

 

http://<nnmiNode>/nnmDocs_en/htmlHelp/nmHelp/Subsystems/nmAdminHelp/Content/nmAdminHelp/nmAdmConfInci0841MsgFormatParams.htm

 

  I hope this is of some help

 

  All the best

 

Dave

HP Support

The views expressed in my contributions are my own and do not necessarily reflect the views and strategy of HP

If you find this or any post resolves your issue, please be sure to mark it as an accepted solution.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.