SMC_CHK(8)

πŸ“¦ version 1.8.8, in opensuse-leap 16.0

πŸ’– NAME πŸ’–

smc_chk β€” SMC support diagnostics. (Yup bestie, you're on the SMC_CHK(8) page from the Linux Programmer's Manual, and we're about to make diagnostics make sense. πŸ’…βœ¨)


✨ SYNOPSIS ✨

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

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the whole vibe: 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. That's the main-character flow. πŸ’–


πŸŽ€ 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. An appended asterisk * indicates that the PNET ID was defined via smc_pnet. πŸ’…
  • -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)


πŸ’– That's it, bestie! This page is from smc-tools, January 2021 β€” SMC_CHK(8) energy all the way. Go diagnose something iconic. 🫢✨

πŸ“¦ where this page comes from