ZNETCONF(8)

๐Ÿ“ฆ version 2.44.1, in opensuse-leap 16.0

๐Ÿ’– 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 the s390-tools package and the znetconf command. 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 by device_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 by device_bus_id. device_bus_id is one of the device IDs of the network device. They are listed as part of znetconf -c. znetconf sets the device offline and removes it. If -n is 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 -n is 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. ๐Ÿ“š
    • qeth
      • broadcast_mode
      • buffer_count
      • canonical_macaddr
      • checksumming
      • fake_broadcast
      • ipa_takeover/add4
      • ipa_takeover/add6
      • ipa_takeover/del4
      • ipa_takeover/del6
      • ipa_takeover/enable
      • ipa_takeover/invert4
      • ipa_takeover/invert6
      • isolation
      • large_send
      • layer2
      • performance_stats
      • portname
      • portno
      • priority_queueing
      • route4
      • route6
      • rxip/add4
      • rxip/add6
      • rxip/del4
      • rxip/del6
      • vipa/add4
      • vipa/add6
      • vipa/del4
      • vipa/del
      • sniffer
    • ctc(m)
      • buffer
      • loglevel
      • protocol
      • stats
    • lcs
      • portno
      • lancmd_timeout
๐Ÿšจ NOTE: for qeth, 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 are qeth, lcs, ctc, or ctcm. 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 ate
  • 9 โ€” could not group devices
  • 10 โ€” could not set device online
  • 11 โ€” could not set device offline
  • 12 โ€” invalid attribute value pair
  • 13 โ€” missing component (broken installation) ๐Ÿ’€ yeah that's a broken install, not your fault bestie
  • 15 โ€” invalid device ID format
  • 17 โ€” unknown driver
  • 19 โ€” invalid argument
  • 20 โ€” too much arguments
  • 21 โ€” no configuration found for device ID
  • 22 โ€” device is not configured
  • 23 โ€” could not ungroup device
  • 24 โ€” at least one option could not be configured
  • 25 โ€” missing value for attribute
  • 26 โ€” device does not exist
  • 27 โ€” device already in use
  • 28 โ€” net device did not come online
  • 29 โ€” some devices could not be added or failed
  • 30 โ€” syntax error on command line
  • 31 โ€” ccwgroup devices do not exist
  • 99 โ€” internal znetconf bug ๐Ÿ™ˆ 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