SAP sets or revokes the maintenance mode either within the upgrade tool, or manually.
$ sapcontrol -nr <instance number> -function HASetMaintenanceMode 1
$ sapcontrol -nr <instance number> -function HASetMaintenanceMode 0
This traverses all SAP instances which have an HA integration configured in their instance profile, and sets or revokes the SAP HA Maintenance Mode for these instances. Instances which have no HA integration configured, are not set into maintenance.
$ $ /usr/cluster/bin/clresource unmonitor -g <resourcegroup-containing-the-instance-resource> + $ /usr/cluster/bin/clresourcegroup suspend <resourcegroup-containing-the-instance-resource>
$ $ /usr/cluster/bin/clresource monitor -g <resourcegroup-containing-the-instance-resource> + $ /usr/cluster/bin/clresourcegroup resume <resourcegroup-containing-the-instance-resource>