[ Bottom of Page | Previous Page | Next Page | 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.

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.

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