SAR help

From: Annie Xie (axie@brass.com)
Date: Fri Dec 06 2002 - 13:55:23 EST


I'm trying to run sar on my 2.6 machine. The pkg is installed and perf,
sys cron are enabled. I was trying to manually start perf as following:

/usr/bin/su sys -c "/usr/lib/sa/sadc /var/adm/sa/sa`date +%d`"

It got error "sadc: creat failed: Permission denied", but didn't give me
where. I run truss:

.......

sigaction(SIGRTMIN, 0xEFFFFAD0, 0xEFFFFB50) = 0
sigaction(SIGRTMIN+1, 0xEFFFFAD0, 0xEFFFFB50) = 0
sigaction(SIGRTMIN+2, 0xEFFFFAD0, 0xEFFFFB50) = 0
sigaction(SIGRTMIN+3, 0xEFFFFAD0, 0xEFFFFB50) = 0
sigaction(SIGRTMAX-3, 0xEFFFFAD0, 0xEFFFFB50) = 0
sigaction(SIGRTMAX-2, 0xEFFFFAD0, 0xEFFFFB50) = 0
sigaction(SIGRTMAX-1, 0xEFFFFAD0, 0xEFFFFB50) = 0
sigaction(SIGRTMAX, 0xEFFFFAD0, 0xEFFFFB50) = 0
brk(0x00038A20) = 0
getuid() = 3 [3]
getuid() = 3 [3]
getgid() = 3 [3]
getgid() = 3 [3]
ioctl(2, TCGETA, 0xEFFFFB1C) = 0
ioctl(-1, TCGETA, 0xEFFFFB1C) Err#9 EBADF
brk(0x00038D20) = 0
sadc: creat failed: Permission denied
fork() = 17558
waitid(P_PID, 17558, 0xEFFFFA18, WEXITED|WTRAPPED|WNOWAIT) = 0
ioctl(0, TIOCGPGRP, 0xEFFFF9D4) = 0
ioctl(0, TCGETS, 0x000378F4) = 0
waitid(P_PID, 17558, 0xEFFFFA18, WEXITED|WTRAPPED) = 0
brk(0x00038B20) = 0
llseek(0, 0, SEEK_CUR) = 14691
_exit(2)

Anyone knows where I don't have this permission?

Thanks!
Annie

STATEMENT OF CONFIDENTIALITY

The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain confidential or privileged information. If you are not
the intended recipient, please notify SunGard Trading Systems immediately
at (201) 499-5900 and destroy all copies of this message and any
attachments.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:26 EDT