This will work if you've named all your images with the word "linux" in the user ID, and have not done something like 'linuxmon' for a monitor, etc.
In the real world, "linux" uses up far too many characters to leave any hope of having a descriptive name to identify the ownership or use of the image. True, you can number the images, and allow for 1000 users (linux000 to linux999), and more if you throw in some letters as well. But, when an auditor asks what linux427 does, can you give him an immediate answer, or do you need to go look it up? And more often, if you get a call in the middle of the night that linux427 is unresponsive, is it a production, development, or sandbox image, and do you want to have to get out of bed to find out? Just thoughts. For the most part, your command will not work on the vast majority of systems. Using it here, I have no linux images running, based on the output of your command. -- Robert P. Nix Mayo Foundation .~. RO-OE-5-55 200 First Street SW /V\ 507-284-0844 Rochester, MN 55905 /( )\ ----- ^^-^^ "In theory, theory and practice are the same, but in practice, theory and practice are different." On 8/13/09 6:32 AM, "Richard Heimo" <[email protected]> wrote: > Hello > > Try from a guest: > > vmcp q n | tr ' ' '\n' | grep -i linux | wc -l > > Best regards > Richard > > -----Original Message----- > From: Linux on 390 Port [mailto:[email protected]] On Behalf Of And Get > Involved > Sent: Wednesday, August 12, 2009 11:50 PM > To: [email protected] > Subject: How to tell how many linux running on z/VM? > > 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) > > ---------------------------------------------------------------------- > For LINUX-390 subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO LINUX-390 or visit > http://www.marist.edu/htbin/wlvindex?LINUX-390 > > ---------------------------------------------------------------------- > For LINUX-390 subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO LINUX-390 or visit > http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
