DEVLINK-HEALTH(8)
๐ DEVLINK-HEALTH(8) ๐
okay bestie, pull up a chair ๐ซถ this is the devlink-health page from section 8 of the Linux manual โ it's all about devlink health reporting and recovery, and it's genuinely one of the most useful things in the whole devlink family. iykyk. โจ
๐ธ NAME ๐ธ
devlink-health โ devlink health reporting and recovery ๐
๐ SYNOPSIS ๐
devlink [ OPTIONS ] health { COMMAND | help }
OPTIONS := { -V[ersion] }
devlink health show [ { DEV | DEV/PORT_INDEX } reporter REPORTER ]
devlink health recover { DEV | DEV/PORT_INDEX } reporter REPORTER
devlink health diagnose { DEV | DEV/PORT_INDEX } reporter REPORTER
devlink health dump show { DEV | DEV/PORT_INDEX } reporter REPORTER
devlink health test { DEV | DEV/PORT_INDEX } reporter REPORTER
devlink health dump clear { DEV | DEV/PORT_INDEX } reporter REPORTER
devlink health set { DEV | DEV/PORT_INDEX } reporter REPORTER [
grace_period MSEC ] [ burst_period MSEC ] [ auto_recover { true
| false } ] [ auto_dump { true | false } ]
devlink health help
so basically: you get the devlink command, you can hand it some OPTIONS, and those options are literally just -V[ersion] โ that's the whole menu, no cap. then you say health and pick a COMMAND, or you just ask for help. ๐
โจ DESCRIPTION โจ
๐ devlink health show โ Show status and configuration on all supported reporters.
shows you the info about all the reporters registered on your devlink devices and ports. it's giving overview, and we love that. ๐
DEVโ specifies the devlink device.DEV/PORT_INDEXโ specifies the devlink port.REPORTERโ specifies the reporter's name registered on specified devlink device or port.
๐ฉน devlink health recover โ Initiate a recovery operation on a reporter.
this kicks off a recovery. if it goes through, the recoveries counter goes up โ success behavior, periodt. ๐ช
DEVโ specifies the devlink device.DEV/PORT_INDEXโ specifies the devlink port.REPORTERโ specifies the reporter's name registered on specified devlink device or port.
๐ devlink health diagnose โ Retrieve diagnostics data on a reporter.
pulls the diagnostics data for you. like a lil checkup for your reporter. ๐ฉบ
DEVโ specifies the devlink device.DEV/PORT_INDEXโ specifies the devlink port.REPORTERโ specifies the reporter's name registered on specified devlink device or port.
๐งช devlink health test โ Trigger a test event on a reporter.
makes a test event happen on purpose. yes, on purpose. it's a whole vibe. ๐ฅ
DEVโ specifies the devlink device.REPORTERโ specifies the reporter's name registered on the devlink device.
heads up bestie: fortest, the description only listsDEVโ noDEV/PORT_INDEXhere, even though the synopsis shows the braced form. i'm just telling you what the page says. ๐
๐๏ธ devlink health dump show โ Display the last saved dump.
devlink health saves a single dump per reporter. if a dump is not already stored by the Devlink, this command will generate a new dump. and that dump can be generated either automatically when a reporter reports on an error, or manually at the user's request. so likeโฆ it's always got your back. ๐
DEVโ specifies the devlink device.DEV/PORT_INDEXโ specifies the devlink port.REPORTERโ specifies the reporter's name registered on specified devlink device or port.
๐งน devlink health dump clear โ Delete the saved dump.
deleting the saved dump enables a generation of a new dump on the next "devlink health dump show" command. out with the old, in with the fresh dump. slay. โจ
DEVโ specifies the devlink device.DEV/PORT_INDEXโ specifies the devlink port.REPORTERโ specifies the reporter's name registered on specified devlink device or port.
โ๏ธ devlink health set โ Configure health reporter.
please note that some params are not supported on a reporter which doesn't support a recovery or dump method. so if your reporter is built different, some knobs just won't do anything. ๐ญ
DEVโ specifies the devlink device.DEV/PORT_INDEXโ specifies the devlink port.REPORTERโ specifies the reporter's name registered on specified devlink device or port.
๐ grace_period MSEC
time interval between consecutive auto recoveries.
๐ฅ burst_period MSEC
time window for error recoveries before starting the grace period. configuring burst_period is invalid when the grace period is disabled. so don't do that, fr fr. ๐
๐ auto_recover { true | false }
indicates whether the devlink should execute automatic recover on error.
๐ธ auto_dump { true | false }
indicates whether the devlink should execute automatic dump on error.
๐ EXAMPLES ๐
๐ devlink health show
list status and configuration of available reporters on devices and ports.
๐ devlink health show pci/0000:00:09.0/1 reporter tx
list status and configuration of tx reporter registered on port on pci/0000:00:09.0/1
๐
devlink health recover pci/0000:00:09.0 reporter fw_fatal
initiate recovery on fw_fatal reporter registered on device on pci/0000:00:09.0.
๐
devlink health recover pci/0000:00:09.0/1 reporter tx
initiate recovery on tx reporter registered on port on pci/0000:00:09.0/1.
๐ devlink health diagnose pci/0000:00:09.0 reporter fw
list diagnostics data on the specified device and reporter.
๐ฆ devlink health dump show pci/0000:00:09.0/1 reporter tx
display the last saved dump on the specified port and reporter.
๐งฝ devlink health dump clear pci/0000:00:09.0/1 reporter tx
delete saved dump on the specified port and reporter.
โฑ๏ธ devlink health set pci/0000:00:09.0 reporter fw_fatal grace_period 3500
set time interval between auto recoveries to minimum of 3500 msec on the specified device and reporter.
โฑ๏ธ devlink health set pci/0000:00:09.0/1 reporter tx grace_period 3500
set time interval between auto recoveries to minimum of 3500 msec on the specified port and reporter.
๐ devlink health set pci/0000:00:09.0 reporter fw_fatal auto_recover false
turn off auto recovery on the specified device and reporter.
๐ฅ devlink health set pci/0000:00:09.0 reporter tx burst_period 5000
set the burst period to 5000 milliseconds on the specified device and reporter, prior to initiating the grace period.
๐ซ devlink health set pci/0000:00:09.0 reporter tx grace_period 0
disable grace period on the specified device and reporter. disabling the grace period also deactivates the burst period. (two-for-one, iconic honestly.)
๐ฆ SEE ALSO ๐ฆ
devlink(8), devlink-dev(8), devlink-port(8), devlink-param(8), devlink-region(8),
๐ AUTHOR ๐
Aya Levin <ayal@mellanox.com>
okay and the lil sign-off at the bottom of the page โ that's the iproute2 crew, dated 20 Feb 2019. go forth and diagnose, bestie, you got this ๐๐ธ๐
๐ฆ where this page comes from
- alpine 3.24: iproute2-doc 7.0.0-r0 ยท GPL-2.0-or-later
- arch rolling: iproute2 7.2.0-1
- arch rolling: iproute2 7.3.0-1 ยท GPL-2.0-or-later
- centos-stream 10: iproute 7.0.0-2.el10 ยท GPL-2.0-or-later AND NIST-PD
- nixos 26.05: iproute2 7.0.0
- nixpkgs unstable: iproute2 7.2.0
- ubuntu resolute: iproute2 6.19.0-1ubuntu1 ยท GPL-2.0-only
- ubuntu resolute: iproute2 6.19.0-1ubuntu1.1 ยท GPL-2.0-only
- ubuntu stonking: iproute2 7.2.0-1ubuntu1 ยท GPL-2.0-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms