unfortunately not sufficient:
fury-root% /etc/scripts/zonestat_1.4.pl -lN
fury-root% /etc/scripts/zonestat_1.4.pl -lN
/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
/usr/bin/svcs -H rcap
/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 582, <D>
line 1.
Broken Pipe
but installing the latest release, i.e. 1.4.1 does the job.
fury-root% /etc/scripts/zonestat_1.4.1.pl
|--Pool--|Pset|-------Memory-----|
Zonename| IT|Size|Used| RAM| Shm| Lkd| VM|
------------------------------------------
global 0D 32 2.6 802M 0.0 3.6M 1.2G
serveurb 0D 32 0.0 269M 0.0 0.0 241M
nisserv2 0D 32 0.0 251M 0.0 0.0 197M
annu2 0D 32 0.0 63M 0.0 0.0 60M
ldap1 0D 32 0.0 546M 0.0 0.0 453M
cedre 0D 32 0.0 0.0 0.0 0.0 64M
sipservi 0D 32 0.0 0.0 0.0 0.0 125M
sipserv 0D 32 0.0 0.0 0.0 0.0 126M
==TOTAL= --- 32 2.6 2.0G 0.0 3.6M 2.5G
Thanks for your reply,
gerard
On 09/ 3/10 07:13 PM, Maidak Alexander J wrote:
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