Skip to main content

Quarantined Device

Quarantined devices are endpoints isolated from the network due to security policy violations. The scm CLI provides commands to create, show, delete, and load quarantined device entries.

Overview

The quarantined-device commands allow you to:

  • Create quarantined device entries by host ID
  • View quarantined devices with optional filtering
  • Delete quarantined device entries
  • Bulk import quarantined devices from YAML files

Set Quarantined Device

Create a quarantined device entry.

Syntax

scm set object quarantined-device [OPTIONS]

Options

OptionDescriptionRequired
--host-id TEXTHost ID of the device to quarantineYes
--serial-number TEXTSerial number of the deviceNo
note

Quarantined devices are identified by --host-id rather than a positional name, and do not use a container location (--folder, --snippet, or --device).

Example

$ scm set object quarantined-device \
--host-id abc123 \
--serial-number SN12345
---> 100%
Created quarantined device: abc123

Delete Quarantined Device

Delete a quarantined device entry.

Syntax

scm delete object quarantined-device [OPTIONS]

Options

OptionDescriptionRequired
--host-id TEXTHost ID of the quarantined device to deleteYes
--forceSkip confirmation promptNo

Example

$ scm delete object quarantined-device --host-id abc123 --force
---> 100%
Deleted quarantined device: abc123

Load Quarantined Devices

Load multiple quarantined device entries from a YAML file.

Syntax

scm load object quarantined-device [OPTIONS]

Options

OptionDescriptionRequired
--file TEXTPath to YAML file containing quarantined device definitionsYes
--dry-runPreview changes without applying themNo

YAML File Format

---
quarantined_devices:
- host_id: abc123
serial_number: SN12345

- host_id: def456
serial_number: SN67890

Example

$ scm load object quarantined-device --file quarantined.yaml
---> 100%
✓ Loaded quarantined device: abc123
✓ Loaded quarantined device: def456

Successfully loaded 2 out of 2 quarantined devices from 'quarantined.yaml'

Show Quarantined Device

Display quarantined device entries.

Syntax

scm show object quarantined-device [OPTIONS]

Options

OptionDescriptionRequired
--host-id TEXTFilter by host IDNo
--serial-number TEXTFilter by serial numberNo
--max-results INTEGERMaximum number of results to displayNo
--output [table|json|yaml]Output format (default: table)No
note

When no filters are specified, all quarantined devices are listed by default.

Examples

List All Quarantined Devices

$ scm show object quarantined-device
---> 100%
Quarantined Devices:
------------------------------------------------------------
Host ID: abc123
Serial Number: SN12345
------------------------------------------------------------
Host ID: def456
Serial Number: SN67890
------------------------------------------------------------

Filter by Host ID

$ scm show object quarantined-device --host-id abc123
---> 100%
Quarantined Device: abc123
Serial Number: SN12345

Best Practices

  1. Document Reasons: Track why devices are quarantined outside of SCM.
  2. Regular Review: Periodically review quarantined devices and release compliant ones.
  3. Use YAML for Bulk Operations: For managing multiple quarantine entries, use YAML files.
  4. Serial Number Tracking: Always include serial numbers for device identification.