AIX Boot and Console Logs

Boot Logs:  

Boot and Console messages can be used to identify and fix problems.
To view stored messages  use alog command.

 # alog -L                                         < Lists  the defined  log types >

Eg:
# alog -L
boot
bosinst
nim
console
cfg
mdmplog
dumpsymp
lvmt
lvmcfg



-o                
      Lists the contents of the log file. Writes the contents of the  log file to standard output in sequential order.

 -t LogType
    Identifies a log defined in the alog configuration database. The alog command gets the log's file name and size from the alog configuration database. If LogFile does not exist, one is created.

          
# alog -L -t boot
    #file:size:verbosity
    /var/adm/ras/bootlog:131072:1


-L
    Lists the log types currently defined in the alog configuration database. If you use the -L flag with the -t LogType flag, the attributes for a specified LogType are listed. The current values of the File, Size, and Verbosity attributes are listed as colon separated values:

            <File>:<Size>:<Verbosity>


========================================================================
To display all previous logins and logoffs

last  ---->   /var/adm/wtmp

Usage:
# last
# last root console
# last shutdown


No comments:

Post a Comment