Configuring Persistent Cli Variables - Cisco MDS 9000 Series Configuration Manual

Hide thumbs Also See for MDS 9000 Series:
Table of Contents

Advertisement

Configuring Persistent CLI Variables

SUMMARY STEPS
1. cli var name variable-name variable-text
2. (Optional) show cli variables
DETAILED STEPS
Command or Action
Step 1
cli var name variable-name variable-text
Example:
switch# cli var name testinterface
ethernet 2/1
Step 2
show cli variables
Example:
switch# show cli variables
Configuring Persistent CLI Variables
You can configure CLI variables that persist across CLI sessions and device reloads.
SUMMARY STEPS
1. configure terminal
2. cli var name variable-name variable-text
3. exit
4. (Optional) show cli variables
5. (Optional) copy running-config startup-config
DETAILED STEPS
Command or Action
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Step 2
cli var name variable-name variable-text
Example:
switch(config)# cli var name testinterface
ethernet 2/1
Cisco MDS 9000 Family NX-OS Fundamentals Configuration Guide
48
Purpose
Configures the CLI session variable. The variable-name argument is
alphanumeric, case sensitive, and has a maximum length of 31
characters. The variable-text argument is alphanumeric, case sensitive,
can contain spaces, and has a maximum length of 200 characters.
(Optional)
Displays the CLI variable configuration.
Purpose
Enters global configuration mode.
Configures the CLI persistent variable. The variable name
is a case-sensitive, alphanumeric string and must begin
with an alphabetic character. The maximum length is 31
characters.
Understanding the Command-Line Interface
OL-29291-02

Advertisement

Table of Contents
loading

Table of Contents