[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 3


machstat Command

Purpose

Reports the value of the first 4 bits of the power status register.

Syntax

machstat -p

Description

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.

Flags


-p Displays the first 4 bits of the power status register.

Exit Status

The machstat command returns a value of 255 if an error occurs. Otherwise it returns the value of the register.

Security

Access Control: root only

Examples

To see the current value of the power status register, enter:

machstat -p
echo $?

Files


/etc/rc.powerfail Shuts down a system when a power failure is detected

Related Information

The rc.powerfail command.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]