3.6. Classic and Model-Driven Management Interfaces Command Reference

3.6.1. Command Hierarchies

3.6.1.1. Management Infrastructure Control Commands

config
— system
cli
cli-engine {classic-cli | md-cli} [{classic-cli | md-cli}]
— no cli-engine
md-cli
[no] enter
[no] space
[no] tab
length lines
width width
cli {warning | info}
[no] more
delay interval
[no] shutdown
type indicator-type
prompt
[no] context
[no] newline
[no] timestamp
time-display {local | utc}
configuration-mode {classic | mixed | model-driven}
schema-path url-string
— yang-modules
[no] nokia-modules

3.6.2. Command Descriptions

3.6.2.1. Management Infrastructure Control Commands

management-interface

Syntax 
management-interface
Context 
config>system
Description 

This command enables the context to configure management interface parameters.

cli

Syntax 
cli
Context 
config>system>management-interface
Description 

This command enables the context to configure CLI capabilities.

classic-cli

Syntax 
classic-cli
Context 
config>system>management-interface>cli
Description 

This command enables the context to configure parameters related to classic CLI capabilities.

allow-immediate

Syntax 
[no] allow-immediate
Context 
config>system>management-interface>cli>classic-cli
Description 

This command enables writable access in the configure classic CLI branch.

The no form of this command, when configured under the management-interface>cli>classic-cli context, blocks writeable access and configuration changes in the configure classic CLI branch. This causes the running configuration datastore from the configure classic CLI branch to be read-only.

This command can be used to enforce the use of candidate configuration and the commit command, instead of allowing immediate mode line-by-line configuration changes.

Default 

allow-immediate

cli-engine

Syntax 
cli-engine {classic-cli | md-cli} [{classic-cli | md-cli}]
no cli-engine
Context 
config>system>management-interface>cli
Description 

This command configures the system-wide CLI engine. One or both engines can be configured.

In order for the changes to the cli-engine parameter to take effect, log out of the CLI session and start a new session.

Parameters 
classic-cli—
Specifies the classic CLI.
md-cli—
Specifies the MD-CLI.

md-cli

Syntax 
md-cli
Context 
config>system>management-interface>cli
Description 

This command enters the context to configure MD-CLI capabilities.

auto-config-save

Syntax 
[no] auto-config-save
Context 
config>system>management-interface>cli>md-cli
Description 

This command enables the functionality to automatically save the configuration as part of a commit operation.

The no form of the command disables this function.

environment

Syntax 
environment
Context 
config>system>management-interface>cli>md-cli
Description 

This command enters the context to configure MD-CLI session environment parameters.

command-completion

Syntax 
command-completion
Context 
config>system>management-interface>cli>md-cli>environment
Description 

This command configures keystrokes to trigger command completion.

enter

Syntax 
[no] enter
Context 
config>system>management-interface>cli>md-cli>environment>command-completion
Description 

This command enables completion on the enter character.

The no form of this command reverts to the default value.

Default 

enter

space

Syntax 
[no] space
Context 
config>system>management-interface>cli>md-cli>environment>command-completion
Description 

This command enables completion on the space character.

The no form of this command reverts to the default value.

Default 

space

tab

Syntax 
[no] tab
Context 
config>system>management-interface>cli>md-cli>environment>command-completion
Description 

This command enables completion on the tab character.

The no form of this command reverts to the default value.

Default 

tab

console

Syntax 
console
Context 
config>system>management-interface>cli>md-cli>environment
Description 

This command enables the context to configure console parameters.

length

Syntax 
length lines
Context 
config>system>management-interface>cli>md-cli>environment>console
Description 

This command configures the set number of lines displayed on screen.

Default 

length 24

Parameters 
lines—
Specifies the number of lines displayed in the console window.
Values—
24 to 512

 

width

Syntax 
width width
Context 
config>system>management-interface>cli>md-cli>environment>console
Description 

This command configures the set number of columns displayed on screen.

Default 

width 80

Parameters 
width—
Specifies the number of columns displayed in the console window.
Values—
80 to 512

 

message-severity-level

Syntax 
message-severity-level
Context 
config>system>management-interface>cli>md-cli>environment
Description 

This command configures the message severity level.

cli

Syntax 
cli {warning | info}
Context 
config>system>management-interface>cli>md-cli>environment>message-severity-level
Description 

This command specifies the threshold for CLI messages.

Default 

cli info

Parameters 
warning—
Specifies that WARNING messages are displayed but INFO messages are suppressed.
info—
Specifies that INFO messages and WARNING messages are displayed.

more

Syntax 
[no] more
Context 
config>system>management-interface>cli>md-cli>environment
Description 

This command configures pagination of the output text.

The no form of this command reverts to the default value.

Default 

more

progress-indicator

Syntax 
progress-indicator
Context 
config>system>management-interface>cli>md-cli>environment
Description 

This command enables the context to configure progress indicator parameters.

delay

Syntax 
delay interval
Context 
config>system>management-interface>cli>md-cli>environment>progress-indicator
Description 

This command sets the delay before the progress indicator is displayed in the MD-CLI.

Default 

delay 500

Parameters 
interval—
Specifies the delay interval, in milliseconds.
Values—
1 to 10000

 

shutdown

Syntax 
[no] shutdown
Context 
config>system>management-interface>cli>md-cli>environment>progress-indicator
Description 

This command controls whether the progress indicator is active during command execution.

The no form of this command reverts to the default value.

Default 

no shutdown

type

Syntax 
type indicator-type
Context 
config>system>management-interface>cli>md-cli>environment>progress-indicator
Description 

This command specifies the type of progress indicator used in the MD-CLI.

Default 

type dots

Parameters 
indicator-type—
Specifies the progress indicator type.
Values—
dots: displays the progress indicator as dynamically changing dots

 

prompt

Syntax 
prompt
Context 
config>system>management-interface>cli>md-cli>environment
Description 

This command enables the context to configure prompt parameters.

context

Syntax 
[no] context
Context 
config>system>management-interface>cli>md-cli>environment>prompt
Description 

This command displays the current command context in the prompt.

The no form of this command suppresses the current command context in the prompt.

Default 

context

newline

Syntax 
[no] newline
Context 
config>system>management-interface>cli>md-cli>environment>prompt
Description 

This command displays a new line before the first prompt line.

The no form of this command suppresses the new line before the first prompt line.

Default 

newline

timestamp

Syntax 
[no] timestamp
Context 
config>system>management-interface>cli>md-cli>environment>prompt
Description 

This command displays the timestamp before the first prompt line.

The no form of this command suppresses the timestamp before the first prompt line.

Default 

timestamp

uncommitted-changes-indicator

Syntax 
[no] uncommitted-changes-indicator
Context 
config>system>management-interface>cli>md-cli>environment>prompt
Description 

This command displays the change indicator.

The no form of this command suppresses the change indicator.

Default 

uncommitted-changes-indicator

time-display

Syntax 
time-display {local | utc}
Context 
config>system>management-interface>cli>md-cli>environment
Description 

This command configures whether the time is displayed in coordinated Universal Time (UTC) or local time (as configured in config>system>time).

Default 

time-display local

Parameters 
local—
Specifies that the local time zone is used.
utc—
Specifies that UTC is used.

configuration-mode

Syntax 
configuration-mode {classic | mixed | model-driven}
Context 
config>system>management-interface
Description 

This command controls which management interfaces are used for editing and changing the configuration of the router.

Default 

configuration-mode classic

Parameters 
classic—
Enables editing of router configuration via classic CLI and SNMP management interfaces, but not using model-driven interfaces.
model-driven—
Enables editing of router configuration via model-driven management interfaces (NETCONF with 'Nokia' YANG models, MD-CLI or gRPC), but not using classic interfaces.
mixed—
Enables editing of router configuration using a mix of classic and/or model-driven management interfaces (with some restrictions and limitations).

schema-path

Syntax 
schema-path url-string
no schema-path
Context 
config>system>management-interface
Description 

This command enables the definition a schema-path where the SR OS YANG modules are manually copied by the user prior to using a <get-schema> request

Default 

"cf3:/YANG"

Parameters 
url-string—
Specifies the schema path URL up to 180 characters.

base-r13-modules

Syntax 
[no] base-r13-modules
Context 
config>system>management-interface>yang-modules
Description 

This command enables or disables support of the Base-R13 YANG modules in the SR OS NETCONF server. If the Base-R13 modules are disabled, then the NETCONF requests, which reference the Base-R13 modules, return an error, and when a NETCONF client establishes a new session, the Base-R13 modules are not advertised in the SR OS hello. When management-interface configuration-mode is set to model-driven, attempts to modify the configuration using the Base-13 configuration modules or namespace via NETCONF results in errors, even if base-r13-modules is enabled.

Default 

base-r13-modules

nokia-modules

Syntax 
[no] nokia-modules
Context 
config>system>management-interface>yang-modules
Description 

This command enables or disables support of the Nokia YANG modules in the SR OS NETCONF server. If the Nokia modules are disabled, then the NETCONF requests, which reference the Nokia modules, return an error, and when a NETCONF client establishes a new session, the Nokia modules are not advertised in the SR OS hello. When management-interface configuration-mode is set to classic, attempts to access (read or write) the configuration using the Nokia configuration modules or namespace via NETCONF results in errors, even if nokia-modules is enabled.

Default 

nokia-modules

nokia-combined-modules

Syntax 
[no] nokia-combined-modules
Context 
config>system>management-interface>yang-modules
Description 

This command enables support of the combined NOKIA YANG files for both configuration and state data.

This command is mutually exclusive with the nokia-modules command. They cannot be both enabled at the same time where the validation is done at commit time. The default configuration is nokia-modules and no nokia-combined-modules.

The no form of this command disables support of the combined NOKIA YANG files for both configuration and state data.

Default 

no nokia-combined-modules