Cli Var Name (Exec) - Cisco MDS 9124 - Fabric Switch Reference

Cisco mds 9000 family command reference - cisco mds san-os release 3.0(1) through 3.3(1a) (ol-16217-01, april 2008)
Hide thumbs Also See for Cisco MDS 9124 - Fabric Switch:
Table of Contents

Advertisement

cli var name (EXEC)

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 (EXEC)
To define a CLI session variable that persists only for the duration of a CLI session, use the cli var name
command in either EXEC mode or configuration submode.
To remove a user-defined session CLI variable, use the no form of the command as follows:
Syntax Description
name
value
Defaults
None.
Command Modes
EXEC mode.
Command History
Release
3.0(1)
Usage Guidelines
CLI session variables can be used as follows:
CLI variables have the following limitation:
Examples
The following example creates a user-defined CLI variable for a session.
switch# cli var name testinterface 3/4
The following example removes a user-defined CLI variable for a session.
switch# cli no var name testinterface 3/4
Cisco MDS 9000 Family Command Reference
4-96
cli var name name value
cli no var name name
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.
Specifies a variable name. The maximum size is 31 characters.
Specifies a variable value. The maximum size is 80.
Chapter 4
OL-16217-01, Cisco MDS SAN-OS Release 3.x
C Commands

Advertisement

Table of Contents
loading

Table of Contents