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

2 comments:

Terry said...

Thanks for that reminder. I've only worked with Zones slightly before taking a job at a Linux-only shop. Noow that I'm back at a Solaris and Linux shop I've been sheepish about admitting how little I know about zones.

esofthub said...

I need the reminder, too, Terry. Frankly speaking, I use most of these posts as a personal memory jogger. Thanks for the comment.