Cli Var Name (Configuration) - Cisco AJ732A - MDS 9134 Fabric Switch Command Reference Manual

Cisco mds 9000 family command reference guide - release 4.x (ol-18089-01, february 2009)
Hide thumbs Also See for AJ732A - Cisco MDS 9134 Fabric Switch:
Table of Contents

Advertisement

cli var name (configuration)

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
cli var name (configuration)
To define a CLI variable that persists across CLI sessions and switch reloads, use the cli var name
command in configuration submode. To remove the user-defined persistent CLI variable, use the no form
of the command.
Syntax Description
name
value
Defaults
None.
Command Modes
Configuration submode.
Command History
Release
3.0(1)
Usage Guidelines
CLI variables can be used as follows:
CLI variables have the following limitations:
Examples
The following example creates a persistent user-defined CLI variable:
switch# config t
switch(config)# cli var name mgmtport mgmt 0
Related Commands
Command
show cli variables
Cisco MDS 9000 Family Command Reference
4-102
cli var name name value
no cli var name name value
Modification
This command was introduced.
Entered directly on the command line.
Passed to the child script and initiated using the run-script command. The variables defined in the
parent shell are available for use in the child run-script command process.
Passed as command-line arguments to the run-script command.
Referenced using the syntax $(variable).
You cannot reference a variable through another variable using nested references.
Description
Displays all CLI variables (persistent, session and system).
Specifies a variable name. The maximum size is 31 characters.
Specifies a variable value. The maximum size is 80.
Chapter 4
C Commands
OL-18089-01, Cisco MDS NX-OS Release 4.x

Advertisement

Table of Contents
loading

Table of Contents