A naming convention is probably the simplest way to ensure you get everything.. LNXxxxxx or what have you. Anything else is just guessing when it comes down to it, when talking about checking dynamically. You can use PIPE CP Q N | SPLIT AT /,/ | STRIP | FIND LNX| count lines|cons if you happen to use LNX as the prefix...
Or keep a table - which in the end you need one in one form or another (even if a list of CP XAUTOLOG statements in AUTOLOG2 PROFILE EXEC). What do you use to ensure the Linux guests are running when VM IPLs? Whatever it is, it is probably a good basis for counting how many are supposed to be running. Scott p.s. PIPE CP Q SIGNALS | DROP FIRST 2 | COUNT LINES | CONS -- can be pretty accurate in a pinch depending on what else uses signals. On Wed, Aug 12, 2009 at 3:49 PM, <sunny...@wcb.ab.ca> wrote: > > I was asked to find out how many linux guests are running on our z/VM? > the cp commands:Q N is not very suitable for this question. > What is the better way? > > ------------------------------ > This message is intended only for the addressee. It may contain privileged > or confidential information. Any unauthorized disclosure is strictly > prohibited. If you have received this message in error, please notify us > immediately so that we may correct our internal records. Please then delete > the original email. Thank you. (Sent by Webgate1) >