show var

show var {varname}
Note

Note

This is a script command and operates only in scripts or on the command line when scripting is enabled with the following command: enable cli scripting {permanent}.

Description

Displays the current session variables or the named variable.

Syntax Description

varname Displays the variable specified, if present.

Default

N/A.

Usage Guidelines

Use this command to see the list of current session variables. The display includes the variable name and value.

Example

The output of this command is similar to the following:

Switch.7 # show var
----------------------------------------
Count : 4
----------------------------------------

------------------------------------------------------------------
variableName                      variableValue
--------------------------------  --------------------------------
CLI.SESSION_TYPE                  serial
CLI.USER                          admin
STATUS                            0
x                                 66
------------------------------------------------------------------

History

This command was first available in ExtremeXOS 11.6.

Platform Availability

This command is available on ExtremeSwitching X435, X440-G2, X450-G2, X460-G2, X465, X590, X620, X670-G2, X690, X695, X870, 5320, 5420, and 5520 series switches.