NetXMS Support Forum

English Support => General Support => Topic started by: Goriem on February 13, 2016, 06:34:54 PM

Title: trigger maintenance mode on node with remote action / script
Post by: Goriem on February 13, 2016, 06:34:54 PM
Hi thanks for a great product, and Thank you for the new maintenance mode! its great!
one question, is there anyway to trigger maintenance mode for a node remotely with script, i was thinking along the lines of monitor event log on node and on server reboot (if its related to server patch) then i would trigger a 15 minute maintenance window. is this do able?

regards!
Title: Re: trigger maintenance mode on node with remote action / script
Post by: Tatjana Dubrovica on February 16, 2016, 01:38:24 PM
For now it is possible only using nxshell.
Something like:
session.setObjectMaintenance(1714, True); //setObjectMaintenance(long objectId, boolean maintenance)

But it is still not possible to do it from nxsl scripts. Created change request:
https://dev.raden.solutions/issues/1166
Title: Re: trigger maintenance mode on node with remote action / script
Post by: IgorE on February 26, 2016, 09:51:56 AM
Hello, is it possible to update javadoc?
Currently there is no information about maintenance and possible nsxshell commands