On Wed, Jun 10, 2009 at 4:03 PM, Phil Freund<no-re...@opensolaris.org> wrote:
> I have a couple of servers that are still running U1 but I'd still like to 
> use zonestat to get as much info as I can.
>
> I get the following output when I run zonestat 1.4.1 with debug turned on:
>
> root> zonestat -l -N
> /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
> svcs: Pattern 'pools' doesn't match any instances
> /bin/ps -eo zone,pset,pid,comm | grep ' [z]*sched'
> /usr/bin/ipcs -mbZ
> Attempt to access disallowed key 'caps' in a restricted hash at zonestat line 
> 502.
> root>
>
> Any ideas on how to fix this?

Temporarily, you can fix this by commenting out these lines in the
zonestat script:

  $statname = sprintf "swapresv_zone_%d", $zoneid{$z};
  $vm_use[$zoneid{$z}] = $kstat->{caps}{$zoneid{$z}}{$statname}{usage};
  $vm_use_sum += $vm_use[$zoneid{$z}];
  $vm_cap[$zoneid{$z}] = $kstat->{caps}{$zoneid{$z}}{$statname}{value};

That kstat wasn't added until the swap cap was added, in S10 5/08.
Solaris releases older than that will all have that problem. Sorry
about that.

This bug is on my list to fix for v1.5 of zonestat.

--JeffV
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to