4.18 prtpwrlog (1M)
- Name
- prtpwrlog - Power log display command
- Format
- /usr/sbin/FJSVmadm/prtpwrlog [ -f file ] [-g] [-r] [-x] [-X] [ -A yyyymmdd[HHMM]] [-B yyyymmdd[HHMM]] [ -S HHMM] [ -E HHMM]
- Function
- The prtpwrlog command displays a power log in which power-on/off times and factor information are stored.
- Option
- The options are:
- -f file
- Displays the specified file as a power log file.
- -g
- The time at which the log is stored in GMT is displayed.
- -r
- Information is displayed in reverse chronological order.
- -x
- Dump data is displayed in hexadecimal form.
- -X
- Displays the status and factor codes in hexadecimal format.
- -A yyyymmdd[HHMM]
- Records logged since the date specified in yyyymmdd are displayed.
In cases where HHMM is specified, records logged since the time specified in HHMM of the day specified in yyyymmdd are displayed.
- -B yyyymmdd[HHMM]
- Records logged prior to the date specified in yyyymmdd are displayed.
In cases where HHMM is specified, records logged prior to the time specified in HHMM of the day specified in yyyymmdd are displayed.
- -S HHMM
- Records logged from the time specified in HHMM until 23:59 are displayed.
If -E is specified, records logged from the time specified with -S until the time specified with -E are displayed.
- -E HHMM
- Records logged from 00:00 until the time specified in HHMM are displayed.
If -S is specified, records logged from the time specified with -S until the time specified with -E are displayed.
- Displayed item
- The following information is displayed:
- Status
- Status
- Factor
- Factor
- Date
- Time when the log was stored
- Display example
- - The following example shows a log displayed in reverse chronological order:
# /usr/sbin/FJSVmadm/prtpwrlog -r
No. Date Status / Factor
1. Oct 6 09:23:55 1998 System reset, from panel reset
Except power on/off
2. Oct 3 10:16:05 1998 System reset, from panel reset
Except power on/off
3. Oct 1 19:58:48 1998 System reset, from panel reset
Except power on/off
- The following example shows the display in GMT of the time when a log was stored.
# /usr/sbin/FJSVmadm/prtpwrlog -g
No. Date Status / Factor
1. Oct 1 09:51:00 1998 GMT System reset, from panel reset
Except power on/off
2. Oct 1 10:58:48 1998 GMT System reset, from panel reset
Except power on/off
3. Oct 3 01:16:05 1998 GMT System reset, from panel reset
Except power on/off
- The following example shows the unedited status and factor display in hexadecimal format.
# /usr/sbin/FJSVmadm/prtpwrlog -X
No. Date Status Factor
1. Oct 1 19:58:48 1998 0x20 0x00
2. Oct 3 10:16:05 1998 0x20 0x00
3. Oct 6 09:23:55 1998 0x20 0x00
- Example of use
- To display the power log in chronological order:
# /usr/sbin/FJSVmadm/prtpwrlog | more
To display the power log in reverse chronological order:
# /usr/sbin/FJSVmadm/prtpwrlog -r | more
To display in GMT the time when the log was stored:
# /usr/sbin/FJSVmadm/prtpwrlog -g | more
To display the statuses and factor codes in hexadecimal format:
# /usr/sbin/FJSVmadm/prtpwrlog -X | more
- End status
- The end status can be:
0: Normal end
1: Error
- File
- /var/opt/FJSVhwr/scfpwrlog (PW-T, PW-U)
/var/opt/FJSVmadm/log/PN00/pwr.log (PW-P, PW-CM)
- Related item
- scfpwrlog (1M)
All Rights Reserved, Copyright(C) FUJITSU LIMITED 2001-2005
All Rights Reserved, Copyright (C) PFU LIMITED 2001-2005