2.1. System Configuration Commands
2.1.1. hostname
Command Purpose
To specify or modify the host name for the network server, use the
hostname
command in Global Config.
To restore the configuration to the default, use the no hostname
command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
hostname NAME
no hostname
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
NAME |
New host name for the network server |
Host name is a string with 1-63 characters |
Command Mode
Global Config
Default
The default host name is “Switch”.
Usage
The host name is used in prompts and default configuration filenames.
The name must also follow the rules for ARPANET host names. They have as interior characters only letters, digits, hyphens, and underline. Names must be 64 characters or fewer.
Examples
The following example changes the host name to “sandbox”:
Switch# configure terminal
Switch(config)# hostname sandbox
sandbox(config)#
The following example unsets the configured hostname:
sandbox# configure terminal
sandbox(config)# no hostname
Switch(config)#
2.1.2. management ip address
Command Purpose
Use this command to set the management IP address on the Switch.
To remove the management IP address, use the no form of this command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
management ip address ( A.B.C.D/M | A.B.C.D mask ) ( gateway A.B.C.D | )
no management ip address
management ipv6 address ( X:X::X:X/M | X:X::X:X mask ) ( gateway X:X::X:X | )
no management ipv6address
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
A.B.C.D/M |
The management IPv4 address with mask length configured |
IPv4 address with mask length 1-32 |
A.B.C.D mask |
The management IPv4 address and mask configured |
IPv4 address and mask |
X:X::X:X/M |
The management IPv6 address with mask length configured |
IPv4 address with mask length 1-128 |
X:X::X:X mask |
The management IPv6 address and mask configured |
IPv6 address and mask |
gateway A.B.C.D |
Add IPv4 gateway |
IPv4 address |
gateway X:X::X:X |
Add IPv6 gateway |
IPv6 address |
Command Mode
Global Config
Default
None
Usage
None
Examples
The following example sets the management ipv4 address:
Switch# configure terminal
Switch(config)# management ip address 192.168.100.100/24
The following example unsets the management ipv4 address:
Switch# configure terminal
Switch(config)# no management ip address
The following example sets the management ipv6 address:
Switch# configure terminal
Switch(config)# management ipv6 address 2001:1000::1000/96
The following example unsets the management ipv6 address:
Switch# configure terminal
Switch(config)# no management ipv6 address
Related Commands
None
2.1.3. management route
Command Purpose
Use this command to set the gateway on the Switch for management ip.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
management route ( add | del ) gateway A.B.C.D
management ipv6 route ( add | del ) gateway X:X::X:X
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
add |
Add the route |
|
del |
Del the route |
|
ipv6 |
Configure IPv6 gateway |
|
gateway |
Add gateway |
|
A.B.C.D |
The IPv4 address of the gateway |
IPv4 address |
X:X::X:X |
The IPv6 address of the gateway |
IPv6 address |
Command Mode
Global Config
Default
None
Usage
None
Examples
The following example sets the gateway of 192.168.100.254 for the switch:
Switch# configure terminal
Switch(config)# management route add gateway 192.168.100.254
The following example sets the gateway of 200110001 for the switch:
Switch# configure terminal
Switch(config)# management ipv6 route add gateway 2001:1000::1
Related Commands
None
2.1.4. show management arp
Command Purpose
Use This command to show the ARP of the management port.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show management arp
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following example shows the ARP of the management port:
Switch# show management arp
Address Hardware Addr Interface
----------------+--------------------+----------
10.10.39.241 24:6e:96:62:3f:c4 mgmt-if
10.10.39.254 00:1e:08:09:67:6d mgmt-if
Related Commands
None
2.1.5. show management ip address
Command Purpose
Use This command to show the IP address of the management port.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show management ip address
show management ipv6 address
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following example shows the IP address of the management port:
Switch# show management ip address
Management IP address is: 192.168.100.100/24
Gateway: 192.168.100.254
Switch# show management ipv6 address
Management IPv6 address is: 2001:1000::1000/96
Gateway: 2001:1000::1
Related Commands
None
2.1.6. show management interface
Command Purpose
Use this command to display the configurations and statistics on management interface.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show management interface
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following example shows how to display the configurations and statistics on management interface:
Switch# show management interface
Management Interface current state: DOWN
Description:
Link encap: Ethernet HWaddr: 94:EB:AB:88:2A:B4
Inet addr: 192.168.100.102 Mask: 255.255.255.0
Bcast: 192.168.100.255 MTU: 1500
Speed: 10 Duplex: Half
Auto-negotiation: Enable
Received: 2 Packets, 128 Bytes (128.0 b)
Transmitted: 1 Packets, 78 Bytes (78.0 b)
Related Commands
clear counters mgmt-if
2.1.7. clear counters mgmt-if
Command Purpose
Use this command to clear statistics counters on management interface.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
clear counters mgmt-if
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following example shows how to clear statistics counters on management interface:
Switch# clear counters mgmt-if
Related Commands
None
2.1.8. enable password
Command Purpose
Use this command to set the password which is needed when user enter Privileged EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
enable password ( privilege LEVEL | ) ( 8 | ) LINE
no enable password
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
Privilege LEVEL |
User privilege level |
Level value <1-4> |
8 |
Specifies a hidden password will follow |
- |
LINE |
The password string |
- |
Command Mode
Global Config
Default
None
Usage
If this command is set, user need to provide the password when enter Privileged EXEC mode.
Examples
The following example shows how to set the password:
Switch# configure terminal
Switch(config)# enable password 123
Switch(config)# exit
Switch# disable
Switch> enable
Password:
Switch#
Related Commands
None
2.1.9. terminal length
Command Purpose
To set the number of lines on the current terminal screen for the current session, use the terminal length command in EXEC mode. To restore the configuration to the default, use the no form of this command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
terminal length LENGTH
terminal no length
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
LENGTH |
Number of lines on the screen |
The value is a number from 0 to 512 A value of zero disables pausing between screens of output |
Command Mode
Privileged EXEC
Default
Automatically detected by terminal screen length by default
Usage
The system uses the length value to determine when to pause during multiple-screen output. A value of zero prevents the switch from pausing between screens of output.
Some types of terminal sessions do not require you to specify the screen length because the screen length specified can be learned by some remote hosts. For example, the rlogin protocol uses the screen length to set up terminal parameters on a remote UNIX host.
Examples
In the following example, the system is configured to prevent output from pausing if it exceeds the length of the screen:
Switch# terminal length 0
Related Commands
service terminal-length
2.1.10. service terminal-length
Command Purpose
To set the number of lines on the current terminal screen for all sessions, use the service terminal-length command in Global Configuration. To restore the configuration to the default, use the no form of this command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
service terminal-length LENGTH
no service terminal-length
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
LENGTH |
Number of lines on the screen |
The value is a number from 0 to 512. A value of zero disables pausing between screens of output |
Command Mode
Global Config
Default
None
Usage
The system uses the length value to determine when to pause during multiple-screen output. A value of zero prevents the switch from pausing between screens of output.
Some types of terminal sessions do not require you to specify the screen length because the screen length specified can be learned by some remote hosts. For example, the rlogin protocol uses the screen length to set up terminal parameters on a remote UNIX host.
Examples
In the following example, the system is configured to prevent output from pausing if it exceeds the length of the screen:
Switch# configure terminal
Switch(config)# service terminal-length 0
Related Commands
terminal length
2.1.14. show version
Command Purpose
To display the version information of the hardware and firmware, use the show version command in EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show version ( slot ID | )
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
ID |
slot id |
1-29 |
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following example shows how to display version information of the hardware and firmware:
Switch# show version
<system information>
Related Commands
None
2.1.15. line vty
Command Purpose
To set the max login VTY, use this command in Global Config. To restore the configuration to the default, use the no form of this command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
line vty maximum MAX_VTY
no line vty maximum
line vty VTY
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
MAX_VTY |
Max login VTY |
The default value is 8.range <0-8> |
VTY |
Number of VTY |
Range <0-7> |
Command Mode
Global Config
Default
8
Usage
None
Examples
The following example shows how to set the max VTY to 5:
Switch# configure terminal
Switch(config)# line vty maximum 5
The following example shows how to enter Line Configuration mode:
Switch# configure terminal
Switch(config)# line vty 2
Related Commands
None
2.1.16. line-password
Command Purpose
This command to set the password for the vty user interface.
Use the no form of this command to
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
line-password LINE
no line-password
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
LINE |
The password string |
String length [1,64), Support special character |
Command Mode
Line Configuration
Default
None
Usage
If this command is set, user need to provide the password when enter vty interface.
Examples
The following example shows how to set the password:
Switch# configure terminal
Switch(config)# line vty 0 7
Switch(config-line)# line-password abc
Switch(config-line)# exit
Related Commands
None
2.1.17. exec-timeout
Command Purpose
To set how much time the login user do not do any operation then the user should be forced to quit, use the no form of this command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
exec-timeout MINUTES SECONDS
no exec-timeout
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
MINUTES |
Timeout in minute |
Range <0-35791> |
SECONDS |
Timeout in second |
Range <0-2147483> |
Command Mode
Line Configuration
Default
600 seconds
Usage
When the user login again then config will be effected
Examples
The following example shows how to set max time the login user do not do any operation then the user should be forced to quit:
Switch# configure terminal
Switch(config)# line vty 0
Swicth(config-line)# exec-timeout 3 200
Related Commands
None
2.1.18. access-class
Command Purpose
To apply IPv4 ACL on line vty. To restore to default, use the no form of this command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
access-class ACL-NAME in
no access-class in
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
ACL-NAME |
The name of the IPv4 acl |
A string with up to 40 characters |
Command Mode
Line Configuration
Default
No ACL
Usage
If an ACL be applied to line VTY, none of the entries in the ACL will be matched except for IP address and port number.
Examples
The following example shows how to apply IPv4 ACL on vty:
Switch(config-line)# access-class acl4 in
Related Commands
ip access-list
2.1.19. ipv6 access-class
Command Purpose
To apply IPv6 ACL on line vty. To restore to default, use the no form of this command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
ipv6 access-class ACL-NAME in
no ipv6 access-class in
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
ACL-NAME |
The name of the IPv6 acl |
A string with up to 40 characters |
Command Mode
Line Configuration
Default
No ACL
Usage
If an ACL be applied to line VTY, none of the entries in the ACL will be matched except for IP address and port number.
Examples
The following example shows how to apply IPv6 ACL on vty:
Switch(config-line)# ipv6 access-class aclv6 in
Related Commands
ipv6 access-list
2.1.20. reboot
Command Purpose
To reload the operating system, use the reload command in Privileged EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
reboot
Command Mode
Privileged EXEC
Default
None
Usage
The reboot command halts the system. Use the reboot command after configuration information is entered into a file and saved to the startup configuration.
Examples
The following example is sample dialog from the reboot command:
Switch# reboot
Related Commands
reload
2.1.21. schedule reboot at
Command Purpose
To schedule a reload of the software to take place at the specified time, use the schedule reboot at command in Global Config. To cancel the scheduled reboot task, use the no form of this command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
schedule reboot at HH:MM ( MM/DD | MM/DD/YYYY | YYYY/MM/DD )
no schedule reboot
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
HH:MM |
The hour and minutes |
The time range is 00:00 - 23:59 |
MM/DD |
Specify the date for current year (MM/DD format) |
date range is [1/1, 12/31] |
MM/DD/YYYY |
Specify the date (MM/DD/YYYY format, year range is [2000, 2037]) |
year range is [2000, 2037] |
YYYY/MM/DD |
Specify the date (YYYY/MM/DD format) |
year range is [2000, 2037] |
Command Mode
Global Config
Default
No scheduled reboot task is defined.
Usage
If you specify the month and day, the reload is scheduled to take place at the specified time and date. If you do not specify the month and day, the reload takes place at the specified time on the current day.
Examples
The following example is sample dialog from the schedule reboot at command:
Switch# configure terminal
Switch(config)# schedule reboot at 12:12 2022/12/25
Related Commands
schedule reboot delay
2.1.22. schedule reboot delay
Command Purpose
To schedule a reload of the software to take place after the specified time, use the schedule reboot delay command in Global Config. To cancel the scheduled reboot task, use the no form of this command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
schedule reboot delay { HH:MM | MINUTES }
no schedule reboot
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
HH:MM |
The hour and minutes |
The time range is 00:00 - 23:59 |
MINUTES |
The minutes |
The range is 1-720 |
Command Mode
Global Config
Default
No scheduled reboot task is defined.
Usage
None
Examples
The following example is sample dialog from the schedule reboot delay command:
Switch# configure terminal
Switch(config)# schedule reboot delay 300
Related Commands
schedule reboot at
2.1.23. boot system
Command Purpose
To specify the system image that the switch loads at startup, use the following boot system commands in Privileged EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
boot system ( tftp: mgmt-if SERVERIP | flash:/ ) FILE_NAME
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
flash:/ |
System image file for next booting |
- |
tftp |
System image file for next booting |
- |
mgmt-if |
Management port |
- |
SERVERIP |
The tftp server ip |
- |
FILE_NAME |
The file name that will be used to load at startup |
The full path and file name, up to 255 characters |
Command Mode
Privileged EXEC
Default
None
Usage
Management IP address in startup-config file will be used as source address when system boot via TFTP.
Examples
The following example is sample dialog from the boot system command:
Switch# boot system flash:/boot/Internal-1.0.0.25.bin
Related Commands
show boot
2.1.24. show boot
Command Purpose
To display the current image and the image the next startup will load, use the show boot command in Privileged EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show boot
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following is sample output from the show boot command:
Switch# show boot
The current boot image version is: E330-3.0.0.23.it
The current running image is: tftp://10.10.29.160/humberOS-e330-ma-v3.0.0.23.it.r.bin
The next running image is: tftp://10.10.29.160/humberOS-e330-ma-v3.0.0.23.it.r.bin
Related Commands
show boot images
2.1.25. show boot images
Command Purpose
To display all booting images available in the flash system, use the show boot images command in Privileged EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show boot images
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following is sample output from the show boot images command:
Switch# show boot images
System image files list:
Current boot image version: 1.0.0.25
Create Time Version File name
===============================================================
* 2023-07-25 10:58:29 v3.0.0.22it Internal-.00.22.bin
Related Commands
show boot
2.1.26. show memory
Command Purpose
To display memory utilization information about the active processes, use the show memory command in Privileged EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show memory ( all | bgp | bhm | chsm | dhclient | dot1x | imi | ipv6 | lacp | ldp | lib | mstp | nsm | oamd | onmd | ospf | pim | ptp | rip | rsvp | shal | summary )
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
all |
All memory information |
- |
bgp |
Border Gateway Protocol (BGP) |
- |
bhm |
Health monitoring |
- |
chsm |
Chassis management |
- |
dhclient |
DHCP client module |
- |
dhcpd |
DHCP |
- |
dhcprelay |
DHCP relay |
- |
dhcprelay6 |
DHCP relay6(IPv6) |
- |
dot1x |
IEEE 802.1X Port-Based Access Control |
- |
imi |
Integrated Management Interface (IMI) |
- |
ipv6 |
Internet Protocol version 6 (IPv6) |
- |
lacp |
Link Aggregation Control Protocol (LACP) |
- |
ldp |
Label Distribution Protocol (LDP) |
- |
lib |
Library information |
- |
mstp |
Spanning Tree Protocols (STP/RSTP/MSTP) |
- |
nsm |
Network Service Module (NSM) |
- |
oamd |
Bidirectional Forwarding Detection (BFD) |
- |
onmd |
LLDP and EFM_OAM |
- |
ospf |
Open Shortest Path First (OSPF) |
- |
pim |
Protocol Independent Multicast (PIM) |
- |
ptp |
Precision Time Protocol (PTP) |
- |
rip |
Routing Information Protocol (RIP) |
- |
rsvp |
Resource Reservation Protocol (RSVP) |
- |
shal |
Hal server monitoring |
- |
summary |
Summary memory information |
- |
monitor |
monitor |
- |
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following is sample output from the show memory command with keyword bgp:
Switch# show memory bgp
Library memories for BGP
Memory type Alloc cells Alloc bytes
============================== ============ ==============
Temporary memory : 6596 322216
Hash : 10 320
Hash index : 10 40960
Hash bucket : 55 880
Link list : 13 400
Link list node : 115 1840
Show : 1 512
Show page : 1 8192
Show server : 1 64
Prefix IPv4 : 6 48
Route table : 6 48
Route node : 309 19776
Vector : 3383 324768
Vector index : 3383 48824
SNMP subtree : 8 6144
Host config : 1 16
Message of The Day : 1 128
IMI Client : 2 1056
VTY master : 1 16
VTY if : 52 39936
VTY connected : 3 192
Message handler : 2 128
Host : 1 96
Log information : 2 128
Context : 1 512
Memories for BGP
Memory type Alloc cells Alloc bytes
============================== ============= ===============
BGP structure : 1 768
BGP VR structure : 1 384
BGP global structure : 1 64
BGP peer : 1 2048
Ext community : 1 16
BGP as list master : 1 32
Community list handler : 1 32
BGP Damp Reuse List Array : 1 2048
BGP table : 31 248
BGP VRF list : 1 64
Related Commands
show processes memory sorted
2.1.27. show cpu traffic-limit
Command Purpose
Use this command to show the CPU traffic-limit configurations.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show cpu traffic-limit
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following is sample output from the show cpu traffic-limit :
Switch# show cpu traffic-limit
reason rate (pps) class
bpdu 64 3
cfm 512 2
slow-protocol 128 1
eapol 128 0
erps 128 2
smart-link 128 2
udld 128 3
arp 640 1
dhcp 128 0
rip 64 1
ldp 512 1
ospf 256 1
pim 128 1
vrrp 512 1
rsvp 512 1
ipda 1024 0
icmp-redirect 128 0
mcast-rpf-fail 128 1
macsa-mismatch 128 0
port-security-discard 128 0
vlan-security-discard 128 0
mtu-dontfrag 64 0
mtu-frag 64 0
ptp 512 2
ip-option 512 0
ucast-ttl-fail 64 0
mpls-ttl-fail 64 0
igmp 128 2
sflow-ingress 128 0
sflow-egress 128 0
fwd-to-cpu 64 0
mpls-tp-pwoam 128 2
Total rate: 2048 (pps)
Related Commands
None
2.1.28. show processes cpu sorted
Command Purpose
To display CPU utilization information about the active processes sorted by percentage in a device, use the show processes cpu sorted command in Privileged EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show process cpu sorted
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following is sample output from the show process cpu sorted :
Switch# show processes cpu sorted
PID TIME %CPU TTY COMMAND
924 00:20:03 2.0 ? hsrvd
956 00:07:17 0.7 ? nsm
1007 00:02:44 0.2 ? imi
959 00:01:24 0.1 ? snmpd
1317 00:00:01 0.1 pts/0 imish
5 00:00:45 0.0 ? events/0
983 00:00:23 0.0 ? mstpd
985 00:00:15 0.0 ? onmd
966 00:00:15 0.0 ? lacpd
963 00:00:12 0.0 ? bhm
929 00:00:12 0.0 ? chsm
964 00:00:11 0.0 ? oamd
919 00:00:10 0.0 ? ntpd
1003 00:00:08 0.0 ? pimd
942 00:00:08 0.0 ? sshd
957 00:00:08 0.0 ? dhcrelay
973 00:00:07 0.0 ? authd
1005 00:00:07 0.0 ? ldpd
977 00:00:07 0.0 ? rmond
1021 00:00:07 0.0 ? ripd
1027 00:00:07 0.0 ? ospfd
1032 00:00:07 0.0 ? bgpd
1 00:00:05 0.0 ? init
779 00:00:04 0.0 ? jffs2_gcd_mtd1
1106 00:00:01 0.0 ? imish
3 00:00:00 0.0 ? ksoftirqd/0
916 00:00:00 0.0 ? syslog-ng
65 00:00:00 0.0 ? bdi-default
965 00:00:00 0.0 ? ptpd
917 00:00:00 0.0 ? crond
63 00:00:00 0.0 ? sync_supers
1096 00:00:00 0.0 ? telnetd
6 00:00:00 0.0 ? khelper
105 00:00:00 0.0 ? khungtaskd
2 00:00:00 0.0 ? kthreadd
4 00:00:00 0.0 ? watchdog/0
9 00:00:00 0.0 ? netns
10 00:00:00 0.0 ? async/mgr
66 00:00:00 0.0 ? kblockd/0
73 00:00:00 0.0 ? kseriod
88 00:00:00 0.0 ? rpciod/0
106 00:00:00 0.0 ? kswapd0
157 00:00:00 0.0 ? aio/0
164 00:00:00 0.0 ? nfsiod
171 00:00:00 0.0 ? crypto/0
712 00:00:00 0.0 ? mtdblockd
741 00:00:00 0.0 ? kpsmoused
789 00:00:00 0.0 ? PETH/Tx
912 00:00:00 0.0 ? angel
1098 00:00:00 0.0 ? telnetd
1414 00:00:00 0.0 pts/0 imish
1415 00:00:00 0.0 pts/0 more
1416 00:00:00 0.0 ? ps
Related Commands
None
2.1.29. show processes cpu history
Command Purpose
To display CPU utilization information for a period of time, use the show processes cpu history command in Privileged EXEC mode, the period of 1s, 1min, 5min could be shown.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show process cpu history
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following is sample output from the show processes cpu history command:
Switch# show processes cpu history
CPU usage for five seconds: 4.17%; one minute: 3.70%; five minutes: 3,68%
Related Commands
None
2.1.30. show processes memory sorted
Command Purpose
To display memory utilization information about the active processes sorted by percentage in a device, use the show processes memory sorted command in Privileged EXEC mode. Here, CPU usage for each process means the CPU timeslice used by this process from the process was started to this command has been operated.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show processes memory sorted ( core | physical | virtual )
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
core |
Size in physical pages of the core image of the process |
- |
physical |
Non-swapped physical memory that a task has used |
- |
virtual |
Virtual memory usage of entire process |
- |
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following is sample output from the show processes memory sorted command without keywords:
Switch# show processes memory sorted
Total: 256108; Used: 89644; Free: 166464; Buffers: 0
PID TTY RSS VSZ SZ COMMAND
1317 pts/0 9516 13104 3276 imish
1106 ? 9428 13104 3276 imish
1463 pts/0 7436 13104 3276 imish
956 ? 6836 14644 3661 nsm
1007 ? 5948 9624 2406 imi
924 ? 5912 17652 4413 hsrvd
959 ? 3336 8076 2019 snmpd
1032 ? 2724 8204 2051bgpd
1027 ? 2488 7140 1785 ospfd
1003 ? 2472 7152 1788 pimd
957 ? 2340 6572 1643 dhcrelay
983 ? 2336 6592 1648 mstpd
1021 ? 2324 6600 1650 ripd
1005 ? 2320 6732 1683 ldpd
942 ? 2284 6772 1693 sshd
985 ? 2208 6592 1648 onmd
929 ? 2132 7168 1792 chsm
966 ? 2028 6140 1535 lacpd
973 ? 2028 6284 1571 authd
965 ? 2024 6408 1602 ptpd
964 ? 1952 6364 1591 oamd
977 ? 1948 6200 1550 rmond
963 ? 1708 5980 1495 bhm
919 ? 1120 3792 948 ntpd
916 ? 1060 2300 575 syslog-ng
1465 pts/0 764 2516 629 ps
917 ? 668 3040 760 crond
1 ? 656 2928 732 init
1464 pts/0 472 1668 417 more
1096 ? 416 2928 732 telnetd
1098 ? 272 2928 732 telnetd
912 ? 172 1496 374 angel
2 ? 0 0 0 kthreadd
3 ? 0 0 0 ksoftirqd/0
4 ? 0 0 0 watchdog/0
5 ? 0 0 0 events/0
6 ? 0 0 0 khelper
9 ? 0 0 0 netns
10 ? 0 0 0 async/mgr
63 ? 0 0 0 sync_supers
65 ? 0 0 0 bdi-default
66 ? 0 0 0 kblockd/0
73 ? 0 0 0 kseriod
88 ? 0 0 0 rpciod/0
105 ? 0 0 0 khungtaskd
106 ? 0 0 0 kswapd0
157 ? 0 0 0 aio/0
164 ? 0 0 0 nfsiod
171 ? 0 0 0 crypto/0
712 ? 0 0 0 mtdblockd
741 ? 0 0 0 kpsmoused
779 ? 0 0 0 jffs2_gcd_mtd1
789 ? 0 0 0 PETH/Tx
Related Commands
None
2.1.31. terminal monitor
Command Purpose
To copy debug output to the current terminal line, use the terminal monitor command in Privileged EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
terminal monitor
terminal no monitor
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following is sample output from the terminal monitor command:
Switch# terminal monitor
Jan 1 16:09:30 Switch SH-6: ready to service
Related Commands
None
2.1.32. configure terminal
Command Purpose
To enter Global Config, use configure terminal command in Privileged EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
configure terminal
Command Mode
Privileged EXEC
Default
None
Usage
Use this command to enter Global Config. Note that commands in this mode are written to the running configuration file as soon as you enter them (using the Enter key/Carriage Return).
After you enter the configure command, the system prompt changes from
to (config), indicating that the switch is in Global Config. To
leave Global Config and return to Privileged EXEC mode, type end
or press Ctrl-Z.
Examples
In the following example, the user enters Global Config:
Switch# configure terminal
Switch(config)#
Enter configuration commands one per line. End with CNTL/Z.
Switch(config)#
Related Commands
enable
disable
2.1.33. disable
Command Purpose
To exit Privileged EXEC mode and return to user EXEC mode, enter the disable command in EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
disable
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
In the following example, the user enters Privileged EXEC mode using the enable command, then exits back to user EXEC mode using the disable command. Note that the prompt for user EXEC mode is >, and the prompt for Privileged EXEC mode is #:
Switch# configure terminal
Switch> enable
Password: <password>
Switch# disable
Switch>
Related Commands
enable
2.1.34. enable
Command Purpose
To enter Privileged EXEC mod, use the enable command in user EXEC or Privileged EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
enable
Command Mode
User EXEC
Privileged EXEC
Default
None
Usage
None
Examples
In the following example, the user enters Privileged EXEC mode using the enable command. The system prompts the user for a password before allowing access to the Privileged EXEC mode. The password is not printed to the screen. The user then exits back to user EXEC mode using the disable command. Note that the prompt for user EXEC mode is the greater than symbol (>), and the prompt for Privileged EXEC mode is the number sign (#).:
Switch# configure terminal
Switch> enable
Password: <password>
Switch# disable
Switch>
Related Commands
disable
2.1.35. end
Command Purpose
To end the current configuration session and return to Privileged EXEC mode, use the end command in Global Config.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
end
Command Mode
Global Config
Default
None
Usage
This command will bring you back to Privileged EXEC mode regardless of what configuration mode or configuration sub-mode you are in.
This Global Config command can be used in any configuration mode.
Use this command when you are done configuring the system and you want to return to EXEC mode to perform verification steps.
Examples
In the following example, the end command is used to exit from interface configuration mode and return to Privileged EXEC mode. A show command is used in Privileged EXEC mode to verify the configuration:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# end
Switch# show interface eth-0-1
Related Commands
exit
2.1.36. exit (global)
Command Purpose
To exit any configuration mode to the lower mode in the CLI mode hierarchy, use the exit command in any configuration mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
exit
Command Mode
All Configuration Mode
Default
None
Usage
The exit command is used in the CLI to exit from the current command mode to the lower mode in the CLI mode hierarchy.
For example, use the exit command in Global Config to return to Privileged EXEC mode. Use the exit command in interface, line, or router configuration mode to return to Global Config.
Examples
The following example displays an exit from the interface configuration mode to return to the Global Config:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# exit
Switch(config)#
Related Commands
end
exit (EXEC)
2.1.37. exit (EXEC)
Command Purpose
To close an active terminal session by logging off the switch, use the exit command in EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
exit
Command Mode
Privileged EXEC
Default
None
Usage
Use the exit command in EXEC mode to exit the active session (log off the device). This command can be used in any EXEC mode (such as User EXEC mode or Privileged EXEC mode) to exit from the EXEC process.
Examples
In the following example, the exit (global) command is used to move from Global Config to Privileged EXEC mode, the disable command is used to move from Privileged EXEC mode to user EXEC mode, and the exit (EXEC) command is used to log off (exit the active session):
Switch# configure terminal
Switch(config)# exit
Switch# disable
Switch> exit
Related Commands
quit
2.1.38. quit
Command Purpose
To close an active terminal session by logging off the switch, use the quit command in EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
quit
Command Mode
All Configuration Mode
Default
None
Usage
Use the quit command in EXEC mode to exit the active session (log off the device). This command can be used in any EXEC mode (such as User EXEC mode or Privileged EXEC mode) to exit from the EXEC process.
Examples
In the following example, the quit command is used to move from Global Configuration to Privileged EXEC mode, the disable command is used to move from Privileged EXEC mode to user EXEC mode, and the quit command is used to log off (exit the active session):
Switch# configure terminal
Switch(config)# quit
Switch# disable
Switch> quit
Related Commands
exit
2.1.39. cd
Command Purpose
Change the current directory to dir, use the cd command in EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
cd ( dir | )
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
dir |
(Optional) The directory or file systems followed by a colon. If flash: argument is specified, change the current directory to flash: . If udisk: argument is specified, change the current directory to udisk:. If you don`t use USB device, failed to cd udisk |
- |
Command Mode
Privileged EXEC
Default
The initial default file system is flash:. If you do not specify a directory on a file system, the default is the root directory on that file system.
Usage
For all EXEC commands that have an optional file system argument, the system uses the file system specified by the cd command when you omit the optional file system argument. For example, the dir EXEC command, which displays a list of files on a file system, contain an optional file system argument. When you omit this argument, the system lists the files on the file system specified by the cd command.
Examples
In the following example, the cd command is used to set the default file system to the Flash memory:
Switch# configure terminal
Switch1# cd
Switch# pwd
flash:/
In the following example, the cd command is used to set the default file system to the USB device:
Switch# configure terminal
storage device
Switch# cd udisk:
Switch# pwd
udisk:/
In the following example, the cd command is used to set the file system without plug in the USB mass storage device:
Switch# cd udisk:
% Failed to cd udisk:: No such file or directory
In the following example, the cd command is used to set the file
system with plug in the USB mass storage device
Related Commands
dir
ls
pwd
2.1.40. copy
Command Purpose
To copy file system, use the copy command in Privileged EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
copy source-name destination-name
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
source-name |
The location URL of the source file to be copied. The source can be either local or remote |
- |
destination-name |
The destination URL of the copied file. The destination can be either local or remote |
- |
Command Mode
Privileged EXEC
Default
None
Usage
The exact format of the source and destination URLs varies according to the file or directory location. You may enter a particular file or a filename that follows the standard file system syntax (filesystem:[/filepath][/filename]).
Examples
The following example shows how to get image from TFTP server through in band management interface.:
Switch# copy tftp://192.168.0.1/image flash:/boot/image
Download from URL to temporary file.
Get file from tftp://192.168.0.1/image
..............................................................................................................
Received 15591515 bytes in 16.6 seconds
Copy the temporary file to its destination.
..............................................................................................................
15591515 bytes in 69.8 seconds, 218 kbytes/second
The following example shows how to get image from TFTP server through out band management interface:
Switch# copy mgmt-if tftp://192.168.0.1/image flash:/boot/image
Related Commands
delete
2.1.41. delete
Command Purpose
To delete a file on the flash, use the delete command in Privileged EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
delete file-name
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
file-name |
The file name that is supposed to be deleted |
- |
Command Mode
Privileged EXEC
Default
None
Usage
If you attempt to delete the configuration file or image, the system prompts you to confirm the deletion. Also, if you attempt to delete the system specified file such as DHCP snooping bindings, the system prompts you to confirm the deletion.
Examples
The following example deletes the file named test from the flash:
Switch# delete flash:/test
Are you sure to delete flash:/test? [confirm]:y
Related Commands
copy
2.1.42. dir
Command Purpose
To display a list of files on a file system, use the dir command in EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
dir ( flash: | udisk: | ) ( directory-name | ) ( file-name | )
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
flash |
The flash system |
- |
udisk |
The USB mass storage device. If you don`t use USB mass storage device, failed to dir udisk |
- |
directory-name |
The directory in flash or udisk |
- |
file-name |
The file name |
- |
Command Mode
Privileged EXEC
Default
None
Usage
Use the dir (Flash file system) command to display flash or udisk information.
Examples
The following is sample output from the dir command.:
Switch# dir
Directory of flash:/
total 42
drwxr-xr-x 2 0 Jul 30 15:42 boot
drwxr-xr-x 3 0 Jan 1 1970 conf
drwxr-xr-x 2 0 Jan 1 1970 log
-rw-r----- 1 1020 Jul 29 19:18 startup-config.conf
-rw-r--r-- 1 10270 Jul 30 10:10 syslog
-rw-r--r-- 1 6886 Jul 29 23:59 syslog.1.gz
63.0M bytes total (30.4M bytes free)
Switch # cd udisk:
Switch # dir
Directory of udisk:/
total 12
drwxrwxrwx 2 4096 Jun 2 2023 test
drwxrwxrwx 2 4096 Jun 8 2023 test1
drwxrwxrwx 2 4096 Jun 7 2023 test2
3.7G bytes total (3.7G bytes free)
The following is sample output from udisk if plug in the USB mass storage device.:
Switch# cd udisk:
Switch# dir
Directory of udisk:/
total 12
drwxrwxrwx 2 4096 Jun 2 2023 test
drwxrwxrwx 2 4096 Jun 8 2023 test1
drwxrwxrwx 2 4096 Jun 7 2023 test2
3.7G bytes total (3.7G bytes free)
Related Commands
ls
2.1.43. ls
Command Purpose
To display a list of files on a file system, use the ls command in EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
ls ( flash: | udisk: | ) ( directory-name | ) ( file-name | )
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
flash |
The flash system |
- |
udisk |
The USB mass storage device. If you don`t use USB mass storage device, failed to dir udisk |
- |
directory-name |
The directory in flash or udisk |
- |
file-name |
The file name |
- |
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following is sample output from the ls command:
Switch# ls
Directory of flash:/
total 42
drwxr-xr-x 2 0 Jul 30 15:42 boot
drwxr-xr-x 3 0 Jan 1 1970 conf
drwxr-xr-x 2 0 Jan 1 1970 log
-rw-r----- 1 1020 Jul 29 19:18 startup-config.conf
-rw-r--r-- 1 10270 Jul 30 10:10 syslog
-rw-r--r-- 1 6886 Jul 29 23:59 syslog.1.gz
63.0M bytes total (30.4M bytes free)
Related Commands
dir
2.1.44. more
Command Purpose
To display the contents of a file, use the more command in EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
more ( flash: | udisk: ) ( directory-name | ) file-name
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
flash |
The flash system |
- |
udisk |
The USB mass storage device. If you don`t use USB mass storage device, failed to dir udisk |
- |
directory-name |
The directory in flash or udisk |
- |
file-name |
The file name |
- |
Command Mode
Privileged EXEC
Default
None
Usage
The system can only display a file in ASCII format.
Examples
The following partial sample output displays the configuration file named startup-config in flash:
Switch# more flash:/startup-config.conf
Related Commands
dir
ls
2.1.45. mkdir
Command Purpose
To create a new directory in a Flash file system or udisk device, use the mkdir command in EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
mkdir directory-name
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
directory-name |
The directory in flash or udisk |
- |
Command Mode
Privileged EXEC
Default
None
Usage
This command is valid only for local file systems.
Examples
The following example creates a directory named newdir in Flash.:
Switch# mkdir flash:/newdir
The following example creates a directory named newdir in USB mass storage device if plug in it:
Switch# mkdir udisk:/newdir
Related Commands
rmdir
dir
2.1.46. rename
Command Purpose
To rename a file in a Class C Flash file system or udisk device, use the rename command in EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
rename old-filename new-filename
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
old-filename |
The original file name in flash |
- |
new-filename |
The new file name in flash |
- |
Command Mode
Privileged EXEC
Default
None
Usage
This command is valid only for local file systems
Examples
In the following example, the file named startup-config.conf-bak is renamed startup-config.conf-bak2:
Switch# configure terminal
Switch# rename udisk:/wus udisk:/wu
Are you sure to rename udisk:/wus? [confirm]
Related Commands
None
2.1.47. rmdir
Command Purpose
To remove an existing directory in a Flash file system or udisk device, use the rmdir command in Privileged EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
rmdir directory-name
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
directory-name |
The directory in flash |
- |
Command Mode
Privileged EXEC
Default
None
Usage
This command is valid only for local file systems
Examples
The following example deletes a directory named newdir:
Switch# rmdir flash:/newdir
Are you sure to delete newdir? [yes/no]: y
Related Commands
mkdir
dir
2.1.48. tar create
Command Purpose
To create an new tar file in a Flash file system or udisk device, use the tar create command in Privileged EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
tar create tar-file-name source-directory
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
tar-file-name |
The file name of the new tar file |
- |
source-directory |
The source directory in flash |
- |
Command Mode
Privileged EXEC
Default
None
Usage
The source-directory must be a directory
Examples
The following example creates a tar file named tar1:
Switch# tar create udisk:/tar1 udisk:/wu
Related Commands
tar table
tar xtract
2.1.49. tar table
Command Purpose
To display files in the tar file, use the tar table command in Privileged EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
tar table tar-file-name
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
tar-file-name |
The file name of the new tar file |
- |
Command Mode
Privileged EXEC
Default
None
Usage
The tar-file-name must be a in the flash
Examples
The following example shows files in a tar file named tar1:
Switch# tar table udisk:/tar1
Related Commands
tar create
2.1.50. tar xtract
Command Purpose
To untar files in the tar file, use the tar xtract command in Privileged EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
tar xtract tar-file destination-directory
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
tar-file |
The file name of the tar file |
- |
destination-directory |
The destination directory |
- |
Command Mode
Privileged EXEC
Default
None
Usage
The destination-directory must exist in the flash. You can use mkdir to create a new directory
Examples
The following shows an example to extract a tar file named tar1 into a directory name dir1:
Switch# tar xtract flash:/tar1 flash:/mydir
Related Commands
tar create
tar table
2.1.51. show diagnostic-information
Command Purpose
Display diagnstic-information including syslog files, core dump files, tcam entries ,running-config, startup-config, version, clock, memory and logging buffer.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show diagnostic-information ( bgp | ospf | )
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
bgp |
BGP protocol diagnostic information |
- |
ospf |
OSPF protocol diagnostic information |
- |
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following example show diagnostic-information:
Switch# show diagnostic-information
Related Commands
None
2.1.52. tar diagnostic-information
Command Purpose
To put diagnostic-information to a Flash file system ,udisk device, ftp server or tftp server, use the tar diagnostic-information command in Privileged EXEC mode. Syslog files, core dump files, tcam entries ,running-config, startup-config, version, clock, memory and logging buffer are included in this tarfile.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
tar diagnostic-information ( mgmt-if | ) destination-directory/ tar-file
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
-destination-directory |
The destination directory, such as flash, udisk, tftp or ftp server |
- |
tar-file |
The file name of the tar file |
- |
Command Mode
Privileged EXEC
Default
None
Usage
The destination-directory must reachable and disk is enough
Examples
The following shows an example to put a diagnostic-information tar file to flash:
Switch# tar diagnostic-information flash:/diag.tar.gz
Related Commands
None
2.1.53. format
Command Purpose
To format udisk, all data on udisk: will be lost.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
format udsik:
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
udsik: |
The USB mass storage device. If you don`t use USB mass storage device, failed to format udisk |
- |
Command Mode
Application Configuration
Default
None
Usage
The destination-directory must exist
Examples
The following shows an example to format USB mass storage device:
Switch# configure terminal
Switch(config)# format udisk:
WARNING: All data on udisk: will be lost!!!
And format operation may take a while.
Are you sure to process with format? [yes/no]: yes
Related Commands
None
2.1.54. umount
Command Purpose
To uninstall the USB mass storage device before plug out it from the switch.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
umount udsik:
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
udisk: |
The USB mass storage device. If you don`t use USB mass storage device, failed to format udisk |
- |
Command Mode
Application Configuration
Default
None
Usage
USB mass storage device must exist in the system. You can use umount command to uninstall the USB mass storage device
Examples
The following shows an example to umount USB mass storage device:
Switch# configure terminal
Switch(config)# umount udisk:
After this operation, you can not use USB disk.
Are you sure to continue? [yes/no]: yes
Related Commands
None
2.1.55. cut-through enable
Command Purpose
To enable cut through mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
cut-through-forwarding enable ( 10G | 100G | 1G | 25G | 2G5 | 40G | 50G | 5G )
no cut-through-forwarding enable
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
enable |
enable cut through mode |
- |
(10G| 100G| 1G| 25G| 40G| 50G| 5G) |
Configure cut_through speed |
- |
Command Mode
Application Configuration
Default
None
Usage
None
Examples
The following example shows how to configure cut through mode:
Switch# configure terminal
Switch(config)# cut-through-forwarding enable 10G
% Configuration about cutting through forwarding mode has been stored,
but cannot take effect until the next reload.
Related Commands
None
2.1.56. show cut-through-forwarding mode
Command Purpose
To display current working mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show cut-through-forwarding mode
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following shows an example to display current working mode:
Switch1# show cut-through-forwarding mode
Related Commands
None
2.1.57. reset factory-config
Command Purpose
Reset to factory configuration.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
reset factory-config
Command Mode
Privileged EXEC
Default
None
Usage
Device will restore the saved configuration to factory configuration when select yes, and prompt to save configuration when rebooting, please select NO.
Examples
The following shows an example to reset factory configuration:
Switch# configure terminal
Switch# reset factory-config
This action will reset the saved configuration immediately.
Running-config will be erased after reboot. Continue? [yes/no]:
Related Commands
None
2.1.58. show factory-config
Command Purpose
To display the factory configuration.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show factory-config
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following shows an example to display factory configuration Switch show factory-config :
Switch# show factory-config
Related Commands
None
2.1.59. show this
Command Purpose
To display the configuration of this mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show this
Command Mode
All Configuration Mode
Default
None
Usage
Not support this mode: key-chain, key-chain key, time range, route-map, line, class map
Examples
The following example show the configuration of this mode:
Switch(config-vlan)# show this
vlan database
vlan 5
!
Related Commands
None
2.1.60. show route-mac
Command Purpose
To display the route MAC address of this device.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show route-mac
Command Mode
Privileged EXEC
Default
None
Usage
All interfaces on a device share the same single route-mac.
Examples
The following shows an example to display route-mac of this device:
Switch# show route-mac
Route MAC is: 222c.12fd.6c00
!
Related Commands
None
2.1.61. show history
Command Purpose
To display the history command lines, use the show history command in EXEC mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show history
Command Mode
Privileged EXEC
Default
None
Usage
Use this command to display the history command lines.
Examples
This example shows how to display history commands information of device:
Switch# show history
1 configure terminal
2 interface eth-0-1
3 no shutdown
4 exit
5 show version
Related Commands
None