Reports the value of the first 4 bits of the power status register.
machstat -p
The machstat command returns the value of a status register. There is no standard output or error. Valid results are returned only when executed on a machine with a 750W power supply.
-p | Displays 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.
To see the current value of the power status register, enter:
machstat -p echo $?
/etc/rc.powerfail | Shuts down a system when a power failure is detected |
The rc.powerfail command.