This article explains how to connect a UPS (uninterruptible power supply) to a GAS host with gasups, and how to update Rocky Linux on the host with gas-rocky-update.sh.
Note: This article describes OXE Software Server (GAS) 14.11. This package installs OmniPCX Enterprise R101.2 MD3 (n5.508.1), OMS 17.03, OST 12.05, the WebRTC gateway v3.2.6 and FlexLM 11.19.8.0-8, on a host installed with BootDVD 9.8.2. It is written from the source code of the package (tag OXE_SWS_14.11). Other GAS versions install other OmniPCX Enterprise releases: check the GAS version that matches your release.
Manage a UPS: gasups
gasups configures the NUT service of the host. When the UPS reaches the low battery level, the tool stops the virtual machines (OmniPCX Enterprise, OMS, WebRTC gateway) and the host. When the power comes back, the virtual machines start again.
| Command | Use |
|---|---|
gasups driver <driver name> | Configures the UPS service with the driver of your UPS, for example gasups driver blaze_usb. The list of models and drivers is in /usr/share/nut/driver.list. |
gasups start, stop, restart | Starts, stops or restarts the UPS service. |
gasups status | Shows the state of the UPS: ONLINE (on mains), ONBATT (on battery) or LOWBATT, the battery charge and the low battery value. |
gasups lowbatt <value> | Sets the battery charge (10 to 90 %) at which the automatic shutdown starts, for example gasups lowbatt 20. The default value is 30. |
Logs: /var/logs/gasups.log.
Update Rocky Linux: gas-rocky-update.sh
gas-rocky-update.sh [local|<installation-url>] [reboot|noreboot] updates Rocky Linux on the host from the repositories of a BootDVD.
local: uses a BootDVD available on the host. Example:gas-rocky-update.sh local.- An URL: uses a BootDVD shared on the network. Example:
gas-rocky-update.sh nfs://192.0.2.1/nfssharing/bootdvd/. rebootornoreboot: restarts the host at the end, or not.
The tool shuts down the virtual machines (OmniPCX Enterprise, OMS, WebRTC gateway) before the update. Logs: /var/logs/gas-rocky-update.log and /var/logs/bootdvd-update.log. gasversion then shows the new BootDVD version.
Limits
Important: To be confirmed by R&D. The UPS models tested with GAS; the BootDVD versions allowed with GAS 14.11 (the package is built for BootDVD 9.8.2); whether the update also needs a new GAS package.