Friday, 19 May 2017

How to Set Up sar AIX

How to Set Up sar

Error messages

Error messages regarding the sar command and data files include the following:
  • The following errors indicate that the data collection programs have not been set up to collect the data that sar reports. If you see either of the following errors, follow the procedure in the "How to set up sar data files" section in this document.
  sar:0551-201 cannot open /usr/adm/sa/sa12 
  or
  sar:0551-213 try running /usr/lib/sa/sa1  
  • If on bootup (or when running the sar command) you see the following error, go to Step 4 of the "How to set up sar data files" procedure and follow Steps 4 and 5.
  sar: 0511-211 specify a positive integer for the time change 

How to set up sar data files

1) Log in as root and enter su - adm.
2) Enter crontab -e.
3) Uncomment the following lines by removing the # sign from the front of each line:
 # 0 8-17 * * 1-5 /usr/lib/sa/sa1 1200 3 & 
 # 0 * * * 0,6 /usr/lib/sa/sa1 & 
 # 0 18-7 * * 1-5 /usr/lib/sa/sa1 & 
 # 5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 3600 -ubcwyaqvm & 
4) Uncomment the following line in the /etc/rc file:
# /bin/su - adm -c /usr/lib/sa/sadc /usr/adm/sa/sa`date  +%id`
Reboot the system. This will turn on the data collection programs the sar command uses for displaying data.

No comments:

Post a Comment