Hi Patrick,
One of our customers came up with an easy way to do this via a custom OneClick menu that launches a script. This way you can select the devices that you want to put into maintenance and right click and select the menu option "Maintenance On". A similar option can be used to remove Maintenance.
I hope this helps.
Best regards,
Glenn
----- Taken from the bottom of this post Enable maintenance mode for a group of devices ------
I am not sure if this is an issue anymore, but we have created a solution to put multiple devices in and out of maintenance mode. This method is based on previous comments to this post.
In the custom-menu-config.xml we created a menu:
<menu name ="com.aprisma.spectrum.app.swing.window.menu.Tools">
<item name="Set Maintenance Mode ON">
<popup-visibility>when-enabled</popup-visibility>
<action>
<launch-web-server-script>
<command>sh E:/SPECTRUM/custom/maintenancemode/setMaintenanceOn.sh {0}</command>
<param>
<attribute>AttributeID.MODEL_HANDLE</attribute>
</param>
<run-for-multiple-alarms />
</launch-web-server-script>
</action>
</item>
</menu>
When selecting multiple devices in the list tab in OneClick and right click, "Set Maintenance Mode ON" shows up as an alternative.
The script that is launched:
setMaintenanceOn.sh
#!/bin/bash
RESPONSE=`curl -i -H "application/xml" -X PUT -u user:password "http://onclickserver/spectrum/restful/model/$1?attr=0x1295d&val=false"`
To get devices out of maintenance mode a similar method can be used, just change the attribute value from false to true.
This is an easy way to get multiple devises in and out of maintenance mode.
------ end of post