How to tell how many linux running on z/VM?
We use vdisk for swap. So I find : q vdisk can tell me about the current running linux guests using Vdisk. vmcp q vdisk |awk '{print($2)}' | sort -u 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)
Re: How to tell how many linux running on z/VM?
That may be a good measure for some, including you; however, it is not universal. We use V-disk for temp disks, so most of our CMS users have one or more V-disks. We would have to filter the non-swap vdisks out of the results. As noted, there is no one size fits all solution. You have to base your filters on knowledge of your system, conventions, and user base. If you want it to be nearly bullet-proof, you have to adopt some kind of convention and enforce it. (I couldn't even use machine size if we were mixing IFLs and regular CPUs in an LPAR - we have large, anywhere from 3.4 to 18 GB guests that are not Linux. In that situation, we could base it on whether the guest was IFL or other). Regards, Richard Schuh From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of sunny...@wcb.ab.ca Sent: Monday, August 17, 2009 1:27 PM To: IBMVM@LISTSERV.UARK.EDU Subject: How to tell how many linux running on z/VM? We use vdisk for swap. So I find : q vdisk can tell me about the current running linux guests using Vdisk. vmcp q vdisk |awk '{print($2)}' | sort -u 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)
Re: How to tell how many linux running on z/VM?
On Thu, Aug 13, 2009 at 01:59:16PM -0600, sunny...@wcb.ab.ca wrote: And our system names are associated with projects instead of the platform, I choose Mark's script as an easy approach even there is some human adjustments needed.:) This is amazing! No one suggested writing a script to go look in each vm's idea of real storage to identify its OS, version, and uptime numbers. I fear for the future of systems programming. ;-) -- May the LORD God bless you exceedingly abundantly! Dave Craig - - - - - - - - - - - - - - - - - - - - 'So the universe is not quite as you thought it was. You'd better rearrange your beliefs, then. Because you certainly can't rearrange the universe.' --from _Nightfall_ by Asimov/Silverberg
Re: How to tell how many linux running on z/VM?
On Fri, Aug 14, 2009 at 3:10 PM, David L. Craigd...@radix.net wrote: This is amazing! No one suggested writing a script to go look in each vm's idea of real storage to identify its OS, version, and uptime numbers. I fear for the future of systems programming. ;-) Yep, very few challenges left when one simple command does it... With my apologies for the formatting, this shows uptime in hours, kernel level and host name... esamon table 25 format{tcpsys.uptime/36,6,1} subword{tcpsys.description,3,1} tcpip.node ; node * while vsisys.samples 0 158.5 2.6.18-128.el5redhat5 3061.7 2.4.20-8customlinuxd 3520.8 2.6.5-7.191-s390 suselnx1 1093.6 2.6.11.4-20a-default linux93 542.1 2.6.16.60-0.21-smplinux64 3520.8 2.6.5-7.191-s390 suselnx2 48.2 2.6.27.19-5-default broblx2 233.9 2.6.16.60-0.21-defaultsuselnx3 3519.3 2.4.21-50.EL redhat3 1007.2 2.6.27.19-5-default sles11 235.4 2.6.5-7.308-s390x sles9x 234.6 2.6.9-67.EL redhat01
Re: How to tell how many linux running on z/VM?
one simple command does it Simple? I laugh in your general direction! Also, this presupposes that the one asking the question has Velocity Software performance products, and sufficient background z/VM performance analysis to utilize them in this fashion. The original question would seem to eliminate the second supposition. That's not a flame at Sunny, experience comes from experience and it's obvious that even experienced list members have come up with MANY different ways to derive an answer. I'm still waiting for Sunny to define the actual requirement more thoroughly. To what use will this information be put? Knowing that, an appropriate solution can be devised. Without that, it is if senior management asked How many guests are running on z/VM? Without knowing if they are talking about server consolidation, more about those servers; or whether they want to know for many CMS users are still on the box, etc., (imagination can run wild) -- who knows to what evil they might put the answer? Mike Walter Hewitt Associates Rob van der Heij rvdh...@gmail.com Sent by: The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU 08/14/2009 09:16 AM Please respond to The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU To IBMVM@LISTSERV.UARK.EDU cc Subject Re: How to tell how many linux running on z/VM? On Fri, Aug 14, 2009 at 3:10 PM, David L. Craigd...@radix.net wrote: This is amazing! No one suggested writing a script to go look in each vm's idea of real storage to identify its OS, version, and uptime numbers. I fear for the future of systems programming. ;-) Yep, very few challenges left when one simple command does it... With my apologies for the formatting, this shows uptime in hours, kernel level and host name... esamon table 25 format{tcpsys.uptime/36,6,1} subword{tcpsys.description,3,1} tcpip.node ; node * while vsisys.samples 0 158.5 2.6.18-128.el5redhat5 3061.7 2.4.20-8customlinuxd 3520.8 2.6.5-7.191-s390 suselnx1 1093.6 2.6.11.4-20a-default linux93 542.1 2.6.16.60-0.21-smplinux64 3520.8 2.6.5-7.191-s390 suselnx2 48.2 2.6.27.19-5-default broblx2 233.9 2.6.16.60-0.21-defaultsuselnx3 3519.3 2.4.21-50.EL redhat3 1007.2 2.6.27.19-5-default sles11 235.4 2.6.5-7.308-s390x sles9x 234.6 2.6.9-67.EL redhat01 The information contained in this e-mail and any accompanying documents may contain information that is confidential or otherwise protected from disclosure. If you are not the intended recipient of this message, or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message, including any attachments. Any dissemination, distribution or other use of the contents of this message by anyone other than the intended recipient is strictly prohibited. All messages sent to and from this e-mail address may be monitored as permitted by applicable law and regulations to ensure compliance with our internal policies and to protect our business. E-mails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, lost or destroyed, or contain viruses. You are deemed to have accepted these risks if you communicate with us by e-mail.
Re: How to tell how many linux running on z/VM?
If you look back in the thread, I am pretty certain that I made just such a suggestion. Regards, Richard Schuh -Original Message- From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of David L. Craig Sent: Friday, August 14, 2009 6:11 AM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: How to tell how many linux running on z/VM? On Thu, Aug 13, 2009 at 01:59:16PM -0600, sunny...@wcb.ab.ca wrote: And our system names are associated with projects instead of the platform, I choose Mark's script as an easy approach even there is some human adjustments needed.:) This is amazing! No one suggested writing a script to go look in each vm's idea of real storage to identify its OS, version, and uptime numbers. I fear for the future of systems programming. ;-) -- May the LORD God bless you exceedingly abundantly! Dave Craig - - - - - - - - - - - - - - - - - - - - 'So the universe is not quite as you thought it was. You'd better rearrange your beliefs, then. Because you certainly can't rearrange the universe.' --from _Nightfall_ by Asimov/Silverberg
Re: How to tell how many linux running on z/VM?
On Thursday, 08/13/2009 at 05:31 EDT, Brian Nielsen bniel...@sco.idaho.gov wrote: You could use Q NSS NAME xxx MAP to find out how many CMS users (xxx=INSTSEG, CMSPIPES, or CMSVMLIB) and how many GCS users (xxx=GCS) there are an subtract from the Q USERS total to get a count of users running other operating systems (Linux, z/OS, VSE, TPF, etc) or no operatating system at all (eg: in a SYSTEM RESET state). Of course, if you've setup a shared DCSS for Linux guests, just query on that instead. Brian Nielsen Note: Don't use the CMS NSS or you will not exclude userids that did an IPL 190.) IPL 190 PARM NOSPROF INSTSEG NO Who am I? :-) Trying to create a one-size-fits-all algorithm won't work. At the end of the day analyzing INDICATE USER with knowledge of what your guests IPL is as good as anything. If your system is, um, chaotic in that respect, then you have to backtrack a bit. - If they IPLed 190, was it MAINTxxx 190 or something else you recognize? (QUERY MDISK USER xx 190). - If they IPLed an NSS, do you recognize it? - If they haven't IPLed anything, then does it matter? - If they IPLed 191, hand it to an Inquisitor for further review. ;-) Alan Altmark z/VM Development IBM Endicott
Re: How to tell how many linux running on z/VM?
On Aug 14, 2009, at 11:42 AM, Alan Altmark wrote: IPL 190 PARM NOSPROF INSTSEG NO Who am I? :-) With that line, most likely Chucky. Adam
Re: How to tell how many linux running on z/VM?
On Fri, Aug 14, 2009 at 12:42 PM, Alan or Chucky wrote: IPL 190 PARM NOSPROF INSTSEG NO Who am I? :-) Trying to create a one-size-fits-all algorithm won't work. At the end of the day analyzing INDICATE USER with knowledge of what your guests IPL is as good as anything. If your system is, um, chaotic in that respect, then you have to backtrack a bit. - If they IPLed 190, was it MAINTxxx 190 or something else you recognize? (QUERY MDISK USER xx 190). - If they IPLed an NSS, do you recognize it? - If they haven't IPLed anything, then does it matter? - If they IPLed 191, hand it to an Inquisitor for further review. Heh, with Levanta we had the startup scripts (in Linux) swap the CMS 190 in for the Linux IPL device. That way you could do a 'shutdown -r' and it would reIPL CMS, go through the Levanta setup (which would swap the devices back), and then reIPL Linux. As you say, one-size-fits-all won't work -- there's always a cleverer idiot! ...phsiii
Re: How to tell how many linux running on z/VM?
Gee, nothing works. You might as well have an EXEC like this: /* */ return random(1,99) /* Substitute whatever you like for the range. */ Kidding aside, establishing a naming convention and sticking to it is probably the best bet. That plus filtering based on the information from IND USER (IPL device/name and Virtual Storage) if you have those clever enough to IPL CMS in an otherwise Linux machine, should give you a pretty good idea of which are your Linux guests (so long as you avoid Levanta products :-) ) Regards, Richard Schuh -Original Message- From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of Phil Smith III Sent: Friday, August 14, 2009 10:47 AM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: How to tell how many linux running on z/VM? On Fri, Aug 14, 2009 at 12:42 PM, Alan or Chucky wrote: IPL 190 PARM NOSPROF INSTSEG NO Who am I? :-) Trying to create a one-size-fits-all algorithm won't work. At the end of the day analyzing INDICATE USER with knowledge of what your guests IPL is as good as anything. If your system is, um, chaotic in that respect, then you have to backtrack a bit. - If they IPLed 190, was it MAINTxxx 190 or something else you recognize? (QUERY MDISK USER xx 190). - If they IPLed an NSS, do you recognize it? - If they haven't IPLed anything, then does it matter? - If they IPLed 191, hand it to an Inquisitor for further review. Heh, with Levanta we had the startup scripts (in Linux) swap the CMS 190 in for the Linux IPL device. That way you could do a 'shutdown -r' and it would reIPL CMS, go through the Levanta setup (which would swap the devices back), and then reIPL Linux. As you say, one-size-fits-all won't work -- there's always a cleverer idiot! ...phsiii
Re: How to tell how many linux running on z/VM?
On Fri, Aug 14, 2009 at 08:29:01AM -0700, Schuh, Richard wrote: If you look back in the thread, I am pretty certain that I made just such a suggestion. Sorry if I missed it--I was in a bit of a rush. Actually, I still am... -- May the LORD God bless you exceedingly abundantly! Dave Craig - - - - - - - - - - - - - - - - - - - - 'So the universe is not quite as you thought it was. You'd better rearrange your beliefs, then. Because you certainly can't rearrange the universe.' --from _Nightfall_ by Asimov/Silverberg
Re: How to tell how many linux running on z/VM?
I too am confused as to why Q NAMES would not work ? q names WATCHER - DSC , MLXORA2S - DSC , MLXORA1S - DSC , MLXWP01S - DSC MLXAP01S - DSC , MLXESS2S - DSC , MLXESS1S - DSC , DTCVSW1 - DSC VSMPROXY - DSC , VMRMADMN - DSC , VMRMSVM - DSC , VMBACKUP - DSC VMUTIL - DSC , ESAALERT - DSC , ESAWEB02 - DSC , ESAWEB01 - DSC ESAADMIN - DSC , PERFSVM - DSC , ESAWRITE - DSC , ESATCP - DSC RSCS - DSC , ESASERVE - DSC , GCS - DSC , VSMSERVE - DSC SMTP - DSC , REXECD - DSC , PORTMAP - DSC , FTPSERVE - DSC SNMPD- DSC , TCPIP- DSC , DTCVSW2 - DSC , OPERSYMP - DSC DISKACNT - DSC , EREP - DSC , OPERATOR - DSC , NJ2W002 -L0004 VSM - TCPIP Munson at zVM3; T=0.01/0.01 08:09:23 It is pretty easy to pick out the 6 LINUX guests running on my sandbox system Bill Munson Sr. z/VM Systems Programmer Brown Brothers Harriman CO. 525 Washington Blvd. Jersey City, NJ 07310 201-418-7588 sunny...@wcb.ab.ca Sent by: The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU 08/12/2009 05:49 PM Please respond to The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU To IBMVM@LISTSERV.UARK.EDU cc 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) *** IMPORTANT NOTE* The opinions expressed in this message and/or any attachments are those of the author and not necessarily those of Brown Brothers Harriman Co., its subsidiaries and affiliates (BBH). There is no guarantee that this message is either private or confidential, and it may have been altered by unauthorized sources without your or our knowledge. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. BBH accepts no responsibility for loss or damage from its use, including damage from virus.
Re: How to tell how many linux running on z/VM?
Of course the other question is - you have so many LINUX guests that you lost count ? munson 201-418-7588 President MVMUA http://www2.marist.edu/~mvmua/ sunny...@wcb.ab.ca Sent by: The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU 08/12/2009 05:49 PM Please respond to The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU To IBMVM@LISTSERV.UARK.EDU cc 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) *** IMPORTANT NOTE* The opinions expressed in this message and/or any attachments are those of the author and not necessarily those of Brown Brothers Harriman Co., its subsidiaries and affiliates (BBH). There is no guarantee that this message is either private or confidential, and it may have been altered by unauthorized sources without your or our knowledge. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. BBH accepts no responsibility for loss or damage from its use, including damage from virus.
Re: How to tell how many linux running on z/VM?
Q NAMES, mangled by a PIPE will work, on condition you have a naming convention. We can *guess* their name starts with MLX, you *know* if that is the key. PIPE CP Q N|Split 1 after /,/|FIND MLX|COUNT LINES|Insert /Number of linuxes: /|CONS 2009/8/13 Bill Munson william.mun...@bbh.com I too am confused as to why Q NAMES would not work ? q names WATCHER - DSC , MLXORA2S - DSC , MLXORA1S - DSC , MLXWP01S - DSC MLXAP01S - DSC , MLXESS2S - DSC , MLXESS1S - DSC , DTCVSW1 - DSC VSMPROXY - DSC , VMRMADMN - DSC , VMRMSVM - DSC , VMBACKUP - DSC VMUTIL - DSC , ESAALERT - DSC , ESAWEB02 - DSC , ESAWEB01 - DSC ESAADMIN - DSC , PERFSVM - DSC , ESAWRITE - DSC , ESATCP - DSC RSCS - DSC , ESASERVE - DSC , GCS - DSC , VSMSERVE - DSC SMTP - DSC , REXECD - DSC , PORTMAP - DSC , FTPSERVE - DSC SNMPD- DSC , TCPIP- DSC , DTCVSW2 - DSC , OPERSYMP - DSC DISKACNT - DSC , EREP - DSC , OPERATOR - DSC , NJ2W002 -L0004 VSM - TCPIP Munson at zVM3; T=0.01/0.01 08:09:23 It is pretty easy to pick out the 6 LINUX guests running on my sandbox system Bill Munson Sr. z/VM Systems Programmer Brown Brothers Harriman CO. 525 Washington Blvd. Jersey City, NJ 07310 201-418-7588 sunny...@wcb.ab.ca Sent by: The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU 08/12/2009 05:49 PM Please respond to The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU To IBMVM@LISTSERV.UARK.EDU cc 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) *** IMPORTANT NOTE* The opinions expressed in this message and/or any attachments are those of the author and not necessarily those of Brown Brothers Harriman Co., its subsidiaries and affiliates (BBH). There is no guarantee that this message is either private or confidential, and it may have been altered by unauthorized sources without your or our knowledge. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. BBH accepts no responsibility for loss or damage from its use, including damage from virus. -- Kris Buelens, IBM Belgium, VM customer support
Re: How to tell how many linux running on z/VM?
Well, simple for you, Bill, with your mumble, mumble years of VM experience:-) You already know that the ESA machines are Velocity products, FTPSERVE, PORTMAP, SMTP, etc. are part of the VM TCP/IP stack, and so forth. That knowledge may not be available to folks just now getting their feet wet in a VM environment. That's why I suggested the TRACK approachit's an explicit and deterministic method for identifying Linux guests. Have a good one. Bill Munson wrote: I too am confused as to why Q NAMES would not work ? q names WATCHER - DSC , MLXORA2S - DSC , MLXORA1S - DSC , MLXWP01S - DSC MLXAP01S - DSC , MLXESS2S - DSC , MLXESS1S - DSC , DTCVSW1 - DSC VSMPROXY - DSC , VMRMADMN - DSC , VMRMSVM - DSC , VMBACKUP - DSC VMUTIL - DSC , ESAALERT - DSC , ESAWEB02 - DSC , ESAWEB01 - DSC ESAADMIN - DSC , PERFSVM - DSC , ESAWRITE - DSC , ESATCP - DSC RSCS - DSC , ESASERVE - DSC , GCS - DSC , VSMSERVE - DSC SMTP - DSC , REXECD - DSC , PORTMAP - DSC , FTPSERVE - DSC SNMPD- DSC , TCPIP- DSC , DTCVSW2 - DSC , OPERSYMP - DSC DISKACNT - DSC , EREP - DSC , OPERATOR - DSC , NJ2W002 -L0004 VSM - TCPIP Munson at zVM3; T=0.01/0.01 08:09:23 It is pretty easy to pick out the 6 LINUX guests running on my sandbox system Bill Munson Sr. z/VM Systems Programmer Brown Brothers Harriman CO. 525 Washington Blvd. Jersey City, NJ 07310 201-418-7588 sunny...@wcb.ab.ca Sent by: The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU 08/12/2009 05:49 PM Please respond to The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU To IBMVM@LISTSERV.UARK.EDU cc 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) *** IMPORTANT NOTE* The opinions expressed in this message and/or any attachments are those of the author and not necessarily those of Brown Brothers Harriman Co., its subsidiaries and affiliates (BBH). There is no guarantee that this message is either private or confidential, and it may have been altered by unauthorized sources without your or our knowledge. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. BBH accepts no responsibility for loss or damage from its use, including damage from virus. -- Dave Jones V/Soft www.vsoft-software.com Houston, TX 281.578.7544
Re: How to tell how many linux running on z/VM?
So true Dave, What is obvious to some of us is obviously not so obvious to others ;-) Another thing that has been suggested on this list is to have a section of the USER DIRECT for LINUX guests so you can see what you have by just looking at the USER DIRECT of course this is for those that are using DIRECTXA and have no directory maintenance product . ex: *** * z/VM 5.3.0 SYSTEM DIRECTORY * *** * 3rd Party Products * BBH User Id's * BBH z/LINUX user id's * BBH 2nd Level Guest for NEW Version of z/VM 5.4.0 munson 201-418-7588 Dave Jones d...@vsoft-software.com Sent by: The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU 08/13/2009 09:31 AM Please respond to The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU To IBMVM@LISTSERV.UARK.EDU cc Subject Re: How to tell how many linux running on z/VM? Well, simple for you, Bill, with your mumble, mumble years of VM experience:-) You already know that the ESA machines are Velocity products, FTPSERVE, PORTMAP, SMTP, etc. are part of the VM TCP/IP stack, and so forth. That knowledge may not be available to folks just now getting their feet wet in a VM environment. That's why I suggested the TRACK approachit's an explicit and deterministic method for identifying Linux guests. Have a good one. Bill Munson wrote: I too am confused as to why Q NAMES would not work ? q names WATCHER - DSC , MLXORA2S - DSC , MLXORA1S - DSC , MLXWP01S - DSC MLXAP01S - DSC , MLXESS2S - DSC , MLXESS1S - DSC , DTCVSW1 - DSC VSMPROXY - DSC , VMRMADMN - DSC , VMRMSVM - DSC , VMBACKUP - DSC VMUTIL - DSC , ESAALERT - DSC , ESAWEB02 - DSC , ESAWEB01 - DSC ESAADMIN - DSC , PERFSVM - DSC , ESAWRITE - DSC , ESATCP - DSC RSCS - DSC , ESASERVE - DSC , GCS - DSC , VSMSERVE - DSC SMTP - DSC , REXECD - DSC , PORTMAP - DSC , FTPSERVE - DSC SNMPD- DSC , TCPIP- DSC , DTCVSW2 - DSC , OPERSYMP - DSC DISKACNT - DSC , EREP - DSC , OPERATOR - DSC , NJ2W002 -L0004 VSM - TCPIP Munson at zVM3; T=0.01/0.01 08:09:23 It is pretty easy to pick out the 6 LINUX guests running on my sandbox system Bill Munson Sr. z/VM Systems Programmer Brown Brothers Harriman CO. 525 Washington Blvd. Jersey City, NJ 07310 201-418-7588 sunny...@wcb.ab.ca Sent by: The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU 08/12/2009 05:49 PM Please respond to The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU To IBMVM@LISTSERV.UARK.EDU cc 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) -- Dave Jones V/Soft www.vsoft-software.com Houston, TX 281.578.7544 *** IMPORTANT NOTE* The opinions expressed in this message and/or any attachments are those of the author and not necessarily those of Brown Brothers Harriman Co., its subsidiaries and affiliates (BBH). There is no guarantee that this message is either private or confidential, and it may have been altered by unauthorized sources without your or our knowledge. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. BBH accepts no responsibility for loss or damage from its use, including damage from virus.
Re: How to tell how many linux running on z/VM?
We have a little rexx exec we run in the morning to check the VM guests, It is divided up between system ID's and the layer 2 and layer 3 linux guests. Small example: 'MSG' '*' 'CKUSERID STARTING '/* CKUSERID STARTING */ 'MSG' '*' 'SYSTEM IDS '/* SYSTEM IDS*/ 'Q ' 'DISKACNT' /* */ 'Q ' 'DTCVSW1 ' /* */ 'Q ' 'DTCVSW2 ' /* */ 'MSG' '*' 'LAYER 2 GUEST IDS '/* GUEST IDS*/ 'Q ' 'NMDTOR04' /* */ 'Q ' 'NMDPOR02' /* */ 'Q ' 'TDCPNT01' /* */ 'Q ' 'TDCPNT02' /* */ 'MSG' '*' 'LAYER 3 GUEST IDS '/* GUEST IDS*/ 'Q ' 'DFNORRUL' /* */ 'Q ' 'DFNORSTG' /* */ 'Q ' 'DFNORSTO' /* */ Russell Gendreau -Original Message- From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of Dave Jones Sent: Thursday, August 13, 2009 9:31 AM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: How to tell how many linux running on z/VM? Well, simple for you, Bill, with your mumble, mumble years of VM experience:-) You already know that the ESA machines are Velocity products, FTPSERVE, PORTMAP, SMTP, etc. are part of the VM TCP/IP stack, and so forth. That knowledge may not be available to folks just now getting their feet wet in a VM environment. That's why I suggested the TRACK approachit's an explicit and deterministic method for identifying Linux guests. Have a good one. Bill Munson wrote: I too am confused as to why Q NAMES would not work ? q names WATCHER - DSC , MLXORA2S - DSC , MLXORA1S - DSC , MLXWP01S - DSC MLXAP01S - DSC , MLXESS2S - DSC , MLXESS1S - DSC , DTCVSW1 - DSC VSMPROXY - DSC , VMRMADMN - DSC , VMRMSVM - DSC , VMBACKUP - DSC VMUTIL - DSC , ESAALERT - DSC , ESAWEB02 - DSC , ESAWEB01 - DSC ESAADMIN - DSC , PERFSVM - DSC , ESAWRITE - DSC , ESATCP - DSC RSCS - DSC , ESASERVE - DSC , GCS - DSC , VSMSERVE - DSC SMTP - DSC , REXECD - DSC , PORTMAP - DSC , FTPSERVE - DSC SNMPD- DSC , TCPIP- DSC , DTCVSW2 - DSC , OPERSYMP - DSC DISKACNT - DSC , EREP - DSC , OPERATOR - DSC , NJ2W002 -L0004 VSM - TCPIP Munson at zVM3; T=0.01/0.01 08:09:23 It is pretty easy to pick out the 6 LINUX guests running on my sandbox system Bill Munson Sr. z/VM Systems Programmer Brown Brothers Harriman CO. 525 Washington Blvd. Jersey City, NJ 07310 201-418-7588 sunny...@wcb.ab.ca Sent by: The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU 08/12/2009 05:49 PM Please respond to The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU To IBMVM@LISTSERV.UARK.EDU cc 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) *** IMPORTANT NOTE* The opinions expressed in this message and/or any attachments are those of the author and not necessarily those of Brown Brothers Harriman Co., its subsidiaries and affiliates (BBH). There is no guarantee that this message is either private or confidential, and it may have been altered by unauthorized sources without your or our knowledge. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. BBH accepts no responsibility for loss or damage from its use, including damage from virus. -- Dave Jones V/Soft www.vsoft-software.com Houston, TX 281.578.7544
Re: How to tell how many linux running on z/VM?
The question was how to tell how many Linux guests are running. Other types of users may inhabit the system. There are service machines (TCPIP, RSCS, etc.), operations machines (OPERATOR, OPERATNS, etc.), CMS users (MAINT, sysprog userids, etc.) that are included in the mix. If all you are counting are Linux guests, you need some way to either eliminate the non-Linux guests from the results of Q N, or to positively identify which guests are Linux. If you do not filter the results of Q N, then you might as well make it easy on yourself and use Q U, instead. Regards, Richard Schuh -Original Message- From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of Martin, Terry R. (CMS/CTR) (CTR) Sent: Wednesday, August 12, 2009 5:23 PM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: How to tell how many linux running on z/VM? I agree with Mark, why is the Q N command not suitable, maybe I am missing something or don't understand what Sunny is asking. I would just write a simple PIPE grabbing count them and write them to a file or to the console along with the count. Thank You, Terry Martin Lockheed Martin - Information Technology z/OS z/VM Systems - Performance and Tuning Cell - 443 632-4191 Work - 410 786-0386 terry.mar...@cms.hhs.gov -Original Message- From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of P S Sent: Wednesday, August 12, 2009 8:04 PM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: How to tell how many linux running on z/VM? On Wed, Aug 12, 2009 at 7:22 PM, Schuh, Richardrsc...@visa.com wrote: Strong incentive to make sure that either all of the linux guests IPL from the same virtual address or, at the very least, that none of them has a virtual 190. As long as you are using something fuzzy to make the determination, you can also see the virtual storage in the response to IND USER. CMS guests are usually measured in MB, not GB. This is a really interesting thread. As Richard notes, all these methods are fuzzy, but all are useful; a combination should be pretty definitive. One more approach: set something distinctive for each guest -- a printer at address , a specific accounting code, etc. -- and use that (subject to other site restrictions, of course). Or do the same for non-Linux guests and divine by elimination...
Re: How to tell how many linux running on z/VM?
Q SIGNALS may be good, but you still need to filter out other users to be accurate. If I were to use the unfiltered response on my main system, I would get a result of 3. Those all happen to be SFS servers, so the real answer to the question being asked in this thread is 0. Regards, Richard Schuh From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of Scott Rohling Sent: Wednesday, August 12, 2009 6:35 PM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: How to tell how many linux running on z/VM? A naming convention is probably the simplest way to ensure you get everything.. LNXx 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|consif 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.huhttp://sunny.hu@wcb.ab.cahttp://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)
Re: How to tell how many linux running on z/VM?
Ah, but you are using one of the methods suggested in this thread; you have a naming convention. In the absence of that, the other filters may be needed. Regards, Richard Schuh -Original Message- From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of Bill Munson Sent: Thursday, August 13, 2009 5:14 AM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: How to tell how many linux running on z/VM? I too am confused as to why Q NAMES would not work ? q names WATCHER - DSC , MLXORA2S - DSC , MLXORA1S - DSC , MLXWP01S - DSC MLXAP01S - DSC , MLXESS2S - DSC , MLXESS1S - DSC , DTCVSW1 - DSC VSMPROXY - DSC , VMRMADMN - DSC , VMRMSVM - DSC , VMBACKUP - DSC VMUTIL - DSC , ESAALERT - DSC , ESAWEB02 - DSC , ESAWEB01 - DSC ESAADMIN - DSC , PERFSVM - DSC , ESAWRITE - DSC , ESATCP - DSC RSCS - DSC , ESASERVE - DSC , GCS - DSC , VSMSERVE - DSC SMTP - DSC , REXECD - DSC , PORTMAP - DSC , FTPSERVE - DSC SNMPD- DSC , TCPIP- DSC , DTCVSW2 - DSC , OPERSYMP - DSC DISKACNT - DSC , EREP - DSC , OPERATOR - DSC , NJ2W002 -L0004 VSM - TCPIP Munson at zVM3; T=0.01/0.01 08:09:23 It is pretty easy to pick out the 6 LINUX guests running on my sandbox system Bill Munson Sr. z/VM Systems Programmer Brown Brothers Harriman CO. 525 Washington Blvd. Jersey City, NJ 07310 201-418-7588 sunny...@wcb.ab.ca Sent by: The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU 08/12/2009 05:49 PM Please respond to The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU To IBMVM@LISTSERV.UARK.EDU cc 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) *** IMPORTANT NOTE* The opinions expressed in this message and/or any attachments are those of the author and not necessarily those of Brown Brothers Harriman Co., its subsidiaries and affiliates (BBH). There is no guarantee that this message is either private or confidential, and it may have been altered by unauthorized sources without your or our knowledge. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. BBH accepts no responsibility for loss or damage from its use, including damage from virus. ** **
Re: How to tell how many linux running on z/VM?
I count nine. Seriously, though; there's nothing there that indicates if a userid is running linux or some other utility. Being disconnected isn't significant, because someone could be connected to the console of one. I counted esaweb01 and 02 because I didn't recognize them any more than mlxap01s. I think that you use MLX as a prefix, but that'd be an internal standard, and not useful across customers. Ours tries to identify a customer in the first three characters, then P or D for production or dev. Then ZL for zlinux, then a two digit number. But it isn't totally consistent. I think that what is sought is a definitive, non shop specific way of counting linux images. -- 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 7:14 AM, Bill Munson william.mun...@bbh.com wrote: I too am confused as to why Q NAMES would not work ? q names WATCHER - DSC , MLXORA2S - DSC , MLXORA1S - DSC , MLXWP01S - DSC MLXAP01S - DSC , MLXESS2S - DSC , MLXESS1S - DSC , DTCVSW1 - DSC VSMPROXY - DSC , VMRMADMN - DSC , VMRMSVM - DSC , VMBACKUP - DSC VMUTIL - DSC , ESAALERT - DSC , ESAWEB02 - DSC , ESAWEB01 - DSC ESAADMIN - DSC , PERFSVM - DSC , ESAWRITE - DSC , ESATCP - DSC RSCS - DSC , ESASERVE - DSC , GCS - DSC , VSMSERVE - DSC SMTP - DSC , REXECD - DSC , PORTMAP - DSC , FTPSERVE - DSC SNMPD- DSC , TCPIP- DSC , DTCVSW2 - DSC , OPERSYMP - DSC DISKACNT - DSC , EREP - DSC , OPERATOR - DSC , NJ2W002 -L0004 VSM - TCPIP Munson at zVM3; T=0.01/0.01 08:09:23 It is pretty easy to pick out the 6 LINUX guests running on my sandbox system Bill Munson Sr. z/VM Systems Programmer Brown Brothers Harriman CO. 525 Washington Blvd. Jersey City, NJ 07310 201-418-7588 sunny...@wcb.ab.ca Sent by: The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU 08/12/2009 05:49 PM Please respond to The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU To IBMVM@LISTSERV.UARK.EDU cc 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) *** IMPORTANT NOTE* The opinions expressed in this message and/or any attachments are those of the author and not necessarily those of Brown Brothers Harriman Co., its subsidiaries and affiliates (BBH). There is no guarantee that this message is either private or confidential, and it may have been altered by unauthorized sources without your or our knowledge. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. BBH accepts no responsibility for loss or damage from its use, including damage from virus.
Re: How to tell how many linux running on z/VM?
The first thing I don't like about this is that it is very prone to human error during the process of adding or removing images. This is just one more, in a long list of files, that has to be edited each time a guest is added. One more place for mistakes to be made. I'd first create a central, agree-upon definitive source for the image names and user ids. Ours are penguin files kept on autolog1 191. Every exec that needs to run through the list of images links Autolog1 191 and reads the penguin file for the system it's being run on. When a new image is added, the one penguin file needs to be edited, and all of the utilities and references immediately get the change, because they all use the same source for the information. If something's messed up, you know exactly where to look, and you know how many places it's messed up in: Just one. We run a two system CSE complex, so there are two penguin files, one for each CEC. They're used for everything from autologging the images during IPL to checking to see if they all are there or all ping. One stop shopping. -- 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 9:53 AM, russell.gendr...@custserv.com russell.gendr...@custserv.com wrote: We have a little rexx exec we run in the morning to check the VM guests, It is divided up between system ID's and the layer 2 and layer 3 linux guests. Small example: 'MSG' '*' 'CKUSERID STARTING '/* CKUSERID STARTING */ 'MSG' '*' 'SYSTEM IDS '/* SYSTEM IDS*/ 'Q ' 'DISKACNT' /* */ 'Q ' 'DTCVSW1 ' /* */ 'Q ' 'DTCVSW2 ' /* */ 'MSG' '*' 'LAYER 2 GUEST IDS '/* GUEST IDS*/ 'Q ' 'NMDTOR04' /* */ 'Q ' 'NMDPOR02' /* */ 'Q ' 'TDCPNT01' /* */ 'Q ' 'TDCPNT02' /* */ 'MSG' '*' 'LAYER 3 GUEST IDS '/* GUEST IDS*/ 'Q ' 'DFNORRUL' /* */ 'Q ' 'DFNORSTG' /* */ 'Q ' 'DFNORSTO' /* */ Russell Gendreau -Original Message- From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of Dave Jones Sent: Thursday, August 13, 2009 9:31 AM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: How to tell how many linux running on z/VM? Well, simple for you, Bill, with your mumble, mumble years of VM experience:-) You already know that the ESA machines are Velocity products, FTPSERVE, PORTMAP, SMTP, etc. are part of the VM TCP/IP stack, and so forth. That knowledge may not be available to folks just now getting their feet wet in a VM environment. That's why I suggested the TRACK approachit's an explicit and deterministic method for identifying Linux guests. Have a good one. Bill Munson wrote: I too am confused as to why Q NAMES would not work ? q names WATCHER - DSC , MLXORA2S - DSC , MLXORA1S - DSC , MLXWP01S - DSC MLXAP01S - DSC , MLXESS2S - DSC , MLXESS1S - DSC , DTCVSW1 - DSC VSMPROXY - DSC , VMRMADMN - DSC , VMRMSVM - DSC , VMBACKUP - DSC VMUTIL - DSC , ESAALERT - DSC , ESAWEB02 - DSC , ESAWEB01 - DSC ESAADMIN - DSC , PERFSVM - DSC , ESAWRITE - DSC , ESATCP - DSC RSCS - DSC , ESASERVE - DSC , GCS - DSC , VSMSERVE - DSC SMTP - DSC , REXECD - DSC , PORTMAP - DSC , FTPSERVE - DSC SNMPD- DSC , TCPIP- DSC , DTCVSW2 - DSC , OPERSYMP - DSC DISKACNT - DSC , EREP - DSC , OPERATOR - DSC , NJ2W002 -L0004 VSM - TCPIP Munson at zVM3; T=0.01/0.01 08:09:23 It is pretty easy to pick out the 6 LINUX guests running on my sandbox system Bill Munson Sr. z/VM Systems Programmer Brown Brothers Harriman CO. 525 Washington Blvd. Jersey City, NJ 07310 201-418-7588 sunny...@wcb.ab.ca Sent by: The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU 08/12/2009 05:49 PM Please respond to The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU To IBMVM@LISTSERV.UARK.EDU cc 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
Re: How to tell how many linux running on z/VM?
I really think most of you were OVER thinking the question. It was a newcomers question and most of the answers were too extreme for the simple question. that is my opinion though and we have not heard back from Sunny since the question was posed. munson RPN01 nix.rob...@mayo.edu Sent by: The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU 08/13/2009 02:57 PM Please respond to The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU To IBMVM@LISTSERV.UARK.EDU cc Subject Re: How to tell how many linux running on z/VM? The first thing I don't like about this is that it is very prone to human error during the process of adding or removing images. This is just one more, in a long list of files, that has to be edited each time a guest is added. One more place for mistakes to be made. I'd first create a central, agree-upon definitive source for the image names and user ids. Ours are penguin files kept on autolog1 191. Every exec that needs to run through the list of images links Autolog1 191 and reads the penguin file for the system it's being run on. When a new image is added, the one penguin file needs to be edited, and all of the utilities and references immediately get the change, because they all use the same source for the information. If something's messed up, you know exactly where to look, and you know how many places it's messed up in: Just one. We run a two system CSE complex, so there are two penguin files, one for each CEC. They're used for everything from autologging the images during IPL to checking to see if they all are there or all ping. One stop shopping. -- 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 9:53 AM, russell.gendr...@custserv.com russell.gendr...@custserv.com wrote: We have a little rexx exec we run in the morning to check the VM guests, It is divided up between system ID's and the layer 2 and layer 3 linux guests. Small example: 'MSG' '*' 'CKUSERID STARTING '/* CKUSERID STARTING */ 'MSG' '*' 'SYSTEM IDS '/* SYSTEM IDS*/ 'Q ' 'DISKACNT' /* */ 'Q ' 'DTCVSW1 ' /* */ 'Q ' 'DTCVSW2 ' /* */ 'MSG' '*' 'LAYER 2 GUEST IDS '/* GUEST IDS*/ 'Q ' 'NMDTOR04' /* */ 'Q ' 'NMDPOR02' /* */ 'Q ' 'TDCPNT01' /* */ 'Q ' 'TDCPNT02' /* */ 'MSG' '*' 'LAYER 3 GUEST IDS '/* GUEST IDS*/ 'Q ' 'DFNORRUL' /* */ 'Q ' 'DFNORSTG' /* */ 'Q ' 'DFNORSTO' /* */ Russell Gendreau -Original Message- From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of Dave Jones Sent: Thursday, August 13, 2009 9:31 AM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: How to tell how many linux running on z/VM? Well, simple for you, Bill, with your mumble, mumble years of VM experience:-) You already know that the ESA machines are Velocity products, FTPSERVE, PORTMAP, SMTP, etc. are part of the VM TCP/IP stack, and so forth. That knowledge may not be available to folks just now getting their feet wet in a VM environment. That's why I suggested the TRACK approachit's an explicit and deterministic method for identifying Linux guests. Have a good one. Bill Munson wrote: I too am confused as to why Q NAMES would not work ? q names WATCHER - DSC , MLXORA2S - DSC , MLXORA1S - DSC , MLXWP01S - DSC MLXAP01S - DSC , MLXESS2S - DSC , MLXESS1S - DSC , DTCVSW1 - DSC VSMPROXY - DSC , VMRMADMN - DSC , VMRMSVM - DSC , VMBACKUP - DSC VMUTIL - DSC , ESAALERT - DSC , ESAWEB02 - DSC , ESAWEB01 - DSC ESAADMIN - DSC , PERFSVM - DSC , ESAWRITE - DSC , ESATCP - DSC RSCS - DSC , ESASERVE - DSC , GCS - DSC , VSMSERVE - DSC SMTP - DSC , REXECD - DSC , PORTMAP - DSC , FTPSERVE - DSC SNMPD- DSC , TCPIP- DSC , DTCVSW2 - DSC , OPERSYMP - DSC DISKACNT - DSC , EREP - DSC , OPERATOR - DSC , NJ2W002 -L0004 VSM - TCPIP Munson at zVM3; T=0.01/0.01 08:09:23 It is pretty easy to pick out the 6 LINUX guests running on my sandbox system Bill Munson Sr. z/VM Systems Programmer Brown Brothers Harriman CO. 525 Washington Blvd. Jersey City, NJ 07310 201-418-7588 sunny...@wcb.ab.ca Sent by: The IBM z/VM Operating
Re: How to tell how many linux running on z/VM?
On Thursday, 08/13/2009 at 11:56 EDT, Schuh, Richard rsc...@visa.com wrote: The question was how to tell how many Linux guests are running. Other types of users may inhabit the system. There are service machines (TCPIP, RSCS, etc.), operations machines (OPERATOR, OPERATNS, etc.), CMS users (MAINT, sysprog userids, etc.) that are included in the mix. If all you are counting are Linux guests, you need some way to either eliminate the non-Linux guests from the results of Q N, or to positively identify which guests are Linux. If you do not filter the results of Q N, then you might as well make it easy on yourself and use Q U, instead. As Bob Nix noted, the general case is that CP does not know the identity of any guest, so any answer to Sunny's question will require application of an in-house convention. Alan Altmark z/VM Development IBM Endicott
Re: How to tell how many linux running on z/VM?
Thanks for all of your feedback. I orginall thought there must be one cp query command which can indicate what type of guest we are running. And our system names are associated with projects instead of the platform, I choose Mark's script as an easy approach even there is some human adjustments needed.:) Alan Altmark alan_altm...@us.ibm.com Sent by: The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU 08/13/2009 01:26 PM Please respond to The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU To IBMVM@LISTSERV.UARK.EDU cc Subject Re: How to tell how many linux running on z/VM? On Thursday, 08/13/2009 at 11:56 EDT, Schuh, Richard rsc...@visa.com wrote: The question was how to tell how many Linux guests are running. Other types of users may inhabit the system. There are service machines (TCPIP, RSCS, etc.), operations machines (OPERATOR, OPERATNS, etc.), CMS users (MAINT, sysprog userids, etc.) that are included in the mix. If all you are counting are Linux guests, you need some way to either eliminate the non-Linux guests from the results of Q N, or to positively identify which guests are Linux. If you do not filter the results of Q N, then you might as well make it easy on yourself and use Q U, instead. As Bob Nix noted, the general case is that CP does not know the identity of any guest, so any answer to Sunny's question will require application of an in-house convention. Alan Altmark z/VM Development IBM Endicott Scanned by WCB Webgate1 AntiSpam/AntiVirus email gateway. 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)
Re: How to tell how many linux running on z/VM?
Thanks for all of your feedback. I originally thought there must be one cp query command which can indicate what type of guest we are running. And our system names schema is associated with projects instead of the platform, I receive some great thought. Mark's script is the an easy approach even there is some human adjustments needed.:) 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)
Re: How to tell how many linux running on z/VM?
You could use Q NSS NAME xxx MAP to find out how many CMS users (xxx=INSTSEG, CMSPIPES, or CMSVMLIB) and how many GCS users (xxx=GCS) there are an subtract from the Q USERS total to get a count of users running other operating systems (Linux, z/OS, VSE, TPF, etc) or no operatating system at all (eg: in a SYSTEM RESET state). Of course, if you've setup a shared DCSS for Linux guests, just query on that instead. Brian Nielsen Note: Don't use the CMS NSS or you will not exclude userids that did an IPL 190.) On Thu, 13 Aug 2009 15:26:08 -0400, Alan Altmark alan_altm...@us.ibm.com wrote: On Thursday, 08/13/2009 at 11:56 EDT, Schuh, Richard rsc...@visa.com wrote: The question was how to tell how many Linux guests are running. Other types of users may inhabit the system. There are service machines (TCPIP, RSCS, etc.), operations machines (OPERATOR, OPERATNS, etc.), CMS users (MAINT, sysprog userids, etc.) that are included in the mix. If all you are counting a re Linux guests, you need some way to either eliminate the non-Linux guests fro m the results of Q N, or to positively identify which guests are Linux. If y ou do not filter the results of Q N, then you might as well make it easy on yourself and use Q U, instead. As Bob Nix noted, the general case is that CP does not know the identity of any guest, so any answer to Sunny's question will require application of an in-house convention. Alan Altmark z/VM Development IBM Endicott =
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)
Re: How to tell how many linux running on z/VM?
On Wed, Aug 12, 2009 at 11: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? Your network connections might help. If you're using vswitch you could count the number of guests connected to it. Or if you have dedicated OSA you count the number of dedicated OSA devices, divide by 3 and subtract one for TCPIP? Rob
Re: How to tell how many linux running on z/VM?
If all the linux guests are configured to shutdown with the signal from CP SHUTDOWN, then count the number of userids listed in the response from CP Q SIGNALS SHUTDOWN, minus the number of SFS servers. From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of sunny...@wcb.ab.ca Sent: Wednesday, August 12, 2009 3:50 PM To: IBMVM@LISTSERV.UARK.EDU 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)
Re: How to tell how many linux running on z/VM?
Hi, Sunny. Some sites have guest naming standards (Linux guests are named LIN or LS., etc.) that would allow you to very simply see which guests were running Linux, as opposed to CMS or GCS. If your site doesn't have such a standard, then I'm afraid you're going to have to do this the hard way. I would download and install the TRACK z/VM utility; for each guest on the system, it can tell you what the IPL statement was, and if all of your Linux guest were IPLed off of a known DASD address, that would tell you which ones are indeed running Linux. To verify that the guest is a Linux one, TRACK can also display the kernel parm line, which is stored at a fixed location (x'1000'?) in the guest. This isn't too difficult to do for a handful of guests, but if you have a lot to query, you might want to consider automating this task via some Rexx TRACK macros. 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) -- Dave Jones V/Soft www.vsoft-software.com Houston, TX 281.578.7544
Re: How to tell how many linux running on z/VM?
If IPL device is sufficient, then it is not necessary to install TRACK. The IPL device or system is in the CP IND USER userid response, so a PIPE can be used to count all the userids IPL'ed by device, excluding the IPL 190 userids. -Original Message- From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of Dave Jones Sent: Wednesday, August 12, 2009 4:13 PM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: How to tell how many linux running on z/VM? Hi, Sunny. Some sites have guest naming standards (Linux guests are named LIN or LS., etc.) that would allow you to very simply see which guests were running Linux, as opposed to CMS or GCS. If your site doesn't have such a standard, then I'm afraid you're going to have to do this the hard way. I would download and install the TRACK z/VM utility; for each guest on the system, it can tell you what the IPL statement was, and if all of your Linux guest were IPLed off of a known DASD address, that would tell you which ones are indeed running Linux. To verify that the guest is a Linux one, TRACK can also display the kernel parm line, which is stored at a fixed location (x'1000'?) in the guest. This isn't too difficult to do for a handful of guests, but if you have a lot to query, you might want to consider automating this task via some Rexx TRACK macros. 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) -- Dave Jones V/Soft www.vsoft-software.com Houston, TX 281.578.7544
Re: How to tell how many linux running on z/VM?
That's true, Robert; I had forgotten that the IND command does show the last IPL statementof course, if some knuckle head had installed Linux on a virtual DASD at address 190, then that could pose a problem:-) Hodge, Robert L wrote: If IPL device is sufficient, then it is not necessary to install TRACK. The IPL device or system is in the CP IND USER userid response, so a PIPE can be used to count all the userids IPL'ed by device, excluding the IPL 190 userids. -Original Message- From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of Dave Jones Sent: Wednesday, August 12, 2009 4:13 PM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: How to tell how many linux running on z/VM? Hi, Sunny. Some sites have guest naming standards (Linux guests are named LIN or LS., etc.) that would allow you to very simply see which guests were running Linux, as opposed to CMS or GCS. If your site doesn't have such a standard, then I'm afraid you're going to have to do this the hard way. I would download and install the TRACK z/VM utility; for each guest on the system, it can tell you what the IPL statement was, and if all of your Linux guest were IPLed off of a known DASD address, that would tell you which ones are indeed running Linux. To verify that the guest is a Linux one, TRACK can also display the kernel parm line, which is stored at a fixed location (x'1000'?) in the guest. This isn't too difficult to do for a handful of guests, but if you have a lot to query, you might want to consider automating this task via some Rexx TRACK macros. 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) -- Dave Jones V/Soft www.vsoft-software.com Houston, TX 281.578.7544
Re: How to tell how many linux running on z/VM?
On 8/12/2009 at 5: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. Why is q n not suitable? for guest in $(vmcp q n | sed -f qnames.sed) do grep -q $guest excluded.names || echo $guest done | wc cat qnames.sed s/,//g s/ - DSC$// s/ *- DSC */ /g /^VSM/d s/ -L[0-9]*//g s/ - SYSC//g cat excluded.names DATAMOVE DIRMAINT DISKACNT DTCVSW1 DTCVSW2 EREP FTPSERVE GCS OPERATOR SMTP SNMPD TCPIP and so on. Some adjustments will have to be made based on your local environment, but that should be fairly easy. Mark Post
Re: How to tell how many linux running on z/VM?
Hi Sunny, Are you Linux guests autologed? If so then just check out the profile exec (or associated exec) for the Linux names there...should be unidentifiable by their IPL device numbers. --- On Wed, 8/12/09, sunny...@wcb.ab.ca sunny...@wcb.ab.ca wrote: From: sunny...@wcb.ab.ca sunny...@wcb.ab.ca Subject: How to tell how many linux running on z/VM? To: IBMVM@LISTSERV.UARK.EDU Date: Wednesday, August 12, 2009, 5:49 PM 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)
Re: How to tell how many linux running on z/VM?
Strong incentive to make sure that either all of the linux guests IPL from the same virtual address or, at the very least, that none of them has a virtual 190. As long as you are using something fuzzy to make the determination, you can also see the virtual storage in the response to IND USER. CMS guests are usually measured in MB, not GB. Regards, Richard Schuh From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of Howard Rifkind Sent: Wednesday, August 12, 2009 4:06 PM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: How to tell how many linux running on z/VM? Hi Sunny, Are you Linux guests autologed? If so then just check out the profile exec (or associated exec) for the Linux names there...should be unidentifiable by their IPL device numbers. --- On Wed, 8/12/09, sunny...@wcb.ab.ca sunny...@wcb.ab.ca wrote: From: sunny...@wcb.ab.ca sunny...@wcb.ab.ca Subject: How to tell how many linux running on z/VM? To: IBMVM@LISTSERV.UARK.EDU Date: Wednesday, August 12, 2009, 5:49 PM 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)
Re: How to tell how many linux running on z/VM?
On Wed, Aug 12, 2009 at 7:22 PM, Schuh, Richardrsc...@visa.com wrote: Strong incentive to make sure that either all of the linux guests IPL from the same virtual address or, at the very least, that none of them has a virtual 190. As long as you are using something fuzzy to make the determination, you can also see the virtual storage in the response to IND USER. CMS guests are usually measured in MB, not GB. This is a really interesting thread. As Richard notes, all these methods are fuzzy, but all are useful; a combination should be pretty definitive. One more approach: set something distinctive for each guest -- a printer at address , a specific accounting code, etc. -- and use that (subject to other site restrictions, of course). Or do the same for non-Linux guests and divine by elimination...
Re: How to tell how many linux running on z/VM?
I agree with Mark, why is the Q N command not suitable, maybe I am missing something or don't understand what Sunny is asking. I would just write a simple PIPE grabbing count them and write them to a file or to the console along with the count. Thank You, Terry Martin Lockheed Martin - Information Technology z/OS z/VM Systems - Performance and Tuning Cell - 443 632-4191 Work - 410 786-0386 terry.mar...@cms.hhs.gov -Original Message- From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of P S Sent: Wednesday, August 12, 2009 8:04 PM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: How to tell how many linux running on z/VM? On Wed, Aug 12, 2009 at 7:22 PM, Schuh, Richardrsc...@visa.com wrote: Strong incentive to make sure that either all of the linux guests IPL from the same virtual address or, at the very least, that none of them has a virtual 190. As long as you are using something fuzzy to make the determination, you can also see the virtual storage in the response to IND USER. CMS guests are usually measured in MB, not GB. This is a really interesting thread. As Richard notes, all these methods are fuzzy, but all are useful; a combination should be pretty definitive. One more approach: set something distinctive for each guest -- a printer at address , a specific accounting code, etc. -- and use that (subject to other site restrictions, of course). Or do the same for non-Linux guests and divine by elimination...
Re: How to tell how many linux running on z/VM?
And perhaps a set of clarifying questions: 1- do you mean those Linux guests logged on at a particular moment? 2- do you mean Linux guests defined in the directory? 3- do you care which are production, development, test, QA, or sandbox machines? Perhaps if you described the reason for the query, we can better describe solutions. Mike Walter Hewitt Associates (Sent from the wee keyboard on a Blackberry.) - Original Message - From: P S [zosw...@gmail.com] Sent: 08/12/2009 08:04 PM AST To: IBMVM@LISTSERV.UARK.EDU Subject: Re: How to tell how many linux running on z/VM? On Wed, Aug 12, 2009 at 7:22 PM, Schuh, Richardrsc...@visa.com wrote: Strong incentive to make sure that either all of the linux guests IPL from the same virtual address or, at the very least, that none of them has a virtual 190. As long as you are using something fuzzy to make the determination, you can also see the virtual storage in the response to IND USER. CMS guests are usually measured in MB, not GB. This is a really interesting thread. As Richard notes, all these methods are fuzzy, but all are useful; a combination should be pretty definitive. One more approach: set something distinctive for each guest -- a printer at address , a specific accounting code, etc. -- and use that (subject to other site restrictions, of course). Or do the same for non-Linux guests and divine by elimination... The information contained in this e-mail and any accompanying documents may contain information that is confidential or otherwise protected from disclosure. If you are not the intended recipient of this message, or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message, including any attachments. Any dissemination, distribution or other use of the contents of this message by anyone other than the intended recipient is strictly prohibited. All messages sent to and from this e-mail address may be monitored as permitted by applicable law and regulations to ensure compliance with our internal policies and to protect our business. E-mails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, lost or destroyed, or contain viruses. You are deemed to have accepted these risks if you communicate with us by e-mail.
Re: How to tell how many linux running on z/VM?
A naming convention is probably the simplest way to ensure you get everything.. LNXx 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|consif 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)