Maintenance Mode via command line 2.4 (rest api)

Document created by chrlu01 Employee on Jan 7, 2016Last modified by chrlu01 Employee on Jul 10, 2017
Version 9Show Document
  • View in full screen mode

The attached tool makes it possible to put servers in maintenance mode via a command line tool (via REST API calls)

- list defined calendars

- list servers/devices in maintenance

- add server(s) in existing calendar (with server name)

- define calendar and add servers, with the server name, directly in this new calendar

- put an USM group into maintenance

- list empty calendars

- delete empty calendars

- list expired calendars

- delete expired calendars

 

Doc file is included.

Prereq: this tool uses the webservices_rest probe that must be deployed to your UMP server.

 

All remarks or ideas are very  welcome

 

note: Perl source and compiled version are included

 

Version 2.2:

- add USM group in maintenance

-  add regex selection of robots in maintenance

- delete empty and/or expired calendars (only for MSSQL, if anybody with MySQL skills could translate them?)

- tested and compiled on Centos7 & Windows 2012

Version 2.4:

- UMP/Rest http or https

- add with(nolock) in sql queries

- correct sql query to select USM groups

7 people found this helpful

Outcomes