SMC_CHK(8)

NAME
smc_chk - SMC support diagnostics

SYNOPSIS
smc_chk [OPTIONS] -C IP
smc_chk [OPTIONS] -S
smc_chk -i INTERFACE

DESCRIPTION
Use -C/--connect to obtain diagnostic information about the SMC support of a service that runs at a given IP address. Otherwise, you can use -S/--server to start a server before connecting with -C. Use -i/--pnetid to print the PNET ID of a specified INTERFACE.

OPTIONS

-C, --connect IP
    Test SMC-D and SMC-R connectivity to IP. Use option -p/--port to specify a PORT. IP can specify any service, including remote services. By default, IP is assumed to be in IPv4 format. Specify -6/--IPv6 if IP is an address in IPv6 format.

-d, --debug
    Show debug messages.

-h, --help
    Display a brief smc_chk usage information.

-i, --pnetid INTERFACE
    Print the PNET ID of interface INTERFACE and exit.

-p, --port PORT
    Use port PORT for any live tests. When starting a server via -S, --server, and if PORT is already in use, the next free port is used.

-S, --server
    Start a server for manual tests. Use option -p/--port to specify a port.

-v, --version
    Display version information.

-6, --ipv6
    IP address provided is in IPv6 format.

Examples

  Check whether a z/OS instance running at 192.168.37.1 is enabled for SMC using the 3270 console service running on port 23
smc_chk -C 192.168.37.1 -p 23

  Print PNET ID of interface eth0
smc_chk -i eth0

  Start server on port 45901 (or the next successive free port) for smc_chk -C to connect to
smc_chk -S -p 45901

RETURN CODES
On success, smc_chk returns 0. If an error occurs, a return code other than 0 is returned.

SEE ALSO
af_smc(7), smc_pnet(8), smc_run(8), smcd(8), smcr(8), smcss(8)