we have a requirement to automatically add and remove servers from a maintenance schedule while releases are being performed on the servers.
we know we can use the rest API but as the hub name changes between robots this is a bit awkward for the release system to handle. has anyone come up with a method of being able to add servers to maintenance schedules using only the hostname of the device?
we would create a schedule just for the releases to use so they wouldnt have to create the schedule just add and remove the devices from it.
Does not look like this is possible with the current REST API.
This would be difficult as well as many clients have robots with the same hostname / robot name that are under different hubs.
By just using the hostname or IP this would not be enough to ensure that the correct unique system was added.
I would suggest opening an ER on the idea wall so product management can consider adding something along these lines for you in a future release.
Just added a Perl tool that can add servers via name into maintenance. Comments are new ideas are welcome.
Could you please provide some more details on this Perl tool and where we can get it, is this added in new version i.e 8.5 or we can have it with older versions of UIM. Thanks in advance.
See: Maintenance Mode via command line 2.6 (rest api)
As log as the rest probe is installed this should work.