ZNETCONF(8)
๐ znetconf ๐
okay bestie, welcome to the System Managerโs Manual entry for znetconf, aka the command that lists and configures network devices for System z network adapters. no cap, this one is a whole journey, so hydrate first. ๐
โจ
๐ธ NAME ๐ธ
znetconf โ list and configure network devices for System z network adapters. periodt. ๐
โจ SYNOPSIS โจ
znetconf [-h|--help] [-v|--version]
znetconf -u | -c
znetconf -a <device_bus_id>[,...]{2} [-o <ATTR>=<VALUE>]+ [-d <DRIVER>]
znetconf -A [-o <ATTR>=<VALUE>]+ [-d <DRIVER>] [-e <device_bus_id>]+
znetconf -r <device_bus_id> [-n] | -R [-n] [-e <device_bus_id>]+
๐ DESCRIPTION ๐
The znetconf command lists and automatically configures network devices for System z network adapters. It senses and lists potential network devices that are not yet configured or already configured. Based on these lists, it automatically adds or removes network devices. itโs giving admin-girlie main character energy. ๐
For automatic configuration, znetconf builds a channel command word (CCW) group device from sensed CCW devices, configures any specified option through the sensed network device driver, and sets the new network device online. โจ
During automatic removal, znetconf sets the device offline and removes it. Be aware that removing all network devices leads to the complete loss of network connectivity. So a terminal session (e.g. 3270) might be required to restore. ๐ญ๐ซถ
๐ OPTIONS ๐
-h|--helpโ Print help text. the โbestie explainโ button. ๐ซถ-v|--versionโ Print the version of thes390-toolspackage and theznetconfcommand. receipts, but make it software. ๐งพ-u|--unconfiguredโ List potential network devices that are not yet configured. For each device, the following data is provided: the whole lineup, no gatekeeping. ๐- Device IDs (device bus-IDs) of the CCW devices constituting the network device
- Type of control unit (e.g.
1731/01) - Network card type (e.g.
OSA (QDIO)) - Channel path identifier (CHPID)
- Device driver (
qeth,lcs,ctc,ctcm)
-c|--configuredโ List configured network devices. For each device, the following data is provided: the โalready made itโ list. ๐ฟ- Device IDs (device bus-IDs) of the CCW devices constituting the network device
- Control unit type (e.g.
1731/01) - Card type (e.g.
GuestLAN QDIO) - Channel path identifier (CHPID)
- Driver (
qeth,lcs,ctc,ctcm) - Network interface name (if available)
- State (online vs. offline)
-a|--add<device_bus_id>[,<device_bus_id>)][,<device_bus_id>][-o | --option <ATTR>=<VALUE>]+[-d | --driver <DRIVER>]โ Add the potential network device identified bydevice_bus_id. this is the glow-up button for one device. ๐
device_bus_id can be any of the device IDs listed as part of the potential network device list (argument -u). For example, if znetconf -u lists 0.0.f503,0.0.f504,0.0.f505 for a potential network device, device_bus_id may be 0.0.f503 or 0.0.f504 or 0.0.f505. If a device bus-ID begins with 0.0., you can abbreviate it to the final hexadecimal digits. For example, you can abbreviate 0.0.f503 to f503.
If attribute value pairs are given with -o, these pairs are configured for the created network device. The device is then set online regardless of whether the given attribute value pairs were applied successfully. yes, it commits first and asks questions later. ๐ญ
Finally, the corresponding network interface name (e.g. eth1) is displayed.
If more than one device_bus_id is given, the given set of devices is configured as a network device. znetconf tries to sense the required device driver automatically. If the device driver cannot be sensed, you must specify it with -d. -d. With -d, znetconf does NOT check the validity of the combination of device bus-IDs. so bestie, pls be careful with that combo. ๐
-A|--addall[-o | --option <ATTR>=<VALUE>]+[-d | --driver DRIVER][-e | --except <device_bus_id>]+โ Add all potential network devices. the โadd everybodyโ button, no cap. ๐
If one or more device_bus_id are specified with -e, the corresponding network devices are not added. Attribute value pairs given with -o are configured for the network devices before they are set online. If the configuration of one potential network device fails, znetconf continues with the next remaining potential network device. resilient queen behavior. ๐
-r|--remove<device_bus_id>[-n | --non-interactive]โ Remove the network device identified bydevice_bus_id.device_bus_idis one of the device IDs of the network device. They are listed as part ofznetconf -c.znetconfsets the device offline and removes it. If-nis given, all confirmation questions are answered with'yes'. no extra clicking, just vibes. ๐-R|--removall[-n | --non-interactive][-e | --except <device_bus_id>]+โ Remove all network devices. If-nis given, all confirmation questions are answered with'yes'. To exclude certain devices from the removal, their device bus-IDs have to be given with-e. removing everything = possible network blackout, so this is highkey dramatic. ๐<ATTR>โ Specify a device option. The option must match a sysfs attribute for the device to be configured. For a detailed description of the semantics of sysfs attributes please refer to the Device Drivers, Features, and Commands book for Linux on System z. The attributes are: the sacred little sysfs list. ๐qethbroadcast_modebuffer_countcanonical_macaddrchecksummingfake_broadcastipa_takeover/add4ipa_takeover/add6ipa_takeover/del4ipa_takeover/del6ipa_takeover/enableipa_takeover/invert4ipa_takeover/invert6isolationlarge_sendlayer2performance_statsportnameportnopriority_queueingroute4route6rxip/add4rxip/add6rxip/del4rxip/del6vipa/add4vipa/add6vipa/del4vipa/delsniffer
ctc(m)bufferloglevelprotocolstats
lcsportnolancmd_timeout
๐จ NOTE: forqeth, some attributes are specific to layer 2 or layer 3 mode of operation. The option"layer2=[0|1]"must be specified before such attributes in the command line, thus it is recommended to always specify it first. put it first, bestie, like a good outfit foundation. ๐
<device_bus_id>โ Specify the device bus-ID of a CCW device. Device bus-IDs have the form([A-Fa-f0-9].[A-Fa-f0-9].)[A-Fa-f0-9]{4}. the lore. ๐ฆ
If a device bus-ID begins with 0.0., you can abbreviate it to the final hexadecimal digits.
For example, you can abbreviate 0.0.f503 to f503.
<DRIVER>โ Specify the device driver for the device. Valid values areqeth,lcs,ctc, orctcm. choose your fighter. ๐ฎ
๐ EXAMPLES ๐
๐ znetconf -A
Configures all potential network devices. To display a list of all potential network devices enter znetconf -u. After running znetconf -A enter znetconf -c to see which devices have been configured successfully. You can also enter znetconf -u to display devices that have not been configured successfully. Successfully configured devices are no longer listed with znetconf -u. glow-up everybody, then check the receipts. ๐
๐ znetconf -A -e f500
Configures all potential network devices except the one with the device bus-ID 0.0.f500. To display a list of all potential network devices enter znetconf -u. After running znetconf -A -e f500 enter znetconf -c to see which devices have been configured successfully. You can also enter znetconf -u to display devices that have not been configured successfully. Successfully configured devices are no longer listed with znetconf -u. everybody except f500, bestie requested exclusion. ๐
๐ znetconf -R
Removes all configured network devices. After successfully running this command, all devices listed by znetconf -c become potential devices listed by -u. full reset, no crumbs. ๐
๐ znetconf -R -e f501
Removes all configured network devices except the one having the device bus-ID 0.0.f501. After successfully running this command, all devices listed by znetconf -c except the one having the device bus-ID 0.0.f501 become potential devices listed by -u. everybody gets removed except the chosen one, iykyk. ๐
๐ znetconf -u
Shows the list of potential network devices. Example output: table time, but make it terminal. ๐ซถ
Device IDs Type Card Type CHPID Drv.
--------------------------------------------------------
0.0.f500,0.0.f501,0.0.f502 1731/01 OSA (QDIO) 00 qeth
0.0.f503,0.0.f504,0.0.f505 1731/01 OSA (QDIO) 01 qeth
๐ znetconf -a 0.0.f503
Adds the potential network device with 0.0.f503 as one of its device bus-IDs. After successfully running this command, znetconf -c lists the new network device. one device got the callback. โจ
๐ znetconf -a f503
This command is equivalent to znetconf -a 0.0.f503. same energy, shorter outfit. ๐
๐ znetconf -a f503 -o layer2=0 -o portname=myname
Adds the potential network device with 0.0.f503 as one of its device bus-IDs and configures the options layer2 with value 0 and portname with myname. customized, personalized, slayed. ๐
๐ znetconf -c
Shows a list of configured network devices. Example output: the โwho made itโ list. ๐
Device IDs Type Card Type CHPID Drv. Name
State
-----------------------------------------------------------------------
0.0.f503,0.0.f504,0.0.f505 1731/01 GuestLAN QDIO 01 qeth eth1
online
0.0.f5f0,0.0.f5f1,0.0.f5f2 1731/01 OSD_1000 76 qeth eth0
online
๐ znetconf -r 0.0.f503
Removes the network device with 0.0.f503 as one of its device bus-IDs. You can only remove configured devices as listed by znetconf -c. After successfully running this command the corresponding device appears in the list of potential network devices as listed by znetconf -u. bye-bye configured era, hello potential era. ๐
๐ znetconf -r f503
This command is equivalent to znetconf -r 0.0.f503. again: same thing, shorter fit. ๐ฆ
โจ DIAGNOSTICS โจ
Okay so vibe check on how znetconf tells you how it's doing ๐ โ if it runs successfully, the exit status is 0. And if things go sideways, the following codes get returned:
0โ success ๐ literally the dream, we ate9โ could not group devices10โ could not set device online11โ could not set device offline12โ invalid attribute value pair13โ missing component (broken installation) ๐ yeah that's a broken install, not your fault bestie15โ invalid device ID format17โ unknown driver19โ invalid argument20โ too much arguments21โ no configuration found for device ID22โ device is not configured23โ could not ungroup device24โ at least one option could not be configured25โ missing value for attribute26โ device does not exist27โ device already in use28โ net device did not come online29โ some devices could not be added or failed30โ syntax error on command line31โ ccwgroup devices do not exist99โ internalznetconfbug ๐ like, not your problem, that's on us
So yeah โ when something's off, the number it spits out is basically the receipt ๐งพ check it, it tells you exactly what went wrong.
๐ AUTHOR ๐
This man-page was written by Einar Lueck <elelueck@de.ibm.com>. Obsessed with the dedication honestly ๐ซถ โ writing the docs is main character energy fr fr.
And that's the whole page bestie, you made it to the end ๐๐ This one comes courtesy of s390-tools, dated Mar 2009 โ iconic, vintage, still slaying. Go forth and configure those devices responsibly ๐ โจ
๐ฆ where this page comes from
- opensuse-leap 16.0: s390-tools 2.44.1-160000.1.1 ยท MIT
- Copyright 2017 IBM Corp
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms