ctc_configure(8)
๐ NAME ๐
okay bestie, welcome to ctc_configure(8) โ it's a System Manager's Manual page, and its whole thing is: Configures or deconfigures a Channel-to-Channel adapter (CTC) or LAN Channel Station adapter (LCS). no cap. ๐
โจ SYNOPSIS โจ
ctc_configure read_channel write_channel online [protocol]
๐ธ DESCRIPTION ๐ธ
ctc_configure is intended to make it easy to persistently add and remove IBM CTC and LCS adapters. In addition to bringing the adapter online or offline, it will also create or delete the necessary udev rules for the adapter. it's giving "set it and forget it" energy, fr fr. โจ
๐ PARAMETERS ๐
read_channelโ The device number of the read channel of the adapter. Takes the formx.y.ssss.write_channelโ The device number of the write channel of the adapter. Takes the formx.y.ssss.
for that x.y.ssss shape, here's the little breakdown, bestie:
xis always0until IBM creates something that uses that number.yis the logical channel subsystem (lcss) number. Most often this is0, but it could be non-zero.ssssis the four digit subchannel address of the device, in hexidecimal, with leading zeros. If entered in upper/mixed case, this is automatically converted to lower case.
bestie, keep in mind that for a CTC, the read channel needs to be coupled to the write channel of the peer, and vice versa. This does not apply to LCS adapters. ๐ซถ
onlineโ Either a literal1to bring the adapter online or a literal0to take it offline.protocolโ the vibe selector, lowkey:0โ Compatibility with peers other than OS/390ยฎ, or z/OS, for example, a z/VM TCP service machine. This is the default.1โ Enhanced package checking for Linux peers.3โ For compatibility with OS/390 or z/OS peers.4โ For MPC connections to VTAM on traditional mainframe operating systems.
Not needed for LCS adapters. ๐
๐ฆ FILES ๐ฆ
/etc/udev/rules.d/51-ctcm-<ccwid>.rules/etc/udev/rules.d/51-lcs-<ccwid>.rules
These files provide the udev rules necessary to activate a specific CTC or LCS. iconic little files, honestly. ๐ฆ
๐ ENVIRONMENT ๐
DEBUGโ If set to"yes"some minimal debugging information is output during execution.
๐ฅ DIAGNOSTICS ๐ฅ
The following messages may be issued on stdout:
/sysfs not presentโ The sysfs file system could not be found in/proc/mounts, so there's nothing the script can do. Return code1is set.Invalid device status ${ONLINE}โ A value other than0or1was specified for the third parameter,online. Return code2is set.Device ${CTC_READ_CHAN} does not existโ A non-existent<ccwid>was specified for the first parameter. Remember thex.y.ssssformat is necessary. Return code3is set.Device ${CTC_READ_CHAN} does not existโ A non-existent<ccwid>was specified for the second parameter. Remember thex.y.ssssformat is necessary. Return code4is set.Not a valid CTC device (cu ${_cutype}, dev ${_devtype})โ The device number specified does not correspond to a valid CTC or LCS device type. Return code5is st.CTC type mismatch (read: ${tmp_chan}, write: ${CCW_CHAN_GROUP})โ The device number specified for the read channel has a different device type than the device number specified for the write channel. Return code6is set.Could not load module ${CCW_CHAN_GROUP}โ The kernel module for the device type failed to load. Try"dmesg"to see if there is any indication why. Return code7is set.CCW devices grouped to different devicesโ The read and write channels are already grouped, but not within the same interface. Try again with different devices. Return code8is set.Could not group ${CCW_CHAN_GROUP} devices${CTC_READ_CHAN}/${CTC_WRITE_CHAN}โ The attempt to group the read and write channels into an interface failed. Try"dmesg"to see if there is any indication why. Return code9is set.Could not set device ${CCW_CHAN_ID} onlineโ The attempt to bring the grouped devices online failed. Try"dmesg"to see if there is any indication why. Return code10is set.Could not set device ${CCW_CHAN_ID} offlineโ The attempt to take the grouped devices offline failed. Try"dmesg"to see if there is any indication why. Return code11is set.
If environment variable DEBUG is set to "yes", the following messages may be issued on stdout:
Configuring CTC/LCS device ${CTC_READ_CHAN}/${CTC_WRITE_CHAN}โ Just a little bit of verbosity, since it just indicates that we got past certain error checks and will now try to do something useful.Group is ${_ccw_groupdir}/drivers/${CCW_CHAN_GROUP}/groupโ Just a little bit of verbosity.Setting device onlineโ Just a little bit of verbosity.Device ${CCW_CHAN_ID} is already onlineโ An attempt was made to bring the adapter online when it was already online.Setting device offlineโ Just a little bit of verbosity.Device ${CCW_CHAN_ID} is already offlineโ An attempt was made to take the adapter offline when it was already offline.
๐ BUGS ๐
Gotta be some, I'm sure. If you find one, please open a bug report. ๐
and that's the whole vibe, bestie ๐ this page is from s390-tools, July 2013, and it ate. periodt. ๐ซถ
๐ฆ where this page comes from
- opensuse-leap 16.0: s390-tools 2.44.1-160000.1.1 ยท MIT
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms