- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sar command doesn't run correctly
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
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
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
тАО05-18-2005 11:57 PM
тАО05-18-2005 11:57 PM
I'm getting the following error when running sar command.
sar: Can't open /var/adm/sa/sa19
That sa directory structure is missing on my system (11.11), what's wrong ?
Should I configure sar in advance ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2005 12:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2005 12:08 AM
тАО05-19-2005 12:08 AM
Re: sar command doesn't run correctly
that line is missing on my crontab...
Should I add it ?
What does it do ?
Thanks for the moment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2005 12:16 AM
тАО05-19-2005 12:16 AM
Re: sar command doesn't run correctly
Otherwise if you are just trying to see current system stats. You need flags on it for example:
# sar -v 5 100
(Theres quite a few so you'll want to check ou the man page.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2005 12:21 AM
тАО05-19-2005 12:21 AM
Re: sar command doesn't run correctly
are you trying to run sar manually from command prompt?
you system does not have /var/adm/sa directory, create it and see whether sar runs properly
also, looks like your crontab is not configured with sar to run automatically, you can add the crontab line mentioned so that it can run automatically to collect system statistics periodically
Regards,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2005 05:16 AM
тАО05-19-2005 05:16 AM
Re: sar command doesn't run correctly
If you have not configured it is crontab and give sar at command prompt and get this error, this is perhaps because you are not providing any arguments to it.
On my system :-
iocbk101:/tmp/som>>sar
sar: Can't open /var/adm/sa/sa19
iocbk101:/tmp/som>>sar 1 11111
HP-UX iocbk101 B.11.11 U 9000/800 05/19/05
22:46:05 %usr %sys %wio %idle
22:46:06 9 56 35 0
22:46:07 8 61 31 0
22:46:08 8 72 20 0
22:46:09 10 65 25 0
22:46:10 10 69 21 0
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2006 04:24 AM
тАО02-24-2006 04:24 AM
Re: sar command doesn't run correctly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2006 04:27 AM
тАО02-24-2006 04:27 AM
Re: sar command doesn't run correctly
mkdir /var/adm/sa/
The in root's cron, something like:
#
# SAR - for sarcheck
0 * * * * /usr/lib/sa/sa1
10,20,30,40,50 * * * * /usr/lib/sa/sa1
# reduce the sar data
5 19 * * * /usr/lib/sa/sa2 -s 5:00 -e 19:01 -i 600 -A
Rgds...Geoff