HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sar problem?
Operating System - HP-UX
1827207
Members
2358
Online
109716
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-29-2002 12:02 AM
10-29-2002 12:02 AM
# sar
sar: Can't open /var/adm/sa/sa29
How to resolve the problem and the clue?
sar: Can't open /var/adm/sa/sa29
How to resolve the problem and the clue?
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2002 12:10 AM
10-29-2002 12:10 AM
Solution
Hi
Look at "man sar":
...
In the second form, with no sampling interval specified, sar extracts data from a previously recorded file,either the one specified by -f option or, by default, the standard system activity daily data file /var/adm/sa/sadd for the current day dd.
...
Chris
Look at "man sar":
...
In the second form, with no sampling interval specified, sar extracts data from a previously recorded file,either the one specified by -f option or, by default, the standard system activity daily data file /var/adm/sa/sadd for the current day dd.
...
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2002 12:14 AM
10-29-2002 12:14 AM
Re: sar problem?
Hi
When you use sar in this form it is trying to read data from a collection file. -Man sar.
sar can be used in two main ways one is to read from data previously collected and secondly direct collection:-
sar -b 1 10
The following started from cron each day will collect for a 24 hour period on a minute by minute basis.
It is designed to run for 24 hours and then a restart is required.
----------------------
#!/bin/sh
# 1 minute
period=${1:-"60"}
# 24 hours worth
iterations=${2:-"`expr 86400 / $period`"}
echo "sar: $iterations iterations at $period second intervals"
/usr/sbin/sar -A -o /var/adm/sa/sa`date +%d` $period $iterations > /dev/null
--------------------------
HTH
Paula
When you use sar in this form it is trying to read data from a collection file. -Man sar.
sar can be used in two main ways one is to read from data previously collected and secondly direct collection:-
sar -b 1 10
The following started from cron each day will collect for a 24 hour period on a minute by minute basis.
It is designed to run for 24 hours and then a restart is required.
----------------------
#!/bin/sh
# 1 minute
period=${1:-"60"}
# 24 hours worth
iterations=${2:-"`expr 86400 / $period`"}
echo "sar: $iterations iterations at $period second intervals"
/usr/sbin/sar -A -o /var/adm/sa/sa`date +%d` $period $iterations > /dev/null
--------------------------
HTH
Paula
If you can spell SysAdmin then you is one - anon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2002 02:26 AM
10-29-2002 02:26 AM
Re: sar problem?
it is an indication that the data collection need to be enabled for system activities.
There are two scripts /usr/lbin/sa/sa1 and /usr/lbin/sa/sa2
On Enable it through a cron at every 20 minutes ( ie., sa1 ) the data is collected at /usr/adm/sa directory as saDD where DD is the DAY of the month and reports are run in the same directory by script ( sa2) at the morning of next day. This can also be done through cron.
Hope this is useful.
A.Naga
There are two scripts /usr/lbin/sa/sa1 and /usr/lbin/sa/sa2
On Enable it through a cron at every 20 minutes ( ie., sa1 ) the data is collected at /usr/adm/sa directory as saDD where DD is the DAY of the month and reports are run in the same directory by script ( sa2) at the morning of next day. This can also be done through cron.
Hope this is useful.
A.Naga
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP