Erland, the ps issue is already fixed as far as I know in current trunk svn.
M On 01/03/2011 08:11 AM, Erlend Leganger wrote: > On 3 January 2011 07:26, Erlend Leganger <erlend.legan...@gmail.com > <mailto:erlend.legan...@gmail.com>> wrote: > > Fixing this is a bit tricky, since the -e option cancels out any -z > global option (ref man ps). This is what you want in a global zone > (with -z option, no -e option): > > /bin/ps -z global -o user,pid,ppid,pgid, ... > > while this is what you want in a non-global zone (no -z option, with > -e option): > > /bin/ps -e -o user,pid,ppid,pgid, ... > > > The following hack seems to work in my Solaris 10 environment - quick > and dirty, limiting the change to enterprise_stubs.c. > > - Erlend > > char *GetProcessOptions() > { > #ifdef HAVE_GETZONEID > zoneid_t zid; > char zone[ZONENAME_MAX]; > > zid = getzoneid(); > getzonenamebyid(zid,zone,ZONENAME_MAX); > > if (cf_strcmp(zone,"global") == 0) > return "-z global -o > user,pid,ppid,pgid,pcpu,pmem,vsz,pri,rss,stime,time,args"; > else > return "-e -o user,pid,ppid,pgid,pcpu,pmem,vsz,pri,rss,stime,time,args"; > > #endif > > return VPSOPTS[VSYSTEMHARDCLASS]; > } > > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@cfengine.org > https://cfengine.org/mailman/listinfo/help-cfengine _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine