Reports the value of the first 4 bits of the power status register.
The machstat command returns the value of a status register. There is no standard output or error except when using the -f flag on CHRP hardware.
| Item | Description |
|---|---|
| -f | On non-CHRP machines, returns Power Status Register bits 10–13. On CHRP machines, displays the EPOW status, EPOW modifier, and, if present, EPOW version. |
| -p | Returns the first 4 bits of the power status register. |
The machstat command returns a value of 255 if an error occurs. Otherwise it returns the value of the register.
Access Control: root only
To see the current value of the power status register, enter:
machstat -p
echo $?
| Item | Description |
|---|---|
| /etc/rc.powerfail | Shuts down a system when a power failure is detected |