z/OS UNIX REXEC trace example and explanation

The z/OS UNIX REXEC can be invoked using either rexec or orexec. Enter one of the following commands with either an IP address or a host name.
  • IPv4
        orexec -d -l debfox -p mypwd -s 1512 197.22.190.1 ls -al
  • IPv6
        orexec -d -l debfox -p mypwd -s 1512 fec0:0:0:12BE::1 ls -al
The following are examples of the trace output:
  • IPv4
    EZYRC02I Host: 197.22.190.1, user debfox, cmd ls -al, port 1512
  • IPv6
    EZYRC02I Host: fec0:0:0:12BE::1, user debfox, cmd ls -al, port 1512
     EZYRC01I  Calling function rexec_af with the following:
     EZYRC02I  Host: fec0:0:0:12BE::1, user debfox, cmd ls -al, port 1512
     EZYRC19I Data socket = 4, Control socket = 6.

EZYRC01I shows that the z/OS UNIX REXEC function has been called in the runtime libraries. EZYRC02I shows the parameters that have been passed to the REXEC() function in the runtime library. EZYRC191 shows the socket descriptor being used for the data connection and the control (or standard error) connection.