This document describes the commands available in the MD-CLI that can be used to manage the router.
For a list of unsupported features by platform and chassis, refer to the SR 20.7.R1, part number 3HE 17177 000x TQZZA.
Command outputs shown in this guide are examples only; actual output may differ depending on supported functionality and user configuration.
| Note: This guide generically covers Release 21.x.Rx content and may contain some content that will be released in later maintenance loads. Refer to the SR 20.7.R1, part number 3HE 17177 000x TQZZA, for information about features supported in each load of the Release 21.x.Rx software. |
To access the configuration statements within the MD-CLI, the MD-CLI engine must be enabled and the configuration mode must be mixed or model-driven. For information about using the MD-CLI, see the 7450 ESS, 7750 SR, 7950 XRS, and VSR MD-CLI User Guide.
For operational clear, monitor, show, and tools SR OS CLI commands used in both the classic CLI and the MD-CLI, see the 7450 ESS, 7750 SR, 7950 XRS, and VSR Clear, Monitor, Show, and Tools Command Reference Guide.
Table 1 describes command syntax symbols used in this guide.
Symbol | Description |
| | A vertical bar represents an “or” condition, indicating that only one of the parameters in the brackets or parentheses can be selected. |
( ) | Parentheses indicate that one of the parameters must be selected. |
[ ] | Brackets indicate optional parameters. |
Bold | Commands in bold indicate commands and keywords. |
Italic | Commands in italics indicate that you must enter text for the parameter. |
In the following examples, location and graceful-shutdown are command names. For the location command, keyword must be one of the keywords cf1, cf2, or cf3. For the graceful-shutdown command, boolean must be one of the keywords true or false, although explicitly using the keyword true is optional.
location keyword
keyword - (cf1 | cf2 | cf3)
graceful-shutdown boolean
boolean - ([true] | false)
The configuration branch of the MD-CLI shows the commands and parameters (also known as elements) that are available, shown in a hierarchical structure as in Figure 1.

The configure context is the root level of the configuration branch within the configuration mode in the MD-CLI. Each chapter of this guide describes a configuration branch in the MD-CLI configuration tree.
Commands are linked to their command descriptions in the configuration tree with some exceptions (for example, to reduce repeated content), including the apply-groups, apply-groups-exclude, and groups commands. These commands are used to direct the use of configuration templates called configuration groups in the configure region at all configuration levels. The apply-groups command applies a configuration group at a configuration level and the apply-groups-exclude command excludes a configuration group at a configuration level. Refer to “Using Configuration Groups” in the 7450 ESS, 7750 SR, 7950 XRS, and VSR MD-CLI User Guide for more information.
Some commands require one or more keys to be entered with the command. For example, the collector command has two keys which must be entered: the IP address and the port number. The key name for the IP address (ip-address) is optional, however, the key name port must be entered before the port number.
The command description indicates the required syntax for each command. See MD-CLI command descriptions for more information.
collector [ip-address] (ipv4-address-no-zone | ipv6-address-no-zone) port number
Italicized names after a command or parameter name indicate the parameter type. The parameter types include (but are not limited to):
The summary-only parameter, for example, requires a Boolean value. The autonomous-system parameter requires a number. For more information about the input values, click on the command or parameter name from the MD-CLI tree to be linked to the command description.
A parameter type may also be a combination of different base types. These parameters are displayed in the MD-CLI tree with the individual parameter types enclosed in round brackets (()), separated by a vertical bar (|). For example, the indirect parameter can be configured with either an IPv4 address or IPv6 address:
Allowed values in strings are printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, and so on), the entire string must be enclosed within double quotation marks. Double quotation marks within a string are not supported.
The command syntax is shown in the command description, where the command is displayed in bold, followed by any key names and a type. From the MD-CLI tree, the configure log accounting-policy command shows that the key for the command is a number:
The command description for accounting-policy shows that the key for the command is a policy identifier:
accounting-policy [policy-id] number
The square brackets ([ ]) indicate that the policy-id key name is optional. From the policy-id command description, the range of the identifier is a number from 1 to 99. Therefore, when using the accounting-policy command, the following inputs are acceptable:
Table 2 describes the fields that may be displayed for a command. Not all fields are applicable for all commands.
Field | Description |
Element Name | Name of the element (command or parameter) and its syntax |
Synopsis | Summary description of the element |
Context | Full path to the command |
Tree | Link to the command in the CLI tree |
Description | Detailed description of the element, as needed |
String Length | For string elements, the range of the number of characters allowed |
Range/Max. Range | For number elements, the range of allowed values. A maximum range may be overridden by a platform-specific range. |
Default | Default value for the element. Platform-specific defaults are not displayed. |
Units | Base unit type of the element |
Options | Enumerated values allowed for the element. Not all options are available in all platforms. |
Reference | Reference to an element instance in the configuration or state datastore |
Min./Max. Elements | For lists and leaf-lists, the minimum or maximum number of instances for this element |
Notes | Information about special attributes of the element, including whether the element is:
|
Introduced | Release in which the element was introduced in model-driven interfaces |
Platforms | Hardware platforms on which the element is supported, including: 7450 ESS-7, 7450 ESS-12, 7750 SR-1, 7750 SR-7, 7750 SR-12, 7750 SR-12e, 7750 SR-a4, 7750 SR-a8, 7750 SR-1e, 7750 SR-2e, 7750 SR-3e, 7750 SR-1s, 7750 SR-2s, 7750 SR-7s, 7750 SR-14s, 7950 XRS-20, 7950 XRS-20e, 7950 XRS-40, VSR, VSR-NRC |
A description of the element is also available from the online help for the element. For information about using the online help in the MD-CLI, refer to the 7450 ESS, 7750 SR, 7950 XRS, and VSR MD-CLI User Guide.
| Note: Some SR OS features are platform-specific and therefore may not be available or visible on all platforms. All options for enumerated types and numerical ranges are listed in the MD-CLI command descriptions, however, not all options or ranges are valid on all platforms. |