S Commands
This chapter describes the basic Cisco NX-OS system commands that begin with S.
save
To save the current configuration session to a file, use the save command.
Syntax Description
Location of the file. The location can be in bootflash or volatile. The file name can be any alphanumeric string up to 63 characters. |
Command Default
Command Modes
Command History
|
|
---|---|
Examples
This example shows how to save a configuration session to a file in bootflash:
Related Commands
|
|
---|---|
send
To send a message to the active user sessions, use the send command.
Syntax Description
Text string. The text string can be up to 80 alphanumeric characters and is case sensitive. |
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
You can use the show users command to display information about the active user sessions.
Examples
This example shows how to send a message to all active user sessions on the switch:
This example shows how to send a message to a specific user session:
Related Commands
|
|
---|---|
session-limit
To configure the maximum number of the concurrent virtual terminal sessions on a device, use the session-limit command. To revert to the default, use the no form of this command.
Syntax Description
Command Default
Command Modes
Terminal line configuration mode
Command History
|
|
---|---|
Examples
This example shows how to configure the maximum number of concurrent virtual terminal sessions:
This example shows how to revert to the default maximum number of concurrent virtual terminal sessions:
Related Commands
|
|
---|---|
setup
To enter the basic device setup dialog, use the setup command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
The setup script uses the factory-default values, not the values that you have configured. You can exit the dialog at any point by pressing Ctrl-C.
Examples
This example shows how to enter the basic device setup script:
Related Commands
|
|
---|---|
sleep
To cause the command-line interface (CLI) to pause before displaying the prompt, use the sleep command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
You can use this command in command scripts to delay the execution of the script.
Examples
This example shows how to cause the CLI to pause for 5 seconds before displaying the prompt:
Related Commands
|
|
---|---|
speed
To configure the transmit and receive speed for the console port, use the speed command. To revert to the default, use the no form of this command.
Syntax Description
Speed in bits per second. Valid speeds are 300, 1200, 2400, 4800, 9600, 19200, 38400, 57600, or 115200. |
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 speed for the console port:
This example shows how to revert to the default speed for the console port:
Related Commands
|
|
---|---|
stopbits
To configure the stop bits for the console port, use the stopbits command. To revert to the default, use the no form of this command.
Syntax Description
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 number of stop bits for the console port:
This example shows how to revert to the default number of stop bits for the console port:
Related Commands
|
|
---|---|
switchname
To configure the hostname for the device, use the switchname command. To revert to the default, use the no form of this command.
Syntax Description
Name for the device. The name is alphanumeric, case sensitive, can contain special characters, and can have a maximum of 63 characters. |
Defaults
Command Modes
Command History
|
|
---|---|
This command was modified. The character limit of a switch name is increased from 32 to 63 alphanumeric characters. |
|
Usage Guidelines
The Cisco NX-OS software uses the hostname in command-line interface (CLI) prompts and in default configuration filenames.
The switchname command performs the same function as the hostname command.
Examples
This example shows how to configure the device hostname:
This example shows how to revert to the default device hostname:
Related Commands
|
|
---|---|
system cores
To configure the destination for the system core, use the system cores command. To revert to the default, use the no form of this command.
system cores tftp : tftp_URL [ vrf management ]
Syntax Description
URL for the destination file system and file. Use the following format: |
|
(Optional) Specifies to use the management virtual routing and forwarding (VRF). |
Command Default
Command Modes
Command History
|
|
---|---|
Examples
This example shows how to configure a core file:
This example shows how to disable system core logging:
Related Commands
|
|
---|---|
system startup-config unlock
To unlock the startup configuration file, use the system startup-config unlock command.
system startup-config unlock process-id
Syntax Description
Identifier of the process that has locked the startup-configuration file. |
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Use the show system internal sysmgr startup-config locks command to display the locks on the startup configuration file.
Examples
This example shows how to unlock the startup-configuration file:
Related Commands
|
|
---|---|