Skip to main content

Device

Devices represent firewalls registered to Strata Cloud Manager. The CLI supports read and update operations on devices; it does not support create or delete. Devices enroll themselves through firewall-side registration — the CLI cannot add or remove them.

Update-only surface

scm set setup device updates existing devices. It errors if the named device does not exist. There is no scm delete setup device.

Overview​

The device commands allow you to:

  • Update device properties (display name, description, folder assignment)
  • Apply labels and snippets to devices
  • View device details and connectivity status
  • Bulk import device updates from YAML files
  • Export devices for backup or migration

Writable Fields​

FieldFlagDescription
nameNAME argumentLookup key (name or serial number). Required.
display_name--display-nameHuman-friendly display name.
folder--folderFolder to move the device into.
description--descriptionFree-text description.
labels--labelsLabels to apply. Repeatable; replaces current set.
snippets--snippetsSnippet IDs to associate. Repeatable; replaces current set.

Omitting a flag preserves the current value on the device. To clear a list field, use YAML load with an empty list.

Set Device​

Update an existing device.

Syntax​

scm set setup device NAME [OPTIONS]

Arguments​

ArgumentDescriptionRequired
NAMEDevice name or serial numberYes

Options​

OptionDescriptionRequired
--display-name TEXTHuman-friendly display nameNo
--folder TEXTFolder to move device intoNo
--description TEXTFree-text descriptionNo
--labels TEXTLabels to apply (repeatable)No
--snippets TEXTSnippet IDs to associate (repeatable)No

Examples​

Attach Labels to a Device​

$ scm set setup device PA-VM-01 --labels production --labels west
---> 100%
Updated device: PA-VM-01

Move Device into a Folder​

$ scm set setup device 0123456789 --folder Austin
---> 100%
Updated device: 0123456789

Set Multiple Fields at Once​

$ scm set setup device PA-VM-01 \
--display-name "Edge-FW" \
--description "Edge firewall" \
--labels production
---> 100%
Updated device: PA-VM-01

If the named device does not exist, the command errors with a message explaining that devices cannot be created via the CLI.

Show Device​

Display device objects.

Syntax​

scm show setup device [NAME] [OPTIONS]

Arguments​

ArgumentDescriptionRequired
NAMEName or serial number of the device to show; omit to list allNo

Options​

OptionDescriptionRequired
--folder TEXTFilter devices by folderNo
--output, -o [table|json|yaml]Output format (default: table)No
--max-results INTEGERMaximum number of results to displayNo
note

When no options are specified, all devices are listed by default.

Examples​

List All Devices (Default Behavior)​

$ scm show setup device
---> 100%
Devices (2):
--------------------------------------------------------------------------------
Name: PA-VM-01
Serial: 0123456789
Model: PA-VM
Folder: Texas
Labels: production, west
Connected: True
--------------------------------------------------------------------------------
Name: PA-VM-02
Serial: 9876543210
Model: PA-VM
Folder: Texas
Labels: staging
Connected: False
--------------------------------------------------------------------------------

Show a Single Device​

$ scm show setup device PA-VM-01
---> 100%
Device: PA-VM-01
================================================================================
Serial Number: 0123456789
Model: PA-VM
Family: vm
Hostname: PA-VM-01
Display Name: PA-VM-01 (display)
Description: Mock device PA-VM-01
Labels: production
Snippets: DNS-Best-Practice
Folder: Texas
Software Version: 11.1.0
Connected: True
Uptime: 30 days
ID: device-PA-VM-01

Show Device by Serial Number​

$ scm show setup device 0123456789
---> 100%
Device: 0123456789
================================================================================
Serial Number: 0123456789
Model: PA-VM
Family: vm
Hostname: 0123456789
Display Name: 0123456789 (display)
Description: Mock device 0123456789
Labels: production
Snippets: DNS-Best-Practice
Folder: Texas
Software Version: 11.1.0
Connected: True
Uptime: 30 days
ID: device-0123456789

Filter Devices by Folder​

$ scm show setup device --folder Texas
---> 100%
Devices (2):
--------------------------------------------------------------------------------
Name: PA-VM-01
Serial: 0123456789
Model: PA-VM
Folder: Texas
Labels: production, west
Connected: True
--------------------------------------------------------------------------------
Name: PA-VM-02
Serial: 9876543210
Model: PA-VM
Folder: Texas
Labels: staging
Connected: False
--------------------------------------------------------------------------------

The detail view prints the writable fields (display_name, folder, description, labels, snippets) alongside read-only info (serial_number, model, hostname, software_version, is_connected, uptime).

Load Device​

Load multiple device updates from a YAML file.

Syntax​

scm load setup device [OPTIONS]

Options​

OptionDescriptionRequired
--file PATHYAML file to load configurations fromYes
--dry-runSimulate execution without applying changesNo

YAML File Format​

---
devices:
- name: PA-VM-01
display_name: Edge-FW-01
folder: Austin
description: Edge firewall
labels:
- production
- west
snippets:
- DNS-Best-Practice
- name: PA-VM-02
labels:
- staging

Read-only fields present in the YAML (e.g. serial_number, model, is_connected) are ignored — they are safe to leave in backups you edit and reload.

Examples​

Load Device Updates from File​

$ scm load setup device --file tests/data/devices.yaml
---> 100%
Updated device: PA-VM-01
Updated device: PA-VM-02

Processed 2 devices from tests/data/devices.yaml

Dry Run​

$ scm load setup device --file devices.yaml --dry-run
---> 100%
Dry run mode: would apply the following configurations:
- description: Edge firewall 1
display_name: Edge-FW-01
folder: Austin
labels:
- production
- west
name: PA-VM-01
snippets:
- DNS-Best-Practice
- is_connected: false
labels:
- staging
model: PA-VM
name: PA-VM-02
serial_number: '9876543210'

Backup Device​

Backup all device objects to a YAML file.

Syntax​

scm backup setup device [OPTIONS]

Options​

OptionDescriptionRequired
--file TEXTOutput filename for backupNo

Examples​

Backup with Default Filename​

$ scm backup setup device
---> 100%
Successfully backed up 5 devices to devices_20240115_120530.yaml

Backup with Custom Filename​

$ scm backup setup device --file my-devices.yaml
---> 100%
Successfully backed up 5 devices to my-devices.yaml

Backup dumps all devices (read-only and writable fields) except the SCM identifier (id). The output is consumable by scm load setup device.

Best Practices​

  1. Use Display Names: Set clear display names for devices to make them easily identifiable in the UI.
  2. Organize with Folders: Move devices into appropriate folders to match your organizational structure.
  3. Apply Labels Consistently: Use labels to categorize devices for easier filtering and management.
  4. Add Descriptions: Include descriptions to document device purpose or configuration notes.
  5. Back Up Before Changes: Export devices before making bulk updates to preserve your configuration.
  6. Use Dry Run for Bulk Imports: Always preview bulk imports with --dry-run before applying changes.