Switch CLI Reference Guide
- Introduction
- System Commands
- ACL Commands
- Domain Name Server (DNS) Commands
- Energy Efficient Ethernet (EEE) Commands
- Internet Group Management Protocol (IGMP) Commands
- IP Commands
- Link Aggregation Commands
- Loopback Detection Commands
- Link Layer Discovery Protocol Commands
- Monitor (Mirror) Commands
- Port-Based Network Access Control Commands
- Power Over Ethernet Commands
- Quality of Service Commands
- RADIUS Commands
- Remote Network Monitoring (RMON) Commands
- Simple Network Management Protocol (SNMP) Commands
- Simple Network Time Protocol (SNTP) Commands
- Spanning Tree Commands
- Secure Shell Commands
- Syslog Commands
- VLAN Commands
- Voice VLAN Commands
- SonicWall Support
System Commands
Command Objective | This command displays a brief description for the given command. |
Syntax | help [command]
|
Mode | All Modes |
Command Objective | This command clears all the contents from the screen. |
Syntax | clear screen
|
Mode | All Modes |
Command Objective | Exit from Configure mode. |
Syntax | end
|
Mode | All Modes |
Command Objective | This command exits from Privileged EXEC/ User EXEC mode to ISS Login Prompt in case of console session. In case of a telnet session, this command terminates the session. |
Syntax | logout
|
Mode | Privileged EXEC Mode |
Command Objective | Show current privilege level. |
Syntax | show privilege
|
Mode | Privileged EXEC Mode |
Command Objective | This command displays TTY line information such as EXEC timeout. |
Syntax | show cli
|
Mode | Privileged EXEC Mode |
Command Objective | This command exits the current mode and reverts to the mode used prior to the current mode. |
Syntax | exit
|
Mode | All Modes |
Command Objective | This command enters to Global Configuration Mode which allows the user to execute all the commands that supports global configuration mode. |
Syntax | configure terminal
|
Mode | Privileged EXEC Mode |
Command Objective | This command lists all the default and newly created users, along with their permissible mode. |
Syntax | listuser
|
Mode | Privileged EXEC Mode |
Command Objective | This command displays the information about the current user. |
Syntax | show users
|
Mode | Privileged EXEC Mode |
Command Objective | This command locks the CLI console. It allows the user/system administrator to lock the console to prevent unauthorized users from gaining access to the CLI command shell. Enter the login password to release the console lock and access the CLI command shell. |
Syntax | lock
|
Mode | Privileged EXEC Mode |
Command Objective | This command displays a list of recently executed commands. |
Syntax | show history
|
Mode | Privileged EXEC Mode |
Command Objective |
This command creates a user and sets the enable password for that user with the privilege level. The no form of the command deletes a user and disables the enable password for that user. |
Syntax |
|
Parameter Description |
|
Mode | Global Configuration Mode |
Command Objective |
This command identifies a specific line for configuration and enters the line configuration mode and allows the user to execute all the commands that supports line configuration mode. This command won't work when accessing the Switch console via ssh. This command will work only when accessing the Switch console via Switch console port. |
Syntax | line cli
|
Mode | Global Configuration Mode |
Command Objective |
This command sets a time (in seconds) for EXEC line disconnection. This value ranges between 1 and 10000 minutes. The no form of this command resets the EXEC timeout to its default value. |
Syntax |
|
Mode | Line Configuration Mode |
Command Objective |
This command sends echo messages. The Ping module is built based on the ICMP echo request and ICMP echo response messages. The network administrator uses this ping on a remote device to verify its presence. Ping involves sending ICMP echo messages repeated and measuring the time between transmission and reception of message. The output displays the time taken for each packet to be transmitted, number of packets transmitted, number of packets received and packet loss percentage. |
Syntax | ping [ ip ] {IpAddress | hostname } [{repeat|count} packet_count (1-10)] [size packet_size (8-5120)] [timeout time_out (1-100)]
|
Parameter Description |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command traces route to the destination. |
Syntax | traceroute {<ip_addr>|<string>} [max-ttl <short (2-255)>]
|
Parameter Description |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command clears all the current interface counters from the interface unless the optional arguments type and number are specified to clear only a specific interface type (serial, Ethernet, Token Ring, and so on). |
Syntax | clear counters [ <interface-type> <interface-id> ]
|
Parameter Description |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command configures the maximum transmission unit frame size for all the frames transmitted and received on all the interfaces in a Switch. The size of the jumbo frame size can be increased using this command. The value ranges between 1522 and 10240. The no form of this command sets the maximum transmission unit to the default value in all interfaces. This value defines the largest PDU that can be passed by the interface without any need for fragmentation. This value is shown to the higher interface sub-layer and should not include size of the encapsulation or header added by the interface. |
Syntax | jumbo-frame <frame-size(1522-10240)>
|
Mode | Global Configuration Mode |
Command Objective |
This command selects the range of physical interfaces and VLAN interfaces to be configured. The no form of the command selects the range of VLAN interfaces to be removed. |
Syntax |
|
Parameter Description |
|
Mode | Global Configuration Mode |
Command Objective |
This command enters the configuration mode. Configuration from memory or network is not supported when entered into the configuration mode using this command. |
Syntax | configure terminal
|
Mode | Privileged EXEC Mode |
Command Objective |
This command configures a static unicast MAC address in the forwarding database. The no form of the command deletes a configured static Unicast MAC address from the forwarding database. |
Syntax |
|
Parameter Description |
|
Mode | Global Configuration Mode |
Command Objective |
This command configures the timeout period (in seconds) for aging out dynamically learned forwarding information entry and static entry in the MAC address table. That is, the entry is deleted once the aging timer expires. High value for the aging time helps to record dynamic entries for a longer time, if traffic is not frequent. This reduces the possibility of flooding. The no form of the command resets the maximum age of an entry in the MAC address table to its default value. |
Syntax |
|
Mode | Global Configuration Mode/ Switch Configuration Mode |
Command Objective |
This command sets the name of the Switch. |
Syntax |
|
Mode | Global Configuration Mode |
Command Objective |
This command enables the telnet service in the system. The no form of this command disables the telnet service. |
Syntax |
|
Mode | Global Configuration Mode |
Command Objective |
This command copies a file from a source remote site /flash to a destination remote site/flash. The entire copying process takes several minutes and differs from protocol to protocol and from network to network. |
Syntax |
|
Parameter Description |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command copies the configuration from a remote site to flash. |
Syntax |
|
Parameter Description |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command copies variables from the running configuration to the startup configuration file in NVRAM, where the running- config is the current configuration in the router and the startup config is the configuration that is loaded when the Switch boots up. |
Syntax |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command writes the system logs to a remote site. |
Syntax |
|
Parameter Description |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command manages the system clock. |
Syntax |
|
Parameter Description |
|
Mode | Global Configuration Mode |
Command Objective |
This command displays the system date and time. |
Syntax |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command displays the maximum transmission unit frame size for all the frames transmitted and received on all the interfaces in a Switch. |
Syntax |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command restarts the Switch. |
Syntax |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command restore default configuration. |
Syntax |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command displays the telnet server status. |
Syntax |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command configures the speed and duplex operation. |
Syntax |
|
Parameter Description |
|
Mode | Interface Configuration |
Command Objective |
This command enables auto-negotiation on the interface. The no form of the command disables auto-negotiation on the interface. The port in which auto-negotiation is enabled, negotiates with the other end for port properties like speed, duplexity and so one. The normal port uses the port property values configured by the administrator. |
Syntax |
|
Mode | Interface Configuration |
Command Objective |
This command set the status of the traffic to be allowed in these configured egress ports when the ingress is this interface. |
Syntax |
|
Parameter Description |
|
Mode | Interface Configuration |
Command Objective |
This command displays the Port Isolation table. |
Syntax |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command sets the system time zone with respect to UTC. The no form of command resets the system time zone to GMT. |
Syntax |
|
Parameter Description |
|
Mode | Global Configuration Mode |
Command Objective |
This command displays the PTP clock properties. |
Syntax |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command allows to configure interface such as VLAN. |
Syntax |
|
Parameter Description |
|
Mode | Global Configuration Mode |
Command Objective |
This command sets the IP address for an interface. |
Syntax |
|
Parameter Description |
|
Mode |
Interface Configuration Mode This command is applicable in VLAN Interface Mode / OOB Interface Mode. |
Command Objective |
This command sets the DHCP/BOOTP IP address for an interface. |
Syntax |
|
Parameter Description |
|
Mode | Interface Configuration Mode |
Command Objective |
Set the AdminStatus of Interface down/up. |
Syntax |
|
Mode | Interface Configuration Mode |
Command Objective |
Descriptions about the interface. |
Syntax |
|
Mode | Interface Configuration Mode |
Command Objective |
This command shows the maximum number of learning address and lock mode. |
Syntax |
|
Parameter Description |
|
Mode |
Privileged EXEC Mode |
Command Objective |
Used to diagnose the copper cable. If there is an error on the cable, it can determine the type of error and the position where the error occurred. |
Syntax |
|
Parameter Description |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command displays the interface status and configuration. |
Syntax |
|
Parameter Description |
|
Mode |
Privileged EXEC Mode |
Command Objective |
This command displays the interface statistics for each port. |
Syntax |
|
Parameter Description |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command clears all the current interface counters from the interface unless the optional arguments type and number are specified to clear only a specific interface type (serial, Ethernet, Token Ring, and so on). |
Syntax |
|
Parameter Description |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command displays the IP interface configuration. |
Syntax |
|
Parameter Description |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command displays the flow-control information. |
Syntax |
|
Parameter Description |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command enables/disable trap generation on the interface. The interface generates a linkUp or linkDown trap. The linkUp trap denotes that the communication link is available and ready for traffic flow. The linkDown trap denotes that the communication link failed and is not ready for traffic flow. |
Syntax |
|
Mode | Interface Configuration Mode |
Command Objective |
This command is used to set the send or receive flow-control value for an interface. |
Syntax |
|
Parameter Description |
|
Mode | Interface Configuration Mode |
Command Objective |
This command configures the number of learning address on certain interface port. |
Syntax |
|
Parameter Description |
|
Mode | Interface Configuration Mode |
Was This Article Helpful?
Help us to improve our support portal