- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sar: Can't open /var/adm/sa/sa22
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
03-21-2002 11:42 PM
03-21-2002 11:42 PM
sar: Can't open /var/adm/sa/sa22
1)When i do "sar" i get this error message stating "sar: Can't open /var/adm/sa/sa22".
2)Created this file manually and when i do "sar" once again it does nothing.
3)Issued the command (seen from man page)," /usr/lbin/sa/sadc /var/adm/sa/sa`date +%d` " to create sa## as described.
After this if i do sar,
It gives message stating -->
HP-UX wks1 B.11.00 A 9000/785 03/22/02
"Memory fault(Core dump)"
<---
How do i get it resolved?
Note:
->55% of /var is only used.
->It is on HPUX 11.00 B2000 Wks
-Vija
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2002 11:49 PM
03-21-2002 11:49 PM
Re: sar: Can't open /var/adm/sa/sa22
this is beacause you have not turned accounting on. you can do this from within sam
cheers
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2002 11:53 PM
03-21-2002 11:53 PM
Re: sar: Can't open /var/adm/sa/sa22
if you launch sar without timing specifications it will get its data from an history file, which is created by a cronjob.
To see current statistics use for example:
sar -d 5 5
(display disk statistics 5 times with 5 seconds interval)
good luck,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2002 11:53 PM
03-21-2002 11:53 PM
Re: sar: Can't open /var/adm/sa/sa22
to inetractively run sar try these commands
sar 1 5
sar -o temp 60 10
sar -d -f temp
sar -u -M -f temp
checkout man pages
cheers
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 12:05 AM
03-22-2002 12:05 AM
Re: sar: Can't open /var/adm/sa/sa22
Cron this to start each day, I use 05:00 Hrs
And it will create and run sar throughout the day - each and every day.
00 05 * * * /sysadmin/sardump
----------------Cut here------------------
#!/bin/sh
# 1 minute
period=${1:-"60"}
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
------------------ Cut Here-----------
Change the -A switch to suit.
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 12:33 AM
03-22-2002 12:33 AM
Re: sar: Can't open /var/adm/sa/sa22
0 * * * * /usr/lbin/sa/sa1 1200 3
This script creates an entry every 20 minutes in the output file sa
See man sa1 for more details.
And remember to create the /var/adm/sa dir if it doesn't already exist.
Ruediger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 12:37 AM
03-22-2002 12:37 AM
Re: sar: Can't open /var/adm/sa/sa22
Accounting is already turned on.
checked "/etc/rc.config.d/acct" for the entry "START_ACCT=1" and
rebooted the workstation
Still "sar , sar -d" gives memory fault(core dump message) .
rest all like,
1)
"sar 1 5 and
sar -o temp 60 10"
works fine.
2)
"sar -d -f temp" - returns to #prompt.
3)
"sar -u -M -f temp " - just returns to #prompt.
-Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 12:46 AM
03-22-2002 12:46 AM
Re: sar: Can't open /var/adm/sa/sa22
Tried as you mentioned.
But still "sar" and "sar -d " ,displays "Memory fault(Core dump)"
-Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 01:06 AM
03-22-2002 01:06 AM
Re: sar: Can't open /var/adm/sa/sa22
On my 11.0 box i have installed the patch bundle from March 2001 but no further single patches for sar.
Ruediger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 01:12 AM
03-22-2002 01:12 AM
Re: sar: Can't open /var/adm/sa/sa22
2)
"sar -d -f temp" - returns to #prompt.
3)
"sar -u -M -f temp " - just returns to #prompt.
did it create a file called temp with the output ?
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 01:24 AM
03-22-2002 01:24 AM
Re: sar: Can't open /var/adm/sa/sa22
Finally the answer may be as mentioned in this link . Let me check that too.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xaeb779bffde7d4118fef0090279cd0f9,00.html
-Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 04:00 AM
03-22-2002 04:00 AM
Re: sar: Can't open /var/adm/sa/sa22
Yes! it creates the temp file.
But the commands "sar & sar -d " alone wont work and gives "memory fault (core dumped) error."
-Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 04:46 AM
03-22-2002 04:46 AM
Re: sar: Can't open /var/adm/sa/sa22
you have had 16 responses from people donating there time and efforts to help you, assigning points is a way of showing recognition for there contributions. please give a little time back and donate some points.
John
try
sar 1 99 -d
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 06:42 AM
03-22-2002 06:42 AM
Re: sar: Can't open /var/adm/sa/sa22
Perhaps your sa## file is corrupted. I'd delete it (rm /var/adm/sa/sa##) and recreate it with:
/usr/lbin/sa/sa1
Then running sar (without specifying the interval and number of repetitions) should automatically select the sa## file for the current date.
man sa1 for more info, especially for running it via cron.
By the way, you don't have to turn on accounting for sar.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 06:55 AM
03-22-2002 06:55 AM
Re: sar: Can't open /var/adm/sa/sa22
You have to specify sar with some argument like sar 2 2 or sar -d 2 2 to make it work
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2002 06:35 AM
03-25-2002 06:35 AM
Re: sar: Can't open /var/adm/sa/sa22
can you mention the PATCH id of the sar patch you were mentioning?
-Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2002 02:18 AM
03-26-2002 02:18 AM
Re: sar: Can't open /var/adm/sa/sa22
May be there are some filesets / patches on your box not configured?
Check with:
swlist -l fileset -a state
Ruediger