Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 05:59 AM
10-13-2004 05:59 AM
sar
I'd like to use sar to generate a monthly report on CPU and memory utilization (and maybe smome other metrics).Does anyone have a cheat sheet on how to do this?
Thanks in advance for your reply.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 06:03 AM
10-13-2004 06:03 AM
Re: sar
You could start with the man page for sa1. Things are pretty well explained there.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 06:04 AM
10-13-2004 06:04 AM
Re: sar
Try the below script.
#!/bin/ksh
#
#
LOGDIR="/tmp/stats"
LOGFILE="${LOGDIR}/sar_`hostname`.`date +'%d%m%y'`"
SARCMD=/usr/sbin/sar
SAROPTS="-udgpqr"
# Interval in seconds (5 minutes below)
INTERVAL=300
TOTALSECSINDAY=86400
NTIMES=`expr ${TOTALSECSINDAY} / ${INTERVAL}`
$SARCMD $SAROPTS -o $LOGFILE $INTERVAL $NTIMES >/dev/null 2>&1
With Regards
Harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 06:06 AM
10-13-2004 06:06 AM
Re: sar
Or, install mrtg
http://people.ee.ethz.ch/~oetiker/webtools/mrtg/
Or - if you have perfview/glance installed:
From cron:
# performance
55 23 * * 1-5 /opt/perf/bin/extract -xp -r /home/gwild/zgbltemplate -g -b today 7:00 -e today 18:00 -f stdout | /bin/mailx -s 'svr100 performance report' gwild@mydomain.com >/dev/null 2>&1
# cat /home/gwild/zgbltemplate
REPORT "MWA Export on !SYSTEM_ID"
FORMAT ASCII
HEADINGS ON
SEPARATOR="|"
SUMMARY=60
MISSING=0
DATA TYPE GLOBAL
YEAR
DATE
TIME
GBL_CPU_TOTAL_UTIL
GBL_MEM_UTIL
GBL_SWAP_SPACE_UTIL
GBL_MEM_CACHE_HIT_PCT
GBL_DISK_UTIL_PEAK
GBL_FS_SPACE_UTIL_PEAK
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 06:06 AM
10-13-2004 06:06 AM
Re: sar
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 08:35 AM
10-13-2004 08:35 AM
Re: sar
0,15,30,45 * * * * /usr/lib/sa/sa1
In the root's crontab I am parsing and converting the sa1 binary output to ASCII output to read the values.
56 23 * * * /var/adm/sa/get_sars 2>&1 > /dev/null
I am attaching the get_sars script. It will provide ASCII data q15min and put it into the directory structure listed in the script. Modify for your uses.
I have this generating daily but you can change to be monthly as your needs dictate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 09:17 AM
10-13-2004 09:17 AM
Re: sar
If you spend some money, Glance+ pak (available as trial pack in Application CDs) can help you in quite a few ways. It can gather the data, report it (measureware) and you can view runtime performance (glance). If you go bit further, you can add Perfview to it that can be used to view data graphically both current and historical on multiple servers.
Also check 'sarcheck.com' for the tool sarcheck. It's available for a low price.
-Sri