udevadm

From RaySoft

udevadm expects a command and command specific options. It controls the runtime behavior of udev, requests kernel events, manages the event queue, and provides simple debugging mechanisms.[1]

Documentation

Syntax

udevadm SUBCOMMAND [PARAMETER ...]

Subcommands & Parameters

info
Queries the udev database for device information stored in the udev database. It can also query the properties of a device from its Sysfs representation to help creating udev rules that match this device.
--attribute-walk
Print all Sysfs properties of the specified device that can be used in udev rules to match the specified device. It prints all devices along the chain, up to the root of Sysfs that can be used in udev rules.
--path=PATH
The PATH of the device to query.
monitor
Listens to the kernel uevents and events sent out by a udev rule and prints the devpath of the event to the console. It can be used to analyze the event timing, by comparing the timestamps of the kernel uevent and the udev event.
test
Simulate a udev event run for the given device, and print out debug output. Unless forced to, no device node or symlink will be created.

Examples

Show information about a device
udevadm info --attribute-walk --path='/dev/sdb/sdb1'

References

  1. man 8 'udevadm'