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,20304#msg-20304
Hi,
To always be sure to only list processes in current zone only I always use "-z
". This simplifies coding in my opinion, you can use the same command
regardless of zone. as in the output from the command zonename. You are right,
you can leave out the "-f " as well. I think we don't need the "zone" column as
we always want to list processes in the current zone only and it's less bytes
to parse. The company that I work for allways use full-zones on separate disks
so every zone (global/LDOM, local) is treated as a separate node. But there may
be some rare occasions where you want to list all processes from the global
zone, I don't know.
Global zone
# /bin/ps -o ......... -z `zonename` | wc -l
63
# /bin/ps -eo ............... -z `zonename` | wc -l
647
Local zone
# /bin/ps -o ..... -z `zonename` | wc -l
36
# /bin/ps -eo ....... -z `zonename` | wc -l
36
I will test and get back to you.
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine