Thursday, January 29, 2009

Identify Zone Processes via Global Zone

I had a colleague of mine ask a question about how to identify processes that belong to a particular zone via the global zone because the global zone “sees” everything. Recently, I attended a class and it covered the "deltas" between Solaris 10 and Solaris 8 and this question surfaced there, too. 

The quick answer is to use the "-Z" option, which is the uppercase form.

Here is an example from the global zone.

# /usr/bin/ps -efZ