Hi Dave, list,
The information you will be able to pass is the event message. The varbind
number is part of it, as long as you include it in the event format file (what
you described). You have to assign the internal variable to a script parameter
within the custom-menu-config.xml file.
The example below launches a script on the OneClick server, whenever the menu
pick is choosen within OneClick client.
A number of 33 parameters are passed to the script, the example is incomplete.
The attribute AlarmAttrID.ORIGINATING_EVENT is the parameter in question.
You should have a look at the OneClick customization guide.
<root>
<!-- menu for ticket handling -->
<menu name="Ticket Tools">
<!-- menu item for ticket creation -->
<item name="Create Ticket">
<accelerator modifiers="2">VK_I</accelerator>
<popup-visibility>when-filter-passed</popup-visibility>
<action>
<context>
com.aprisma.spectrum.app.alarm.client.group.AlarmContext
</context>
<filter>
<and>
<has-attribute>AlarmAttrID.TROUBLE_TICKET_ID</has-attribute>
</and>
</filter>
<launch-web-server-script>
<command>/home/spectrum/autoTicket/create_ticket.sh {0} {1} {2} {3} {4} {5} {6}
{7} {8} {9} {10} {11} {12} {13} {14} {15} {16} {17} {18} {19} {20} {21} {22}
{23} {24} {25} {26} {27} {28} {29} {30} {31} {32}</command>
<!-- alarm attributes -->
<param>
<attribute>AlarmAttrID.ALARM_ID</attribute>
</param>
<param>
<attribute>AlarmAttrID.CAUSE_TITLE</attribute>
</param>
<param>
<attribute>AlarmAttrID.SEVERITY</attribute>
</param>
<param>
<attribute>AlarmAttrID.ORIGINATING_EVENT</attribute>
</param>
...
Mit freundlichen Gruessen - Yours sincerely
Raphael Franck
Senior System Engineer
Infrastructure Services & Support
Email: [email protected]<mailto:[email protected]>
Europaring 34-40, 50170 Kerpen, Nordrhein-Westfalen, Germany
Von: Dave Goldstraw [mailto:[email protected]]
Gesendet: Dienstag, 25. Mai 2010 11:45
An: spectrum
Betreff: [spectrum] Pass var bind data to serverside script via OneClick menu.
Hi List,
Does anyone know how to pass var bind data from a custom alarm to a server side
script via the OneClick custom menu? I'm looking for some kind of expression to
go in the <param> area in custom-menu-config.xml file.
I'm already passing attributes of the device. The value i'm after originated
from an SNMP trap and is {S 2} in my EvFormat event file if that helps.
Thanks,
Dave
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
* --To unsubscribe from spectrum, send email to
[email protected]<mailto:[email protected]> with the body: unsubscribe spectrum
[email protected]
-----------------------------------
Computacenter AG & Co. oHG, mit Sitz in Kerpen (Amtsgericht Köln HRA 18096)
Vertretungsberechtigte Gesellschafter:
Computacenter Aktiengesellschaft, mit Sitz in Köln (Amtsgericht Köln HRB 28384)
Vorstand: Oliver Tuszik (Vorsitzender), Dr. Karsten Freihube, Hans-Georg
Freitag, Frank Kottmann, Reiner Louis
Aufsichtsrat: Michael Norris (Vorsitzender)
Computacenter Management GmbH, mit Sitz in Köln (Amtsgericht Köln HRB 28284)
Geschäftsführer: Ulrich Irnich, Jürgen Stauber
Visit us on the Internet: http://www.computacenter.de
Visit our Online-Shop: https://shop.computacenter.de
This email is confidential. If you are not the intended recipient, you must not
disclose or use the information contained in it. If you have received this mail
in error, please tell us immediately by return email and delete the document.
-----------------------------------
---
To unsubscribe from spectrum, send email to [email protected] with the body:
unsubscribe spectrum [email protected]