1855729 Members
7924 Online
104103 Solutions
New Discussion

Re: sar hpux 11i

 
SOLVED
Go to solution
Shivkumar
Super Advisor

sar hpux 11i

How to find out whether sar is already configured to collect the data on a server ?

Suppose i need to find out network performance for a particular day during specified time period then what are commands to find that ?

Thanks,
Shiv
8 REPLIES 8
Thayanidhi
Honored Contributor

Re: sar hpux 11i

Hi,
"sar -o" will be collecting data and writing to the specified file. "ps -ef | grep -i sar" will tell whether sar is already running or not. To analyse later "sar -f" to be used.
see man page of sar for more details.
sar could be scheduled in cron to collect specific data for the specific period.

Regds
TT
Attitude (not aptitude) determines altitude.
saju_2
Respected Contributor

Re: sar hpux 11i

Hi shiv

Try typing sar 5. This will give u cpu utilization for next 5 seconds. If u want sar to collect data and keep it in a file then follow the below procedure.

A note obtained from net..:)

First, make sure the /var/adm/sa directory exists, and make it if it doesnâ t.

Here are some recommended cron entries. These entries will capture data once an hour at non-peak times and every 20 minutes during the systemâ s busiest times. Feel free to modify these entries to best capture statistics from your systemâ s busiest times. We recommend capturing sar data every 10 to 60 minutes. Add these to your /usr/spool/cron/crontabs/root file using SAM or crontab -e, and if you're using crontab, type them exactly as seen:

#collect sar data
0 * * * * /usr/lbin/sa/sa1
20,40 8-17 * * 1-5 /usr/lbin/sa/sa1
#reduce the sar data
5 18 * * * /usr/lbin/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A

If the above crontab entries do not produce /var/adm/sa/sar* files or you get mail messgaes with the strange error message "sar: Starting time must be more than ending time", try changing crontab entry for running sa2 to the following:

#reduce the sar data
5 18 * * * /usr/lbin/sa/sa2 -A

If it's important to have starting and ending times defined in your sar reports, you'll have to adjust the crontab entries for running the /usr/lbin/sa/sa1 script.


I believe SAR can be best used for CPU, memory, disk and process monitoring rather than for network monitoring.


Regards
CS
Devender Khatana
Honored Contributor

Re: sar hpux 11i

Hi,

A particular data for a particular time can also be get through measureware if it is configured. It keeps track of all statics data and can present in some wonder graphical view. Allthough requires some tool to convert data in presentable view. This task can be done by HP respresentitive.

HTH,
Devender
Impossible itself mentions "I m possible"
Shivkumar
Super Advisor

Re: sar hpux 11i

I have admin access to some boxes and should be able to see the data collected by measureware. If someone can suggest some commands to view the past data that would be great.

Thanks,
Shiv
saju_2
Respected Contributor
Solution

Re: sar hpux 11i

Hi shiv

If u have perfview installed then the data collected by measureware can be viewed in graphical way. U have to start any x-windows software on ur windows machine (for Eg:X-Win32) . Then do export display=:0.0

Then type pf on the perview server . It will start a graphical window from where u can select the name of the server u require and then u can see network, CPU ,memory, disk etc utilisation.

Regards
CS
saju_2
Respected Contributor

Re: sar hpux 11i

Hi

I missed to give a link..

http://www.nws.noaa.gov/mdl/awips/aifmdocs/APPENDIX06.htm

Here there is a method to convert the measureware data into excel file, but seems to be difficult to configure. (section 6.0)

Regards
CS
Devender Khatana
Honored Contributor

Re: sar hpux 11i

Hi,

The document size is above the allowed limit. Here is the link to download it.See chapter 5 & 6.

http://ovweb.external.hp.com/lpe/doc_serv/?ovperf

While downloading select
1. Product - Performance Agent
2. C.03.72 ( Or Your Version)
3. OS (Will be selected by itself to HPUx)
4. Users Guide (Serial No.9)

HTH,
Devender
Impossible itself mentions "I m possible"
Devender Khatana
Honored Contributor

Re: sar hpux 11i

Shiv,

Same two chapters are attached here.

HTH,
Devender
Impossible itself mentions "I m possible"