OS Manuals

/usr/bin/lsmdev

A mediated device management utility for Linux

From mdevctl 1.4.0-r8 (enterprise-packages), captured 2026-11-08 by running lsmdev --help (exit 0). permalink

List mediated devices

With no options, information about the currently running mediated devices is provided. Specifying
'defined' lists the configuration of defined devices, regardless of their running state. This may be
further reduced by specifying specific 'uuid' or 'parent' devices to list. The 'dumpjson' option
provides output listing in machine readable JSON format. When a 'uuid' option is provided and the
result is a single device, the output contains only the JSON fields necessary to recreate a config
file for the device (minus attributes for listings of running devices). When the verbose option is
provided, the human readable listing will include attributes for the device(s).

Usage: lsmdev [OPTIONS]

Options:
  -d, --defined
          Show defined devices

      --dumpjson
          Output device list in json format

  -v, --verbose
          Print additional information about the devices

  -u, --uuid <UUID>
          List devices matching the specified UUID

  -p, --parent <PARENT>
          List devices associated with the specified Parent device

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version
Options (11)
OptionDescriptionSource
-d, --definedShow defined deviceshelp
--dumpjsonDump the configuration for a device in JSON format when filtered to as single device and used with the list command.help + man
-v, --verbosePrint additional information about the deviceshelp
-u, --uuid UUIDList devices matching the specified UUIDhelp
-p, --parent PARENTList devices associated with the specified Parent devicehelp
-h, --helpPrint help (see a summary with '-h')help
-V, --versionPrint versionhelp
--addattr ATTRIBUTEAdd an attribute ATTRIBUTE. (in the manual page but not in --help)man
--delattrDelete an attribute entry. (in the manual page but not in --help)man
--jsonfile FILERead the configuration for a device from a JSON file FILE. (in the manual page but not in --help)man
--value VALUESet an attribute to VALUE, in the format accepted by the attribute. (in the manual page but not in --help)man
Examples (12) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.