Machine Administration Guide 2.6
Contents Index PreviousNext

Chapter 4 Command Reference

4.16 prtmadmlog (1M)

Name
prtmadmlog - Machine administration monitoring log display command
Format
/usr/sbin/FJSVmadm/prtmadmlog [-f file] [-r] [-s string [-s string [-a]]] [ -A yyyymmdd[HHMMSS]] [-B yyyymmdd[HHMMSS]] [ -S HHMMSS] [ -E HHMMSS]
Function
The prtmadmlog command displays the hardware monitoring log collected by machine administration.
Option
The options are:
-f file
The specified file is displayed as a machine administration monitoring log file.
-r
Information is displayed in reverse chronological order.
-s string
The line that has the specified string is displayed.
To specify multiple strings, write as -s string -s string.
To display multiple strings in an AND operation, write as -s string -s string -a.
If you do not specify -a, the system displays multiple strings in an OR operation.
-A yyyymmdd[HHMM]
The information logged since the date specified in yyyymmdd is displayed.
In cases where HHMMSS is specified, records logged since the time specified in HHMMSS of the day specified in yyyymmdd are displayed.
-B yyyymmdd[HHMMSS]
The information logged prior to the date specified in yyyymmdd are displayed.
In cases where HHMMSS is specified, records logged prior to the time specified in HHMMSS of the day specified in yyyymmdd are displayed.
-S HHMMSS
Records logged from the time specified in HHMMSS until 23:59:59 are displayed.
If -E is specified, records logged from the time specified with -S until the time specified with -E are displayed.
-E HHMMSS
Records logged from 00:00:00 until the time specified in HHMMSS are displayed.
If -S is specified, records logged from the time specified with -S until the time specified with -E are displayed.
Display example
The following example shows a log displayed in reverse chronological order:
# /usr/sbin/FJSVmadm/prtmadmlog -r
Oct  6 13:41:11 1998 FJSVmadm INFO: set root's 1(1) root
Oct  6 13:35:35 1998 FJSVmadm INFO: set root's 2(2) 
Oct  3 14:08:35 1998 last message repeated 1 time 
Example of use
The message log is displayed in chronological order.
# /usr/sbin/FJSVmadm/prtmadmlog | more

The message log is displayed in reverse chronological order.

# /usr/sbin/FJSVmadm/prtmadmlog -r | more

Information including the string "WARNING" is displayed.

# /usr/sbin/FJSVmadm/prtmadmlog -s "WARNING"  | more
End status
The end status can be:
0: Normal end
1: Error
File
/var/opt/FJSVmadm/log/madmlog

Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2001-2005
All Rights Reserved, Copyright (C) PFU LIMITED 2001-2005