qmi.tools.qmi_tool

Swiss army knife for QMI command line monitoring and control.

Run with qmi_tool ls or qmi_tool lsqmi to list all QMI contexts present on the network with the default workgroup name (“default”). To see other contexts in other workgroups, use: qmi_tool ls <workgroup-name>. You can also give timeout: qmi_tool ls <workgroup-name> 10.

You can also use this tool to kill all visible QMI contexts with the default workgroup name with: qmi_tool hard-kill. Use with care and never use without first checking which contexts will be killed, with qmi_tool ls.

Functions

hard_kill()

Broadcast a hard-kill request.

lsqmi([workgroup_name, timeout])

List all QMI contexts on the network.

run()

qmi.tools.qmi_tool.lsqmi(workgroup_name: str = 'default', timeout: float = 0.1) None

List all QMI contexts on the network.

Parameters:
  • workgroup_name – The name of the workgroup to be searched for. Default is the CfgQmi.workgroup default.

  • timeout – Timeout to wait for answers (default: 0.1).

qmi.tools.qmi_tool.hard_kill() None

Broadcast a hard-kill request.