logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

devlink-health - devlink health reporting and recovery

Author

       Aya Levin <ayal@mellanox.com>

iproute2                                           20 Feb 2019                                 DEVLINK-HEALTH(8)

Description

devlinkhealthshow-Showstatusandconfigurationonallsupportedreporters.
       Displays info about reporters registered on devlink devices and ports.

       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.

   devlinkhealthrecover-Initiatearecoveryoperationonareporter.
       This action performs a recovery and increases the recoveries counter on success.

       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.

   devlinkhealthdiagnose-Retrievediagnosticsdataonareporter.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.

   devlinkhealthtest-Triggeratesteventonareporter.DEV - specifies the devlink device.

       REPORTER - specifies the reporter's name registered on the devlink device.

   devlinkhealthdumpshow-Displaythelastsaveddump.
       devlink health saves a single dump per reporter. If an dump is
       not already stored by the Devlink, this command will generate a new
       dump. The dump can be generated either automatically when a
       reporter reports on an error or manually at the user's request.

       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.

   devlinkhealthdumpclear-Deletethesaveddump.
       Deleting the saved dump enables a generation of a new dump on
       the next "devlink health dump show" command.

       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.

   devlinkhealthset-Configurehealthreporter.
       Please note that some params are not supported on a reporter which doesn't support a recovery or dump
       method.

       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_periodMSEC
              Time interval between consecutive auto recoveries.

       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.

Name

       devlink-health - devlink health reporting and recovery

See Also

devlink(8), devlink-dev(8), devlink-port(8), devlink-param(8), devlink-region(8),

Synopsis

devlink [ OPTIONS ] health  { COMMAND | help }

       OPTIONS := { -V[ersion] }

       devlinkhealthshow [ { DEV | DEV/PORT_INDEX } reporterREPORTER ]

       devlinkhealthrecover { DEV | DEV/PORT_INDEX } reporterREPORTERdevlinkhealthdiagnose { DEV | DEV/PORT_INDEX } reporterREPORTERdevlinkhealthdumpshow { DEV | DEV/PORT_INDEX } reporterREPORTERdevlinkhealthtest { DEV | DEV/PORT_INDEX } reporterREPORTERdevlinkhealthdumpclear { DEV | DEV/PORT_INDEX } reporterREPORTERdevlinkhealthset { DEV | DEV/PORT_INDEX } reporterREPORTER [ grace_periodMSEC ] [ auto_recover { true
               | false } ] [ auto_dump { true | false } ]

       devlinkhealthhelp

See Also