Skip to main content

QoS Profile

QoS profiles define bandwidth allocation and traffic class settings for network connections. The scm CLI provides commands to create, update, delete, and manage QoS profiles.

Overview

The qos-profile commands allow you to:

  • Create QoS profiles with aggregate bandwidth and class bandwidth type settings
  • Update existing QoS profile configurations
  • Delete QoS profiles that are no longer needed
  • Bulk import QoS profiles from YAML files
  • Export QoS profiles for backup or migration
Folder Restriction

QoS profiles only support "Remote Networks" and "Service Connections" folders. Using any other folder will result in an error.

Set QoS Profile

Create or update a QoS profile.

Syntax

scm set network qos-profile NAME [OPTIONS]

Arguments

ArgumentDescriptionRequired
NAMEName of the QoS profileYes

Options

OptionDescriptionRequired
--folder TEXTFolder location (must be "Remote Networks" or "Service Connections")Yes*
--snippet TEXTSnippet locationYes*
--device TEXTDevice locationYes*
--aggregate-bandwidth-json TEXTAggregate bandwidth config as JSONNo
--class-bandwidth-type-json TEXTClass bandwidth type config as JSONNo

* Exactly one of --folder, --snippet, or --device is required.

Examples

Create a QoS Profile

$ scm set network qos-profile my-qos \
--folder "Remote Networks" \
--aggregate-bandwidth-json '{"egress_max": 100, "egress_guaranteed": 50}'
---> 100%
Created QoS profile: my-qos in Remote Networks

Create in Service Connections

$ scm set network qos-profile sc-qos \
--folder "Service Connections" \
--aggregate-bandwidth-json '{"egress_max": 200}'
---> 100%
Created QoS profile: sc-qos in Service Connections

Delete QoS Profile

Delete a QoS profile from SCM.

Syntax

scm delete network qos-profile NAME [OPTIONS]

Arguments

ArgumentDescriptionRequired
NAMEName of the QoS profile to deleteYes

Options

OptionDescriptionRequired
--folder TEXTFolder locationYes*
--snippet TEXTSnippet locationYes*
--device TEXTDevice locationYes*
--forceSkip confirmation promptNo

* Exactly one of --folder, --snippet, or --device is required.

Example

$ scm delete network qos-profile my-qos --folder "Remote Networks" --force
---> 100%
Deleted QoS profile: my-qos from Remote Networks

Load QoS Profile

Load multiple QoS profiles from a YAML file.

Syntax

scm load network qos-profile [OPTIONS]

Options

OptionDescriptionRequired
--file TEXTPath to YAML file containing QoS profile definitionsYes
--folder TEXTOverride folder location for all objectsNo
--snippet TEXTOverride snippet location for all objectsNo
--device TEXTOverride device location for all objectsNo
--dry-runPreview changes without applyingNo

YAML File Format

---
qos_profiles:
- name: remote-qos
folder: "Remote Networks"
aggregate_bandwidth:
egress_max: 100
egress_guaranteed: 50
class_bandwidth_type:
mbps:
class1:
egress_max: 30
egress_guaranteed: 20

- name: sc-qos
folder: "Service Connections"
aggregate_bandwidth:
egress_max: 200

Examples

Load from File

$ scm load network qos-profile --file qos-profiles.yml
---> 100%
Created QoS profile: remote-qos in Remote Networks
Created QoS profile: sc-qos in Service Connections

Summary: Processed 2 QoS profiles
- Created: 2

Dry Run

$ scm load network qos-profile --file qos-profiles.yml --dry-run
Dry run mode - no changes will be applied
Would process: remote-qos
Would process: sc-qos

Show QoS Profile

Display QoS profile details.

Syntax

scm show network qos-profile [NAME] [OPTIONS]

Arguments

ArgumentDescriptionRequired
NAMEName of the QoS profile to show; omit to list allNo

Options

OptionDescriptionRequired
--folder TEXTFolder locationYes*
--snippet TEXTSnippet locationYes*
--device TEXTDevice locationYes*
--max-results INTEGERMaximum number of results to displayNo
--output [table|json|yaml]Output format (default: table)No

* Exactly one of --folder, --snippet, or --device is required.

note

When no NAME argument is provided, all items are listed by default.

Examples

Show Specific QoS Profile

$ scm show network qos-profile my-qos --folder "Remote Networks"
---> 100%
QoS Profile: my-qos
============================================================
Location: Remote Networks
Aggregate Bandwidth: {"egress_max": 100, "egress_guaranteed": 50}

ID: 12345678-abcd-1234-efgh-123456789012

List All QoS Profiles

$ scm show network qos-profile --folder "Remote Networks"
---> 100%
QoS Profiles:
--------------------------------------------------------------------------------
Name: my-qos
Location: Remote Networks
ID: 12345678-abcd-1234-efgh-123456789012
--------------------------------------------------------------------------------
Name: other-qos
Location: Remote Networks
ID: 87654321-dcba-4321-hgfe-210987654321
--------------------------------------------------------------------------------

Backup QoS Profiles

Export all QoS profiles from a specified location to a YAML file.

Syntax

scm backup network qos-profile [OPTIONS]

Options

OptionDescriptionRequired
--folder TEXTFolder locationNo*
--snippet TEXTSnippet locationNo*
--device TEXTDevice locationNo*
--file TEXTCustom output filenameNo

* One of --folder, --snippet, or --device is required.

Example

$ scm backup network qos-profile --folder "Remote Networks"
---> 100%
Successfully backed up 2 QoS profiles to qos-profile_Remote Networks.yml