Tool to collect performance stat, very similar in HP-UX, Sun, AIX…
Also check out kSar ( http://ksar.atomique.net/) and sar2rrd ( http://www.trickytools.com/php/sar2rrd.php )
Basic SAR Setup (from HP-UX sys admin handbook and tooltips, p503):
sar -o /tmp/sar.data 60 300 # run sar every 60 sec for 300 count,
-o store info in file (bin)
sar -u -f /var/adm/sa/saXX # read data from file (Solaris, XX = date number)
sar -u -f /tmp/sar.data # read data from file (HP-UX)
-u display cpu info (similar to iostat and vmstat)
-b buffer cache activity, imp for oracle
-d disk activity
-q avg queue length (if run queue > num of cpu, will have to wait).
-w swap info
Solaris starts sadc in /etc/rc2.d/S21perf , a deamon to collect sar info.
————
Setup SAR data collection for HP-UX (should also work for other platform):
http://www.sarcheck.com/sarhowto.htm (Actually SarCheck.com, but cost money!)
mkdir /var/adm/sa,
then setup root crontab:
#collect sar data # every 20 min 8-5, hourly outside normal work
0 * * * * /usr/lbin/sa/sa1
20,40 8-17 * * 1-5 /usr/lbin/sa/sa1
#reduce the sar data # generate pre-formated report focus for business hrs
5 18 * * * /usr/lbin/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A
# sample for SF + Minsk work hours
0 * * * * /usr/lbin/sa/sa1
15,30,45 0-8,10-19,23 * * 1-5 /usr/lbin/sa/sa1
05 21 * * * /usr/lbin/sa/sa2 -i 3600 -A
# sa1 is data collection to /var/adm/sa/saXX
# sa2 really produce condense version of report to /var/adm/sa/sarXX (sar vs sa)
# filenames are reused every month.
# use sar -A -f /var/adm/sa/saXX to get more detail report than std summary.
————-
AIX has preset entries in crontab for ‘adm’. Check to ensure script exsit.
sar logs are stored in /var/adm/sa
————-
Minsk is PT + 10 hours (ahead).
SF vs Minsk work hours
—- ——
8am 6pm
10am 8pm
6pm 4am
10pm 8am
midnite 10am
8am 6pm


