DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

pwrdump(ADM)


pwrdump -- display a Power Management event message

Syntax

/etc/pwr/bin/pwrdump [ -v ] [ -f pmspecial ] [ -e eventsfile ] ...

Description

Power Management (PM) messages are printed to the standard output using pwrdump. The options include:

-e eventsfile
A file defining some PM events. As many -e options as necessary can be specified to define all relevant PM events. If no -e options are specified, then the default eventsfile(s) are those in the comma (,) separated list defined by EVENTS in /etc/default/pwr, or /etc/pwr/sys/events when no list is defined. The eventsfile format is described in pwrevents(F).

-f pmspecial
The pwr(HW) special file from which pwrdump receives PM events. The default is /dev/pwr/pm. Only one -f option can be specified.

-v
Verbose: everything is printed. Normally meta-data (that is, information not contained in the message itself) is not printed unless it is unusual or potentially incorrect. The -v option forces the meta-data always to be printed.
The printed PM message should be self-explanatory.

Examples

Running pwrdump as a pwrd(ADM) action:
   /etc/pwr/bin/pwrdump -v -f "$3" >>LOGFILE 2>&1
appends to LOGFILE output such as:
   CONTROL
           len    = 40
           flags  = normal
           mclen  = 20
           mtlen  = 40
           mflags = allserve
   FROM
           atype  = stream module: 20557
   DESTINATIONS
           atype  = list of 2 addrs (from 24 to 40)
           atype  = stream module: any
           atype  = process: any
   EVENT
           len   = 16
           class = 1, apm
           event = 4, critical-resume
           time  = 757485996s (Sun Jan  2 04:46:36 1994) + 960000us
The BIOS-APM firmware reported that the system resumed after having been involuntarily Frozen. The event's time has not been adjusted to compensate for the period during which the system was Frozen.

Limitations

BIOS-APM firmware from different manufacturers varies considerably in both operation and efficacy. What may be a safe or useful sequence of commands on one machine may be ineffectual or worse on another.

See also

pwr(HW), pwrd(ADM), pwrevents(F), pwrsend(ADM)
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003