Showing posts with label Logs. Show all posts
Showing posts with label Logs. Show all posts

Perfpmr for AIX Performance Issue



1. Download PERFPMR from  ibm site <Binary Format>
 
2.  Upload the perfpmr to  server in /tmp.

3.  Create Directory   in /tmp. eg : perf71. untar the perfpmr.
      # cd /tmp
   # uncompress  perf71.tar.Z
   # cd  perf71 ; tar -xvf  /tmp/perf71.tar
   # cd /tmp/perf71 ; ls -ltr
      (or)
   # mkdir /tmp/perf71
   # cd /tmp/perf71
   # zcat /tmp/perf71.tar.Z | tar -xvf -

4. Create  another directory in /tmp to collect  perfpmr logs.  Eg:   perfpmrdata
   # mkdir /tmp/perfdata
   # cd /tmp/perfdata

5.  Execute perfpmr.sh   from  perfdata directory. Default it would be running for 600 Seconds (i.e, 10 Mins)
For Completing of below command it would take  18 to 20 Mins in real world.
     
     # cd /tmp/perfdata
     # /tmp/perf71/perfpmr.sh (or) # /tmp/perf71/perfpmr.sh 600

6. Send   perfpmr  logs collected in  /tmp/perfdata to IBM for analysis.
      # cd /tmp/perfdata   
      # cd ..
      # pax -xpax -vw perfdata | gzip -c > pmr#.pax.gz

 More Details can be  found in /tmp/perf71/README  file.

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