Forum: Cfengine Help
Subject: Re: Processes in Solaris 10 and latest trunk r1736
Author: berntjernberg
Link to topic: https://cfengine.com/forum/read.php?3,20298,20333#msg-20333

> Then what is the point of it?

ps -o  -z `zonename` will print all processes in the current zone. If you run 
that command in a global zone it won't print all the processes from the local 
zones.

The problem is "-e". Remove it all together for Solaris.

I only change the code in my bundles, not the c-code.

> And?

FYI

-z make sense in a local zone:



# /bin/ps -o user,pid,ppid,pgid,pcpu,pmem,vsz,pri,rss,nlwp,stime,time,args | wc 
-l
       6
# /bin/ps -o user,pid,ppid,pgid,pcpu,pmem,vsz,pri,rss,nlwp,stime,time,args -z 
`zonename`| wc -l
      35



Thats why I always use -z `zonename` (without -e) in my scripts if I want to 
print all processes in the current zone only (global or local).

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to