lszdev(8)
π lszdev(8) π
okay so bestie, welcome to lszdev β that's the manual name, section 8, z Systems device tea ββ¨. Buckle up, because this page has a lot of options and we're getting through every single one of them. No skimming, no cap π«Ά
β¨ NAME β¨
lszdev β displays the configuration of z Systems specific devices π
πΈ SYNOPSIS πΈ
lszdev [ TYPE DEVICE SELECTION ACTIONS OPTIONS ]
π DESCRIPTION π
lszdev shows you the configuration of devices and device drivers that are specific to IBM z Systems. The device types it supports include storage devices (DASD and zFCP) and networking devices (QETH and CTC). Literally the whole z Systems device friend group π
lszdev can spit out output in either list format or detailed format. And if you don't specify any further options, it just defaults to list format. Low-effort queen behavior, we love her π
π Configurations π
There are three sources for configuration information, bestie:
- the active configuration of the currently running system
- the persistent configuration stored in configuration files
- the auto-configuration that some machine types provide to automatically enable I/O devices
Persistent configuration data comes in two different flavors: site-specific configuration and common-configuration. Common configuration means the persistent configuration that isn't bound to any site β and in many use cases, this configuration is being used as a fallback configuration. Check out the site section below to learn more about site-specific configuration π
By default, lszdev displays info from both the active and the persistent configuration, and β if it's available β from the auto-configuration too. She's thorough π
π¦ Output Format π¦
In list format, lszdev uses values with the following meaning for the persistent columns (PERS):
yesβ a persistent, non-site specific configuration exists; no site specific configurations available.noβ no persistent configurations is available.autoβ machine-provided auto-configuration is available.s<n>β a site-specific configuration is available for site-id n.s+β site specific configurations are available for multiple sites.
π« Example π«
TYPE ID ON PERS NAMES
dasd-eckd 0.0.f001 no s+ dasda
dasd-eckd 0.0.f002 no s4 dasdb
dasd-eckd 0.0.f003 no no
qeth 0.0.1200:0.0.1201:0.0.1202 no yes encbdf0
π₯ TYPE π₯
lszdev uses device type names to tell devices apart by their respective type. A device type usually corresponds to a device driver, though there are cases where multiple device types are provided for the same driver β for example, both device types "dasd-eckd" and "dasd-fba" are related to the DASD device driver. Siblings, basically π
You can use the TYPE positional argument to restrict output to the specified device type:
- Specify a device type and optionally a device ID to only display data for devices with matching type and ID
- Specify a device type together with the
--typeoption to display the configuration of the device type itself
To get a list of supported device types, use the --list-types action π
π DEVICE π
You can use the DEVICE positional argument to select a single device or a range of devices by device ID. To select a range, specify the ID of the first and the last device in the range separated by a hyphen (-). Multiple IDs or ranges? Just separate the ID specifications with a comma (,). Easy β¨
Example: lszdev dasd 1000,2000-2010
π§ SELECTION π§
Besides picking devices by their ID, you can also select devices by their state or by the Linux functions they provide. So many ways to find your fave π
lszdev supports the following device states:
onlineβ the device is enabled and set up to provide a Linux function such as a block device like/dev/dasda, or a networking interface likeeth0.offlineβ the device is not enabled.existingβ the device is present in the active configuration.configuredβ there is a persistent configuration for this device.failedβ the driver of a device detected errors that may cause the device to not function properly.
Selection works in two stages, and yes, order matters π
- All devices specified by ID or by options
--all,--by-interface,--by-nodeor--by-pathare considered for selection. - Of the considered devices, only those matching the specified state options
--online,--offline,--existing,--configuredand--failedare selected.
π Selection options π
--allβ select all existing and configured devices. This is the default when no other options are specified. (Main character default energy π)--by-attrib KEY=VALUE/--by-attrib KEY!=VALUEβ select devices with the specified attribute value. When specified asKEY=VALUE, selects all devices that provide an attribute named KEY with a value of VALUE. When specified asKEY!=VALUE, selects all devices that don't provide an attribute named KEY with a value of VALUE. Equality check with extra steps, we stan π--by-interface NAMEβ select the device providing a network interface, e.g.eth0. The NAME parameter must be the name of an existing networking interface.--by-node NODEβ select the device providing a device node, e.g./dev/sda. The NODE parameter must be the path to a block device or character device special file.
Note: if NODE is the device node for a logical device (such as a device mapper device),lszdevwill try to resolve the corresponding physical device nodes. Thelsblk(8)tool must be available for this resolution to work. π«Ά
--by-path PATHβ select the device providing a file system path, e.g./usr. The PATH parameter can be the mount point of a mounted file system, or a path on that file system.
Note: if the file system that provides PATH is stored on multiple physical devices or on a subvolume (such as supported by btrfs),lszdevwill try to resolve the corresponding physical device nodes. Thelsblk(8)andfindmnt(8)tools must be available, and in the case of multiple physical devices the file system must provide a valid UUID for this resolution to work. π So many requirements, but she delivers.
--configuredβ select all devices for which a persistent configuration exists.--existingβ select all devices that are present in the active configuration.--onlineβ select devices that are online. An online device is a device in the active configuration that is set up to provide its associated Linux function (such as a block device or networking interface). She's up, she's functioning, she's booked and busy β¨--offlineβ select devices that are offline. An offline device is a device in the active configuration that is not set up to provide its associated Linux function. Resting, not cancelled π€--failedβ select devices for which errors were detected. A failed device is a device for which its driver detected an error condition that may cause the device to not correctly perform its function. You can use the--infooption of thelszdevtool to get more details on the detected errors. Example:lszdev --failed --infoπ--ipldevβ select IPL device. Selects the device used for the most recent IPL operation. The chosen one π
π ACTIONS π
-h,--helpβ print usage information, then exit.-i,--infoβ display detailed information. Displays detailed information about the configuration of the selected device or device type. Specifying--infotwice will display additional device information. Double it and give it to the next person π-l,--list-columnsβ list available output columns. Lists all available columns for use with option--columns.-L,--list-typesβ list supported device types. Lists the name and a short description for all device types supported bylszdev.-v,--versionβ print version information, then exit.
π to be continued, bestie β part 2 is coming π
β¨ OPTIONS β¨
Okay bestie, this is the options menu β every flag is here, no skips, no βoops I forgot oneβ energy. π
-a,--activeβ List info from the active configuration only. This restricts output to stuff from the active configuration, meaning info from the running system. π«Ά--auto-confβ List info from the auto-configuration only. This restricts output to the auto-configuration, aka the collection of configuration data that some machine models grab automatically during boot. π
Note: this data gets refreshed during each boot. Also, configuration directives in the auto-configuration only take effect if thereβs no directive for the same device in the persistent configuration. β
--base PATH|KEY=VALUEβ Change the file system paths used to access files. If you givePATHwithout an equal sign (=), it becomes the base path for accessing files in both the active and persistent configuration. If the parameter is inKEY=VALUEformat, only those paths that begin withKEYget modified β for those paths, the initialKEYportion is replaced withVALUE. π
Example: lszdev --persistent --base /etc=/mnt/etc
-c COLUMNS,--columns COLUMNSβ Specify a comma-separated list of columns to display. You can change the columns shown in list output format by giving column names as a comma-separated list via--columns. Note that--columnscannot be specified together with--info. π
Example: lszdev --columns TYPE,ID
To get a list of supported column names, use the --list-columns action.
-n,--no-headingsβ Do not print column headings. When displaying output in list format, this option suppresses the output of a heading row. π--pairsβ Produce output inKEY="VALUE"format. Use this to generate output thatβs more suitable for processing by other programs. In this format, column values are prefixed with the name of the corresponding column. Values are enclosed in double quotation marks. Any quotation marks or slashes in the value string are escaped by placing a slash in front of it. π₯--shellβ ProducesKEY="VALUE"format usable as shell variables. You can use this together with the--pairsoption to generate output suitable to be sourced in a shell environment. It generates similar output to--pairs, but it takes care of replacing any character of a column name that wouldnβt be appropriate as part of a shell variable name with an underscore. π-p,--persistentβ List info from the persistent configuration only. This restricts output to info obtained from configuration files. π-q,--quietβ Print only minimal run-time information. π€«-s SITE-ID,--site SITE-IDβ List the persistent configuration from the specified site only. The resulting persistent configuration details get filtered based on theSITE-IDvalue. Site-specific info can be found in a basiclszdevoutput. For example, thePERScolumn may show"s+", which indicates that the device has multiple configurations for multiple sites, and"sn"wherenis a number between 0 to 9, which indicates that the persistent configuration for the device is available only for siten. πΈ
Example:
lszdev --site 3
lszdev -i --site 2
lszdev f001 --site 9
-t,--typeβ List info about device type. Use this option to display configuration information of a device type instead of a device. π-V,--verboseβ Print additional run-time information. π
πΈ EXAMPLES πΈ
- Display a list of all devices:
lszdev
- Return type and ID of root device in machine-readable format:
lszdev --columns TYPE,ID --by-path /
- Display DASD driver settings:
lszdev --type dasd
- Display cryptographic (AP) adapter and domain assignments:
lszdev --type ap
π EXIT CODES π
lszdev returns a subset of the exit codes returned by the chzdev tool. See chzdev(8) for the detailed list. π
π¦ FILES π¦
/etc/udev/rules.d/βlszdevreads udev rules representing the persistent configuration of devices from this directory. File names start with"41-". π/etc/modprobe.d/βchzdevreads modprobe configuration files representing the persistent configuration of certain device types from this directory. File names start with"s390x-". β¨
π SEE ALSO π
π Thatβs the whole page, bestie! This one comes from s390-tools, dated Jan 2016, and itβs the lszdev(8) manual. Periodt. π β¨
π¦ 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