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
| Option | Description | Required |
|---|---|---|
--host-id TEXT | Host ID of the device to quarantine | Yes |
--serial-number TEXT | Serial number of the device | No |
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
| Option | Description | Required |
|---|---|---|
--host-id TEXT | Host ID of the quarantined device to delete | Yes |
--force | Skip confirmation prompt | No |
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
| Option | Description | Required |
|---|---|---|
--file TEXT | Path to YAML file containing quarantined device definitions | Yes |
--dry-run | Preview changes without applying them | No |
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
| Option | Description | Required |
|---|---|---|
--host-id TEXT | Filter by host ID | No |
--serial-number TEXT | Filter by serial number | No |
--max-results INTEGER | Maximum number of results to display | No |
--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
- Document Reasons: Track why devices are quarantined outside of SCM.
- Regular Review: Periodically review quarantined devices and release compliant ones.
- Use YAML for Bulk Operations: For managing multiple quarantine entries, use YAML files.
- Serial Number Tracking: Always include serial numbers for device identification.