Skip to content

mdsp oe-devices Command

Syntax:

mdsp oe-devices

Help:

mdsp oe-devices --help

Alternative form:

mc oe-devices

(The CLI was using mc as default command name in older versions)

Description

list, create or delete (open edge) devices *

Usage

Parameter list:

Usage: mdsp oe-devices|oed [options]

list, create or delete (open edge) devices *

Options:
 -m, --mode [list|create|delete|template|info] list | create | delete | template | info (default: "list")
 -f, --file .mdsp.json file with device definition
 -n, --devicename device name
 -a, --assetid the id of the asset linked to the device
 -t, --typeid the device type id
 -d, --desc description (default: "created with Insights Hub CLI")
 -s, --serialnumber the id of the asset linked to the device
 -i, --id the device id
 -o, --overwrite overwrite template file if it already exists
 -k, --passkey passkey
 -y, --retry retry attempts before giving up (default: "3")
 -v, --verbose verbose output
 -h, --help display help for command

Examples

Here are some examples of how to use the mdsp oe-devices command:

 Examples:

 mdsp oe-devices --mode list --assetid list all devices linked to the asset
 mdsp oe-devices --mode info --id get device details
 mdsp oe-devices --mode template create a template file for a new device
 mdsp oe-devices --mode delete --id delete the device with the specified id
 mdsp oe-devices --mode create --file openedge.device.mdsp.json 
 create new device using the file openedge.device.mdsp.json

See Insights Hub API documentation for more information about Insights Hub APIs.