Check out this code in zonestat.pl... I suspect its you're issue, 

Line 292:
# U4 added several RM features
# U5 added CPU Caps
# For U0-U3, we show what you could be doing if you upgrade... ;-)

open (RELEASE, "/etc/release");
$rel=<RELEASE>;
close RELEASE;
if ($rel =~ /3\/05/)  { $update=1; }
if ($rel =~ /6\/06/)  { $update=2; }
if ($rel =~ /11\/06/) { $update=3; }
if ($rel =~ /8\/07/)  { $update=4; }
if ($rel =~ /5\/08/)  { $update=5; }
if ($rel =~ /10\/08/) { $update=6; }
if ($rel =~ /5\/09/)  { $update=7; }
if ($rel =~ /10\/09/) { $update=8; }   #<<< Add this
if ($rel =~ /9\/10/)  { $update=9; }
if ($rel =~ /snv/)    { $update=20; }

The script wasn't coded for greater than update 7, so has a bug on update 8 and 
newer.

Expect zonestat.pl to be replaced by this superior utility at some point:

http://arc.opensolaris.org/caselog/PSARC/2010/291/

I doubt it will make update 9 coming out here (shortly hopefully), but anything 
is possible with the new Oracle overlords.

-Alex


-----Original Message-----
From: zones-discuss-boun...@opensolaris.org 
[mailto:zones-discuss-boun...@opensolaris.org] On Behalf Of solarg
Sent: Thursday, September 02, 2010 5:28 AM
To: zones-discuss@opensolaris.org
Subject: [zones-discuss] zonestat 1.4: Illegal division by zero

  helllo all,
i'm using zonestat 1.4 on a Sun T2000, Solaris 10 u8.
I got this error:
fury-root% /etc/scripts/zonestat_1.4.pl
/usr/sbin/prtconf
/bin/pagesize
/bin/echo 'pages_pp_maximum/D;segspt_minfree/D' | mdb -k
/usr/sbin/zoneadm list -v
/usr/sbin/psrinfo
/usr/bin/svcs -H pools
/bin/ps -eo zone,pset,pid,comm | grep ' [z]*sched'
/usr/bin/ipcs -mbZ
/bin/prstat -cZn 1 0 1
Illegal division by zero at /etc/scripts/zonestat_1.4.pl line 580, <D> 
line 1.
Broken Pipe

I've antoher Sun T2000, but with Solaris 10 u4, and the same program 
works well.

Anybody has ever seen this error?

thanks in advaznce for help,

gerard


PS: what's happening with zonestat on opensolaris.org? the web pages 
doesn't show the files to download, even after i logged in
http://hub.opensolaris.org/bin/view/Project+zonestat/files
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to