sar not working in Solaris 9 on V880 or V240

From: Eric Paul (epaul@profitlogic.com)
Date: Tue Apr 13 2004 - 16:56:12 EDT


Ok, I have a problem that is stumping myself and the other admin here. We
just got some new servers in, a couple of V880s and some V240s. We installed
Solaris 9 on them (12/03 on the V240, 06/03 on the V880 when we saw problems
on the 240) For some reason, sar is not working as it does everywhere else.
I am using the same crontab entries that I have working on a V120 running Sol
9, and still no dice. It starts up fine, but the incremental updates don't
seem to be happening.

Here are the relevant files and info:

# cat /var/spool/cron/crontabs/sys
#ident "@(#)sys 1.5 92/07/14 SMI" /* SVr4.0 1.2 */
#
# The sys crontab should be used to do performance collection. See cron
# and performance manual pages for details on startup.
#
# 0 * * * 0-6 /usr/lib/sa/sa1
# 20,40 8-17 * * 1-5 /usr/lib/sa/sa1
# 5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A
00,05,10,15,20,25,30,35,40,45,50,55 * * * * /usr/lib/sa/sa1
01 00 * * * /usr/lib/sa/sa1
59 23 * * * /usr/lib/sa/sa1
01 00 * * * find /var/adm/sa -name "sa*" -type f -ctime +15 -exec rm -f {} \;

# cat /etc/rc2.d/S21perf
#!/sbin/sh
#
# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T.
# All rights reserved.
#
# THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
# The copyright notice above does not evidence any
# actual or intended publication of such source code.
#
# Copyright (c) 1997 by Sun Microsystems, Inc.
# All rights reserved.
#
#ident "@(#)perf.sh 1.7 97/12/08 SMI"

# Uncomment the following lines to enable system activity data gathering.
# You will also need to uncomment the sa entries in the system crontab
# /var/spool/cron/crontabs/sys. Refer to the sar(1) and sadc(1m) man pages
# for more information.

if [ -z "$_INIT_RUN_LEVEL" ]; then
        set -- `/usr/bin/who -r`
        _INIT_RUN_LEVEL="$7"
        _INIT_RUN_NPREV="$8"
        _INIT_PREV_LEVEL="$9"
fi

if [ $_INIT_RUN_LEVEL -ge 2 -a $_INIT_RUN_LEVEL -le 4 -a \
    $_INIT_RUN_NPREV -eq 0 -a \( $_INIT_PREV_LEVEL = 1 -o \
    $_INIT_PREV_LEVEL = S \) ]; then

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

# sar

SunOS dev-app-s00 5.9 Generic_112233-11 sun4u 04/13/2004

16:04:55 %usr %sys %wio %idle
16:04:55 unix restarts
16:14:00 unix restarts
16:15:00 1 2 7 91

# date
Tue Apr 13 16:50:19 EDT 2004

# cat /var/cron/log
! *** cron started *** pid = 164 Tue Apr 13 16:14:01 2004
! unexpected pid returned 174 (ignored) Tue Apr 13 16:14:02 2004
> CMD: /usr/lib/sa/sa1
> sys 295 c Tue Apr 13 16:15:00 2004
< sys 295 c Tue Apr 13 16:15:00 2004
> CMD: /usr/lib/sa/sa1
> sys 328 c Tue Apr 13 16:20:00 2004
< sys 328 c Tue Apr 13 16:20:00 2004 ts=13
> CMD: /usr/lib/sa/sa1
> sys 333 c Tue Apr 13 16:25:00 2004
< sys 333 c Tue Apr 13 16:25:00 2004 ts=13
> CMD: /usr/lib/sa/sa1
> sys 335 c Tue Apr 13 16:30:00 2004
< sys 335 c Tue Apr 13 16:30:00 2004 ts=13
> CMD: /usr/lib/sa/sa1
> sys 340 c Tue Apr 13 16:35:00 2004
< sys 340 c Tue Apr 13 16:35:01 2004 ts=13
> CMD: /usr/lib/sa/sa1
> sys 346 c Tue Apr 13 16:40:00 2004
< sys 346 c Tue Apr 13 16:40:00 2004 ts=13
> CMD: /usr/lib/sa/sa1
> sys 355 c Tue Apr 13 16:45:00 2004
< sys 355 c Tue Apr 13 16:45:00 2004 ts=13
> CMD: /usr/lib/sa/sa1
> sys 363 c Tue Apr 13 16:50:00 2004
< sys 363 c Tue Apr 13 16:50:00 2004 ts=13

There are no error messages in syslog or in my mail.

Any ideas?

TIA! I will summarize.

Eric
_______________________________________________
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:28:27 EDT