E Commands
This chapter describes the basic Cisco NX-OS system commands that begin with E.
echo
To display a text string on the terminal, use the echo command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
You can use this command in a command script to display status information or prompts while the script is running.
Examples
This example shows how to display a blank line at the command prompt:
This example shows how to display a line of text at the command prompt:
Related Commands
|
|
---|---|
end
To end the current configuration session and return to EXEC mode, use the end command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
This command returns you to EXEC mode regardless of which configuration mode you are in. Use this command when you are done configuring the system and you want to return to EXEC mode to perform verification steps.
Examples
This example shows how the end command is used to exit from interface configuration mode and return to EXEC mode. A show command is used to verify the configuration.
Related Commands
|
|
---|---|
Terminates the active terminal session by logging off the switch. |
|
exec-timeout
To configure the inactive session timeout on the console port or the virtual terminal, use the exec-timeout command. To revert to the default, use the no form of this command.
Syntax Description
Number of minutes. The range is from 0 to 525600. A setting of 0 minutes disables the timeout. |
Command Default
Command Modes
Terminal line configuration mode
Command History
|
|
---|---|
Usage Guidelines
You can configure the console port only from a session on the console port.
Examples
This example shows how to configure the inactive session timeout for the console port:
This example shows how to revert to the default inactive session timeout for the console port:
This example shows how to configure the inactive session timeout for the virtual terminal:
This example shows how to revert to the default inactive session timeout for the virtual terminal:
Related Commands
|
|
---|---|
exit (EXEC)
To close an active terminal session by logging off the switch, use the exit command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Examples
This example shows how the exit (global) command is used to move from configuration mode to EXEC mode and the exit (EXEC) command is used to log off (exit the active session):
Related Commands
|
|
---|---|
Exits from the current configuration mode to the next highest configuration mode. |
exit (global)
To exit any configuration mode to the next highest mode in the CLI mode hierarchy, use the exit command in any configuration mode.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Use the exit command in configuration mode to return to EXEC mode. Use the exit command in interface, VLAN, or zone configuration mode to return to configuration mode. At the highest level, EXEC mode, the exit command will exit the EXEC mode and disconnect from the switch (see the description of the exit (EXEC) command for details).
Examples
This example shows how to exit from the interface configuration mode and to return to the configuration mode:
Related Commands
|
|
---|---|
Ends your configuration session by exiting to privileged EXEC mode. |
|
Terminates the active terminal session by logging off the switch. |