YKQRYRCD (gets remote command device information)

Business Continuity Manager Web API Reference Guide

Version
9.9.1
Audience
anonymous
Part Number
MK-96HC137-03

Applies to TrueCopy, and Universal Replicator.

The command gets the following information from journal groups in the specified copy group.
  • Whether a remote command device is registered
  • LDEVID of the registered remote command device
  • Error code when the remote command device was registered or deleted by the YKRMTCDV command

Request body format

{ "action":"submit",
   "cliname":"YKQRYRCD",
   "operands":"
     [GROUP(copy-group-ID)]
     [△1GOTO({SET|UNSET})]
   "
}

Parameters specified in the request body

GROUP(copy-group-ID) ~ <GROUP string>

Specify the ID of the target copy groups that are loaded. If only one copy group is loaded, you can omit this parameter.

GOTO({SET|UNSET})

SET

If a remote command device is registered for all journal groups, the command returns 0 as the return code. If a remote command device is not registered for a journal group, the command returns 4 as the return code. Specify this parameter if you want to verify that the registration processing was completed after running the YKRMTCDV command with the SET parameter specified.

UNSET
If a remote command device is not registered for all journal groups, the command returns 0 as the return code. If a remote command device is registered for a journal group, the command returns 4 as the return code. Specify this parameter if you want to verify that the deletion processing was completed after running the YKRMTCDV command with the UNSET parameter specified.

If you omit the GOTO parameter, the command gets the registration status of remote command devices for all journal groups. If no error occurs, the command returns 0 as the return code.

Notes

  • You cannot run this command for a copy group that does not have a remote command device definition.

  • If an error occurred during the processing to register or delete a remote command device that was performed immediately before, the command returns 12 as the return code, and sets an error code for the errCode key. If the processing was successfully performed, the command sets 0000 for the errCode key.

Return code

If the CLI command has finished running, the return code of the CLI command is set in the rc key of the response. If an error occurs before the CLI command is run, the BCM Web API server sets the return code.

The following table lists and describes the return codes of the YKQRYRCD command.

Table. YKQRYRCD command return code list

Return code

Meaning

-3

The module cannot be loaded. Possible causes are as follows:

  • The library dataset has not been linked.

  • The module is protected by the RACF program control function.

-1

An interruption occurred during execution.

0

The command completed normally.

If the GOTO(SET) parameter was specified: A remote command device was set for all journal groups.

If the GOTO(UNSET) parameter was specified: A remote command device was not set for all journal groups.

4

If the GOTO(SET) parameter was specified: A remote command device was not set for a journal group.

If the GOTO(UNSET) parameter was specified: A remote command device was set for a journal group.

8

There is a journal group for which the LDEV ID of the registered remote command device is different from the LDEV ID in the copy group definition.

12

An error occurred during processing to register or delete a remote command device for a journal group.

32

  • One or more I/O error was encountered.

  • A change in an I/O configuration definition was detected.

40

An error occurred while a REXX variable was being written.

44

Termination due to processing errors.

48

  • Termination due to invalid parameters.

  • A remote command device definition did not exist.

  • The copy type was ShadowImage.

128

The command terminated abnormally. Alternatively, the user does not have permission to execute this command.

For details about return codes set by the BCM Web API server, see Return codes set by the BCM Web API server.