Marcel,
As of today i have not worked before on a ticket for a client requesting information about how take a Stand-Alone Dump using the CA OPS/MVS ADDRESS HWS SENDCMD host command environment.
You can use SENDCMD to issue STOP, DEACTIVATE, ACTIVATE and LOAD (obviously not from the current CPC or LPAR).
Checked the z/OS manual to see if there are any known restrictions and the only 3 documented reasons that would prevent you from issue the Store Status function are documented in the following manual:
z/OS MVS Programming: Callable Services for High-Level Languages
Under the section "HWICMD — Issue a BCPii hardware management command" there is a "Restrictions" item that reads:
BCPii does not allow any HWICMD to be targeted to a CPC that is earlier than a z9 platform. BCPii does not allow HWICMD to be issued from within a BCPii ENF exit routine.
BCPii does not allow any HWICMD to be issued from a REXX exec running in a TSO/E or ISV-provided REXX environment.
This is also what I found in the IBM books about the procedure you should follow for taking the SAD dump:
Taking the Stand-Alone Dump
To take a stand-alone dump:
- Stop the system. If the system is at a disabled wait state, it is already stopped. Otherwise use the Stop All function on the HMC. For a second level system, use the CP STOP CPU ALL command.
- Use the Store Status function on the HMC or check the Store Status box when you do the Load function in the next step. TypeSTORE STATUSon the CP command line if dumping a second level system.
- IPL the dump device. Use the Load Normal function on the HMC. Attention: Do not use the CLEAR option. If the dump device is SCSI, check the SCSI DUMP box, specify the FCP device number as the Load Address, and specify the necessary WWPN and LUN values. Specify 0 for Boot program selector and Boot record logical block address fields and blanks for Load parameter and Operating system specific load parameters.
For dumping a second level system using 3390 DASD, use the IPL command without the CLEAR operand, and do not specify LOADPARM. If using SCSI devices, first use the CP SET DUMPDEV command to define the location of the dump device using the same values as described in previous paragraph. Then use the CP IPL command with the DUMP operand.
The dumper displays messages on the system console as it progresses. For example, these messages were displayed when dumping a 10 GB second level system to a 3390 DASD at device number 555.
CP STOP CPU ALL
STORE STATUS
Store complete.
TERM CONMODE 3215
IPL 555
Booting default...
Starting Stand-alone Dump
Done initializing disks
Dumping Frame Table
Dumping memory:
00000000 / 00000047 MB
00000008 / 00000047 MB
00000016 / 00000047 MB
00000024 / 00000047 MB
00000032 / 00000047 MB
00000040 / 00000047 MB
00000047 / 00000047 MB
Stand-alone Dump was successful.
HCPGSP2629I The virtual machine is placed in CP mode due to a SIGP stop from CPU 00.
Links to the two documents where I found all these references are:
IBM Knowledge Center
IBM Knowledge Center
Marcel, let us know if this helps or if you already tried it and encounter problems while doing it.
You couild also wait a bit to see if the rest of our community has tried something similar in the past.
Cesar