Skip to content

device

Device management commands for NDCLI. These commands allow you to list, approve, rename, and remove firewall devices in your organization.

Commands

CommandDescription
device listList devices
device describeShow device details
device approveApprove a pending device
device approve-allApprove all pending devices
device renameRename a device
device removeRemove a device

device list

List devices in your organization with optional filtering and sorting.

Terminal window
ndcli device list [flags]

Flags

FlagTypeDefaultDescription
--namestringFilter by name (regex pattern)
--statusstringFilter by status: PENDING, ENABLED, DISABLED
--oustringFilter by organizational unit
--created-afterstringFilter by created date
--created-beforestringFilter by created date
--heartbeat-afterstringFilter by last heartbeat
--heartbeat-beforestringFilter by last heartbeat
--synced-afterstringFilter by last sync
--synced-beforestringFilter by last sync
--sort-bystringname:ascSort field and direction
--pageint1Page number
--per-pageint30Items per page

Date Filter Formats

Date filters accept two formats:

  1. Relative: 30m, 2h, 7d, 2w (minutes, hours, days, weeks ago)
  2. ISO 8601: 2024-01-15T10:30:00Z

Sort Fields

Available sort fields: name, status, created_at, heartbeat, synced_at

Direction: asc or desc (e.g., name:asc, created_at:desc)

Examples

Terminal window
ndcli device list
ndcli device list --status PENDING
ndcli device list --ou production
ndcli device list --heartbeat-before 7d
ndcli device list --created-after 24h
ndcli device list --name "fw-.*-prod"
ndcli device list --sort-by heartbeat:desc
ndcli device list --page 2 --per-page 50

device describe

Show detailed information about a specific device.

Terminal window
ndcli device describe [device]

Arguments

ArgumentRequiredDescription
deviceYesDevice name

Output

Shows comprehensive device information:

  • Device name and UUID
  • Status (PENDING, ENABLED, DISABLED)
  • Organizational unit assignment
  • Last heartbeat timestamp
  • Last sync timestamp
  • Creation date
  • Hardware/software details

Examples

Terminal window
ndcli device describe my-firewall
ndcli device describe my-firewall -f json

device approve

Approve a pending device, allowing it to receive configurations and participate in the organization.

Terminal window
ndcli device approve [device]

Arguments

ArgumentRequiredDescription
deviceYesDevice name to approve

Examples

Terminal window
ndcli device approve new-firewall

Notes

  • Only devices with PENDING status can be approved
  • After approval, the device status changes to ENABLED
  • Approved devices can receive configuration syncs

device approve-all

Approve all pending devices in the organization at once.

Terminal window
ndcli device approve-all

Examples

Terminal window
ndcli device approve-all

device rename

Rename a device.

Terminal window
ndcli device rename [device] [new-name]

Arguments

ArgumentRequiredDescription
deviceYesCurrent device name
new-nameYesNew name for the device

Examples

Terminal window
ndcli device rename old-name new-name

Notes

  • Device names must be unique within the organization
  • The rename takes effect immediately
  • The device UUID remains unchanged

device remove

Remove a device from the organization.

Terminal window
ndcli device remove [device]

Arguments

ArgumentRequiredDescription
deviceYesDevice name to remove

Examples

Terminal window
ndcli device remove decommissioned-firewall