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
07-01-2004 09:06 AM
07-01-2004 09:06 AM
SAR
0 * * * 0,6 /usr/lbin/sa/sa1
0 8-17 * * 1-5 /usr/lbin/sa/sa1 1200 3
0 18-7 * * 1-5 /usr/lbin/sa/sa1
5 18 * * 1-5 /usr/lbin/sa/sa2 -s 8:00 -e 18:01 -i 3600 -u
5 18 * * 1-5 /usr/lbin/sa/sa2 -s 8:00 -e 18:01 -i 3600 -b
5 18 * * 1-5 /usr/lbin/sa/sa2 -s 8:00 -e 18:01 -i 3600 -q
but the system only keep the information for ten days, but we need more days, somebody help me, please, thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 09:21 AM
07-01-2004 09:21 AM
Re: SAR
Try editing the /usr/lbin/sa/sa2 script and change the +7 in the find command at the end, to the number of day's worth of data you want to keep. eg(+14 for two weeks).
regds,
Abdul.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 09:22 AM
07-01-2004 09:22 AM
Re: SAR
It could be because lack of space in /var/adm/sa file system.
I believe the first 3 entries will suffice to record all the activities.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 09:23 AM
07-01-2004 09:23 AM
Re: SAR
sa2 script has the following entry
find /var/adm/sa \( -name 'sar*' -o -name 'sa*' \) -mtime +7 -exec rm {} \;
that deletes files older than 7 days.
Just schedule only the first 3 jobs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 09:25 AM
07-01-2004 09:25 AM
Re: SAR
Check cron for any file trimming jobs.
sa1, sa2 & sadc should keep files in /var/adm/sa/saDD where DD is day of the month & will be held until it's overwritten by the next month's entry.
I'd also check the cron log to see if the job(s) are possibly failing.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 09:58 AM
07-01-2004 09:58 AM
Re: SAR
Actually you don't need to run sa2 command unless you want the reports to be generated automatically in which case you can follow the above suggestions. It does nothing but to run sar command with -f option. So anytime you want a report, you can get it using the command
sar -f /var/adm/sa/sa
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 03:09 PM
07-01-2004 03:09 PM
Re: SAR
You can put in info that tells sa2 to only keep a certain number of days. It can also be somewhere else that says only keep so many days of these files.
Here is a script I have used that will keep these ascii outputs by months indefinitely (unless there is a specific job to do the cleaning).
Put this in cron and run at 2357 hrs nightly.
#!/bin/ksh
set `date +'%d %b %Y'`
DAY=$1
MONTH=$2
YEAR=$3
DATE=$DAY$MONTH$YEAR
PERF_HOME=/var/adm/sa/perf
if [ -d $PERF_HOME/$YEAR ]
then
echo "directory exists" > /dev/null
else
mkdir $PERF_HOME/$YEAR
fi
if [ -d $PERF_HOME/$YEAR/$MONTH ]
then
echo "directory exists" > /dev/null
else
mkdir $PERF_HOME/$YEAR/$MONTH
fi
# cpu report
/usr/lbin/sa/sa2 -i 300
mv /var/adm/sa/sar`date +\%d` $PERF_HOME/$YEAR/$MONTH/cpu.$DATE
# buffer cache report
/usr/lbin/sa/sa2 -b -i 300
mv /var/adm/sa/sar`date +\%d` $PERF_HOME/$YEAR/$MONTH/bufcache.$DATE
# disk activity report
/usr/lbin/sa/sa2 -d -i 300
mv /var/adm/sa/sar`date +\%d` $PERF_HOME/$YEAR/$MONTH/diskio.$DATE
# inode, test, and process report
/usr/lbin/sa/sa2 -v -i 300
mv /var/adm/sa/sar`date +\%d` $PERF_HOME/$YEAR/$MONTH/inode.$DATE
# semaphore report
/usr/lbin/sa/sa2 -m -i 300
mv /var/adm/sa/sar`date +\%d` $PERF_HOME/$YEAR/$MONTH/semaphore.$DATE
# swap report
/usr/lbin/sa/sa2 -w -i 300
mv /var/adm/sa/sar`date +\%d` $PERF_HOME/$YEAR/$MONTH/swap.$DATE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2004 03:14 AM
07-05-2004 03:14 AM