Re: How to know if running as a guest
On Thu, 10 Apr 2008 18:53:42 -0400, Chambers, David W. [EMAIL PROTECTED] corp.com wrote: z/VM 5.3 has a Rexx STSI() function. TSO Rexx does not, even at z/OS 1.9. Running APF-authorized this code (or something like it): MODESET MODE=SUP SLR 0,0 STSI 0(0) MODESET MODE=PROB should return a '3000' in R0 if z/OS is running as a guest. I don't have a second-level z/OS to try it on but it does return a '2000' for z/OS in an LPAR. = == == STSI is a privileged instruction. CMS runs in supervisor state, but TSO r uns in problem state. Of course, z/OS could provide a system service corresponding to STSI. Possib ly they don't think a problem-state user should have all that information. Otherwise, why make it a supervisor-state instruction in the first place? There is, apparently, a System REXX in z/OS 1.8 and 1.9. Possibly that contains something like STSI(). (Or possibly I just have a good imagination.) I was curious, but I cannot download PDF manuals from IBMLink any more on my Mac, as Download Director chokes. No big loss, if you use z/OS I guess you have access to z/OS manuals. I could, of course, do it a t work, but reading z/OS manuals is not part of my job description. Alan Ackerman Alan (dot) Ackerman (at) Bank of America (dot) com
How to know if running as a guest
Is there any z/OS command to know if the system is running under VM? Thanks. Claudio Yahoo! Encuentros. Ahora encontrar pareja es mucho más fácil, probá el nuevo Yahoo! Encuentros http://yahoo.cupidovirtual.com/servlet/NewRegistration
Re: How to know if running as a guest
-Original Message- From: The IBM z/VM Operating System [mailto:[EMAIL PROTECTED] On Behalf Of Claudio Testore Sent: Thursday, April 10, 2008 1:40 PM To: IBMVM@LISTSERV.UARK.EDU Subject: How to know if running as a guest Is there any z/OS command to know if the system is running under VM? Thanks. Claudio D M=CPU should do it. The first byte of the CPUID is FF. -- John McKown Senior Systems Programmer HealthMarkets Keeping the Promise of Affordable Coverage Administrative Services Group Information Technology The information contained in this e-mail message may be privileged and/or confidential. It is for intended addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, reproduction, distribution or other use of this communication is strictly prohibited and could, in certain circumstances, be a criminal offense. If you have received this e-mail in error, please notify the sender by reply and delete this message without copying or disclosing it.
Re: How to know if running as a guest
The z/OS command - D M=CPU - for a z/OS system running in a virtual machine does not show the first byte of the CPU-ID. This is from my z/OS system running in a virtual machine. D M=CPU IEE174I 13.19.16 DISPLAY M 230 PROCESSOR STATUS ID CPU SERIAL 00 + 01AC8E2094 01 + 01AC8E2094 02 + 01AC8E2094 You could write a program that issues CP commands using the DIAGNOSE instruction using subcode X'0008'. From: The IBM z/VM Operating System on behalf of McKown, John Sent: Thu 4/10/2008 11:45 AM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: How to know if running as a guest -Original Message- From: The IBM z/VM Operating System [mailto:[EMAIL PROTECTED] On Behalf Of Claudio Testore Sent: Thursday, April 10, 2008 1:40 PM To: IBMVM@LISTSERV.UARK.EDU Subject: How to know if running as a guest Is there any z/OS command to know if the system is running under VM? Thanks. Claudio D M=CPU should do it. The first byte of the CPUID is FF. -- John McKown Senior Systems Programmer HealthMarkets Keeping the Promise of Affordable Coverage Administrative Services Group Information Technology The information contained in this e-mail message may be privileged and/or confidential. It is for intended addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, reproduction, distribution or other use of this communication is strictly prohibited and could, in certain circumstances, be a criminal offense. If you have received this e-mail in error, please notify the sender by reply and delete this message without copying or disclosing it.
Re: How to know if running as a guest
The STSI instruction should tell you. From Principles of Operation, SA22-7832-05, page 10-114: Function Code Information Requested - 0Current-configuration-level number 1Information about level 1 (the basic machine) 2Information about level 2 (a logical partition) 3Information about level 3 (a virtual machine)... So for a function code of zero: More from Principles of Operation: When the function code is 0, an unsigned binary integer identifying the current configuration level (1 for basic machine, 2 for logical partition, or 3 for virtual machine) is placed in bit positions 32-35 of general register 0, the condition code is set to 0, and no further action is performed.
Re: How to know if running as a guest
On Thursday, 04/10/2008 at 04:27 EDT, Raymond Noal [EMAIL PROTECTED] wrote: The z/OS command - D M=CPU - for a z/OS system running in a virtual machine does not show the first byte of the CPU-ID. This is from my z/OS system running in a virtual machine. D M=CPU IEE174I 13.19.16 DISPLAY M 230 PROCESSOR STATUS ID CPU SERIAL 00 + 01AC8E2094 01 + 01AC8E2094 02 + 01AC8E2094 You could write a program that issues CP commands using the DIAGNOSE instruction using subcode X'0008'. On modern machines, the STIDP instruction (which returns the 0xFF in the high-order byte) cannot be used to identify a particular processor. You can still use it to find out if you're running as a guest, but z/OS doesn't care about that for displaying CPU ids. z/OS issues the STIDP and gets the indicator that says Use the STSI instruction instead!. The output from the STSI instruction does not return the 0xFF. FYI, the STSI() function in REXX can be used to obtain the output from the STSI instruction. Alan Altmark z/VM Development IBM Endicott
Re: How to know if running as a guest
z/VM 5.3 has a Rexx STSI() function. TSO Rexx does not, even at z/OS 1.9. Running APF-authorized this code (or something like it): MODESET MODE=SUP SLR 0,0 STSI 0(0) MODESET MODE=PROB should return a '3000' in R0 if z/OS is running as a guest. I don't have a second-level z/OS to try it on but it does return a '2000' for z/OS in an LPAR.