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.
| -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.
Access Control: root only
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.