![background image](http://html.mh-extra.com/html/cisco/mds-9000-series/mds-9000-series_command-reference-manual_212531102.webp)
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m
22-34
Cisco MDS 9000 Family Command Reference
OL-18089-01, Cisco MDS NX-OS Release 4.x
Chapter 22 Show Commands
show cli variables
show cli variables
To display user-defined session and persistent CLI variables, use the
show cli variables
command.
show cli variables
Syntax Description
This command has no arguments or keywords.
Defaults
None.
Command Modes
EXEC mode.
Command History
Usage Guidelines
The
show CLI variables
command shows all available CLI variables, including user-defined session
CLI variables, user-defined persistent CLI variables, and system-defined CLI variables. There is no
distinction between the types of CLI variables in the output.
Examples
The following example displays CLI variables:
switch#
show cli variables
VSH Variable List
-----------------
TIMESTAMP="2005-10-24-21.29.33"
testinterface="fc 1/1"
Note
The TIMESTAMP variable shown in the output in the preceding example is a predefined variable
supported by Cisco MDS NX-OS. For more information about the TIMESTAMP variable, refer to the
Cisco MDS 9000 Family CLI Configuration Guide
.
Related Commands
Release
Modification
3.0(1)
This command was introduced.
Command
Description
cli var name
Defines a CLI session variable.
cli var name
(configuration)
Defines a CLI persistent variable.