upsert#

dpsctl device upsert Usage Guide#

Insert or update device specifications. If there are no devices with the given type and model, that device will be inserted. If a device exists with the given type and model, the device will be updated.

Usage#

dpsctl device upsert <file> [file ...]

Flags#

Includes global dpsctl options.

   --help, -h          show help

Examples#

Basic Usage#

$ dpsctl device upsert devices.yaml
{
  "status": {
    "diag_msg": "Success",
    "ok": true
  }
}

Upsert Multiple Files#

$ dpsctl device upsert gpu-devices.yaml system-devices.yaml
{
  "status": {
    "diag_msg": "Success",
    "ok": true
  }
}

Notes#

  • At least one YAML device specification file is required.