Ability to have customer Spectrum OneClick script execute on multiple selected model in Alarms tab

Document ID : KB000056719
Last Modified Date : 14/02/2018
Show Technical Document Details

Functionality was added in Spectrum 09.04.02.00 to be able to select multiple alarms from the Spectrum OneClick Alarms tab, right mouse click and select a custom script and have the script executed for each alarm selected. The following is the release note entry: 

 

Symptom: OneClick console users are not allowed to run remote scripts on multiple selected alarms. 

Resolution: OneClick console users can execute remote scripts for multiple selected alarms. 

(9.4.2, 325313, 21802814-1) 

 

A new tag called "<run-for-multiple-alarms />" was added that allows this. The following is a sample script: 

 

<root> 

<menu name="com.aprisma.spectrum.app.swing.window.menu.Tools"> 

<item name="Run Shell Script"> 

<popup-visibility>always</popup-visibility> 

<action> 

<context> 

com.aprisma.spectrum.app.alarm.client.group.AlarmContext 

</context> 

<launch-web-server-script> 

<command>sh /cygdrive/c/win32app/Spectrum/test.sh {0} {1} {2}</command> 

<param> 

<attribute>AlarmAttrID.ALARM_ID</attribute> 

</param> 

<param> 

<attribute>AttributeID.MODEL_NAME</attribute> 

</param> 

<param> 

<attribute>AlarmAttrID.ALARM_TITLE</attribute> 

</param> 

<display-exit-status /> 

<run-for-multiple-alarms /> 

</launch-web-server-script> 

</action> 

</item> 

</menu> 

</root>