01-Fundamentals Command Reference

HomeSupportSwitchesS7500X-G SeriesReference GuidesCommand ReferencesH3C S7500X-G Switch Series Command References-R7755Pxx-6W10001-Fundamentals Command Reference
01-CLI commands
Title Size Download
01-CLI commands 180.45 KB

Basic CLI commands

MDC is supported only when the device operates in standalone mode. For more information about standalone mode, see IRF configuration in Virtual Technologies Configuration Guide. For more information about MDC and device models that support MDC, see MDC configuration in Virtual Technologies Configuration Guide.

abort

Use abort to return to user view without any prompt.

Syntax

abort

Views

Any view in private mode

Any view in exclusive mode

Predefined user roles

network-admin

mdc-admin

Usage guidelines

To return directly to user view, you can execute the abort or return command or press Ctrl+Z.

·     If you execute return or press Ctrl+Z to return from private-mode or exclusive-mode view to user view, the system displays a message to notify you of uncommitted target configuration command lines (if any).

·     If you execute abort to return from private-mode or exclusive-mode view to user view, the system discards uncommitted target configuration command lines (if any) without any prompt.

Examples

# Return to user view from Ten-GigabitEthernet 3/0/1 interface view.

~[Sysname-Ten-GigabitEthernet3/0/1] abort

<Sysname>

Related commands

quit

return

alias

Use alias to configure a command alias.

Use undo alias to delete a command alias.

Syntax

alias alias command

undo alias alias

Default

The device has a set of system-defined command aliases, as listed in Table 1.

Table 1 System-defined command aliases

Command alias

Command or command keyword

access-list

acl

end

return

erase

delete

exit

quit

hostname

sysname

logging

info-center

no

undo

show

display

write

save

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

alias: Specifies an alias, a case-sensitive string of 1 to 20 characters. An alias cannot be alias or contain spaces or quotation marks (").

command: Specifies a command string. Make sure the command string meets the syntax requirements.

Usage guidelines

System-defined command aliases cannot be deleted.

You can configure one or more aliases for a command or the starting keywords of commands. Then, you can use the aliases to execute the command or commands. If the command or commands have undo forms, you can also use the aliases to execute the undo command or commands.

For example, if you configure the alias shiprt for display ip routing-table, you can enter shiprt to execute the display ip routing-table command. If you configure the alias ship for display ip, you can use ship to execute all commands that start with display ip:

·     Enter ship routing-table to execute the display ip routing-table command.

·     Enter ship interface to execute the display ip interface command.

The command string can include up to nine parameters. Each parameter starts with the dollar sign ($) and a sequence number in the range of 1 to 9. For example, you can configure the alias shinc for the display ip $1 | include $2 command. Then, to execute the display ip routing-table | include Static command, you only need to enter shinc routing-table Static. To execute the display ip interface | include Ten-GigabitEthernet3/0/1 command, you only need to enter shinc interface Ten-GigabitEthernet3/0/1.

Examples

# Configure shiprt as the alias for the display ip routing-table command and verify the configuration.

<Sysname> system-view

[Sysname] alias shiprt display ip routing-table

[Sysname] shiprt

Destinations : 13        Routes : 13

Destination/Mask   Proto   Pre Cost        NextHop         Interface

0.0.0.0/32         Direct  0   0           127.0.0.1       InLoop0

3.3.3.3/32         Static  60  0           192.168.1.62    Vlan1

127.0.0.0/8        Direct  0   0           127.0.0.1       InLoop0

127.0.0.0/32       Direct  0   0           127.0.0.1       InLoop0

127.0.0.1/32       Direct  0   0           127.0.0.1       InLoop0

127.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0

169.254.0.0/24     Direct  0   0           169.254.0.188   Vlan1

169.254.0.0/32     Direct  0   0           169.254.0.188   Vlan1

169.254.0.188/32   Direct  0   0           127.0.0.1       InLoop0

169.254.0.255/32   Direct  0   0           169.254.0.188   Vlan1

224.0.0.0/4        Direct  0   0           0.0.0.0         NULL0

224.0.0.0/24       Direct  0   0           0.0.0.0         NULL0

255.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0

# Configure shinc as the alias for display ip $1 | include $2.

[Sysname] alias shinc display ip $1 | include $2

# Use alias shinc to display all static routes.

[Sysname] shinc routing-table Static

3.3.3.3/32         Static  60  0           192.168.1.62    Vlan1

Related commands

display alias

configuration reauthentication enable

Use configuration reauthentication enable to enable reauthentication for disruptive commands.

Use undo configuration reauthentication enable to disable reauthentication for disruptive commands.

Syntax

configuration reauthentication enable

undo configuration reauthentication enable

Default

Reauthentication for disruptive commands is disabled.

Views

System view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

Disruptive commands might power off or restart the device, interrupt services, cause service anomaly, delete key files, clear configuration, cause user login failure, or make users go offline, for example, the reboot command. Only the qualified professionals can execute disruptive commands.

As a best practice to avoid service failure due to misoperation, enable reauthentication for disruptive commands.

The following rules apply after you enable reauthentication for disruptive commands:

·     For a user that can log in to the device without authentication, reauthentication is not required when the user execute disruptive commands.

·     For a user that log in to the device after authentication, the user must enter the login password for authentication before disruptive commands are executed.

The undo configuration reauthentication enable command is also a disruptive command.

Examples

# Enable reauthentication for disruptive commands.

<Sysname> system-view

[Sysname] configuration reauthentication enable

# Reauthentication is required before you can execute the reboot command.

<Sysname> reboot

This command is disruptive or has significant impact on services. Please enter the login password again for reauthentication.

Password:

Start to check configuration with next startup configuration file, please wait.........DONE!

Current configuration will be lost after the reboot, save current configuration? [Y/N]:y

Please input the file name(*.cfg)[flash:/startup.cfg]

(To leave the existing filename unchanged, press the enter key):

flash:/startup.cfg exists, overwrite? [Y/N]:y

Validating file. Please wait...

Configuration is saved to device successfully.

This command will reboot the device. Continue? [Y/N]:y

Now rebooting, please wait...

# Reauthentication is required before you can disable reauthentication for disruptive commands.

<Sysname> system-view

[Sysname] undo configuration reauthentication enable

This command is disruptive or has significant impact on services. Please enter the login password again for reauthentication.

Password:

[Sysname]

configuration system-view-mode

Use configuration system-view-mode to specify the default mode of the system view that the system will enter after the system-view command is executed.

Use undo configuration system-view-mode to restore the default.

Syntax

configuration system-view-mode { immediate | private }

undo configuration system-view-mode

Default

The system enters real-time-mode system view after the system-view command is executed.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

immediate: Specifies real-time-mode system view.

private: Specifies private-mode system view.

Usage guidelines

By default, the system enters real-time-mode system view after the system-view command is executed. To configure the settings in non-real-time-mode system view, you must specify the exclusive or private keyword each time the system enters system view. To simplify the configuration, you can execute the configuration system-view-mode command to specify the default mode of the system view that the system will enter after the system-view command is executed.

The default mode of the system view that the system will enter that is specified by this command will take effect next time you execute the system-view command.

Examples

# Configure the system to enter private-mode system view after the system-view command is executed.

<Sysname> system-view

[Sysname] configuration system-view-mode private

Related commands

system-view

display { peer-device | with-peer-device }

Use display { peer-device | with-peer-device } to display information for only the peer member device or display information for both member devices at the same time.

Syntax

display command { peer-device | with-peer-device }

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

command: Specifies keywords. To view the available keywords, enter a question mark (?) in the place of this argument.

peer-device: Displays information for the peer member device.

with-peer-device: Appends information for the peer member device to that of the local member device. If you specify this keyword, this commands displays information for both the local and peer member devices. If you do not specify this keyword, this command displays only information for the local member device.

Usage guidelines

To view information for only the peer member device in a network configured with multichassis configuration synchronization, you can execute display command peer-device on the local device. This facilitates device management and maintenance. To view information for both member devices at the same time, execute display command with-peer-device. This is convenient for comparison between two member devices. For more information about multichassis configuration synchronization, see "Configuring multichassis configuration synchronization."

Examples

# Display the running configuration in user view on both the local and peer member devices.

<Sysname> display this with-peer-device

#

sysname sysname

#

system-working-mode standard

xbar load-single

password-recovery enable

lpu-type f-series

#

drni mad exclude interface GigabitEthernet2/0/1

drni system-mac 0001-0001-0001

drni system-number 1

drni system-priority 123

drni keepalive ip destination 1.1.1.1 source 1.1.1.2

#

scheduler logfile size 16

#

domain default enable system

#

security-enhanced level 2

#

return

------------------------  peer information  ------------------------

#

sysname sysname

#

system-working-mode standard

xbar load-single

password-recovery enable

lpu-type f-series

#

drni mad exclude interface GigabitEthernet2/0/1

drni system-mac 0001-0001-0001

drni system-number 2

drni system-priority 123

drni keepalive ip destination 1.1.1.2 source 1.1.1.1

#

scheduler logfile size 16

#

domain default enable system

#

security-enhanced level 2

#

return

display [ | { count | [ by-linenum ] { begin | exclude | include } } ]

Use display [ | { count | [ by-linenum ] { begin | exclude | include } } ] to filter the output from a display command with regular expressions.

Syntax

display command [ | { count | [ by-linenum ] { begin | exclude | include } regular-expression } ]&<1-128>

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

command: Specifies the keywords and arguments of a display command. To display available keywords and arguments, enter display ?.

[ | { count | [ by-linenum ] { begin | exclude | include } regular-expression } ]&<1-128>: Specifies a maximum of 128 filter conditions.

·     count: Displays the number of all lines in the command output from a display command.

·     by-linenum: Numbers the output lines. You need to specify this keyword in only one filter condition.

·     begin: Displays the first line matching the specified regular expression and all subsequent lines.

·     exclude: Displays all lines not matching the specified regular expression.

·     include: Displays all lines matching the specified regular expression.

·     regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Usage guidelines

To quickly locate certain lines in the output from a display command, you can use regular expressions to filter the output, and display a number before each output line.

If a regular expression contains spaces, you can select whether to enclose the regular expression with double quotation marks, for example, display current-configuration | include interface A or display current-configuration | include "interface A".

The following rules apply when you specify regular expressions with or without double quotation marks:

·     If a regular expression has double quotation marks, the string enclosed by double quotation marks is the filter condition.

·     If a regular expression does not have double quotation marks, the string from the first non-space character to the last non-space character is the filter condition. The device uses this string as a filter condition for exact match of strings in the command output from a display command.

For example, regular-expression="interface A  " and regular-expression=interface A are different filter conditions.

If a regular expression contains >, >, or > |, enclose the regular expression with double quotation marks (") in case the device mistake these special characters as keywords.

Strings with single quotation marks (') are not supported.

For more information about regular expressions, see Fundamentals Configuration Guide.

If you specify multiple filter conditions, the system displays the output lines that meet all the conditions.

A line number is a 5-character string and is typically followed by a colon (:). If you specify both the by-linenum and begin regular-expression options, a line number might be followed by a colon or a hyphen (-).

·     Colon—The line matches the regular expression.

·     Hyphen—The line does not match the regular expression.

Examples

# Display the lines that contain vlan in the running configuration.

<Sysname> display current-configuration | include vlan

vlan 1

vlan 999

 port access vlan 999

# Display log entries in the log buffer that contain both SHELL and VTY.

<Sysname> display logbuffer | include SHELL | include VTY

%Sep  6 10:38:12:320 2018 Sysname SHELL/5/SHELL_LOGIN: VTY logged in from 169.254.100.171.

%Sep  6 10:52:32:576 2018 Sysname SHELL/5/SHELL_LOGOUT: VTY logged out from 169.254.100.171.

%Sep  6 16:03:27:100 2018 Sysname SHELL/5/SHELL_LOGIN: VTY logged in from 169.254.100.171.

%Sep  6 16:44:18:113 2018 Sysname SHELL/5/SHELL_LOGOUT: VTY logged out from 169.254.100.171.

# Display the running configuration, starting from the first line that contains user-group and numbering the output lines.

<Sysname> display current-configuration | by-linenum begin user-group

  114:  user-group system

  115-  #

  116-  return

# Count the number of lines that contain alias in the running configuration.

<Sysname> display current-configuration | include alias | count

 Total lines: 1.

display >

Use display > to save the output from a display command to a separate file.

Syntax

display command > filename

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

command: Specifies the keywords and arguments of a display command. To display available keywords and arguments, enter display ?.

filename: Specifies the name of the file that is used to save the output, a string of 1 to 63 characters.

Usage guidelines

The display commands show the configuration, statistics, and states of the device. You can use the display > command to save the output to a file.

If the specified file does not exist, the system creates the file and saves the output to the file. If the file already exists, the system overwrites the file.

Examples

# Save VLAN 1 settings to a separate file named vlan.txt.

<Sysname> display vlan 1 > vlan.txt

# Check the content of the vlan.txt file.

<Sysname> more vlan.txt

VLAN ID: 1

 VLAN type: Static

 Route interface: Not configured

 Description: VLAN 0001

 Name: VLAN 0001

 Tagged ports:   None

 Untagged ports:

    Ten-GigabitEthernet3/0/2

display >>

Use display >> to append the output from a display command to the end of a file.

Syntax

display command >> filename

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

command: Specifies the keywords and arguments of a display command. To display available keywords and arguments, enter display ?.

filename: Specifies the name of the file that is used to save the output, a string of 1 to 63 characters.

Usage guidelines

The display commands show the configuration, statistics, and states of the device. You can use display >> to save the output to a file.

If the specified file does not exist, the system creates the file and saves the output to the file. If the file already exists, the system appends the output to the end of the file.

Examples

# Append the VLAN 999 settings to the end of the vlan.txt file.

<Sysname> display vlan 999 >> vlan.txt

<Sysname>

# Check the content of the vlan.txt file.

<Sysname> more vlan.txt

VLAN ID: 1

 VLAN type: Static

 Route interface: Not configured

 Description: VLAN 0001

 Name: VLAN 0001

 Tagged ports:   None

 Untagged ports:

    Ten-GigabitEthernet3/0/2

 

 VLAN ID: 999

 VLAN type: Static

 Route interface: Configured

 IPv4 address: 192.168.2.1

 IPv4 subnet mask: 255.255.255.0

 Description: For LAN Access

 Name: VLAN 0999

 Tagged ports:   None

 Untagged ports:

    Ten-GigabitEthernet3/0/2

display alias

Use display alias to display command aliases.

Syntax

display alias [ alias ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

alias: Specifies a command alias. If you do not specify this argument, the command displays all command aliases.

Examples

# Display all command aliases.

<Sysname> display alias

Index     Alias                Command key

1         access-list          acl

2         end                  return

3         erase                delete

4         exit                 quit

5         hostname             sysname

6         logging              info-center

7         no                   undo

8         shinc                display $1 | include $2

9         show                 display

10        sirt                 display ip routing-table

11        write                save

# Display the command alias shinc.

<Sysname> display alias shinc

Alias                Command key

shinc                display ip $1 | include $2

Related commands

alias

display history-command

Use display history-command to display all commands that are saved in the command history buffer for the current CLI session.

Syntax

display history-command

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Usage guidelines

The system automatically saves commands you have successfully executed to the command history buffer for the current CLI session. You can view them and execute them again.

By default, the system can save up to 10 commands in the buffer. You can use the history-command max-size command to change the buffer size. To buffer a new command when the buffer is full, the system deletes the oldest command entry in the buffer.

All commands in the command history buffer for the current CLI session will be cleared when you log out.

The system displays passwords as asterisks (*) to ensure device security if the command history buffer has password configuration commands.

Examples

# Display all commands saved in the command history buffer for the current CLI session.

<Sysname> display history-command

  system-view

  vlan 2

  quit

Related commands

history-command max-size

display history-command all

Use display history-command all to display all commands that are saved in the command history buffer for all CLI sessions.

Syntax

display history-command all

Views

Any view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

The system automatically saves commands successfully executed by users to the command history buffer for all CLI sessions. Users can view them but cannot recall them from the buffer.

Up to 1024 commands can be saved in the command history buffer. To buffer a new command when the buffer is full, the system deletes the oldest command entry in the buffer.

A user logout does not cause the system to delete commands from the history buffer for all CLI sessions.

The system displays passwords as asterisks (*) to ensure device security if the command history buffer has password configuration commands.

Examples

# Display all commands saved in the command history buffer for all CLI sessions.

<Sysname> display history-command all

  Date       Time     Terminal   Ip              User

  03/16/2017 20:03:33 vty0       192.168.1.26    **

  Cmd:dis his all

 

  03/16/2017 20:03:29 vty0       192.168.1.26    **

  Cmd:sys

Table 2 Command output

Field

Description

Date

Date when the command was executed.

Time

Time when the command was executed.

Terminal

User line used by the user.

Ip

IP address of the terminal used by the user.

User

Username used by the user if the user login authentication mode is scheme. If the login authentication mode is none or password, this field displays **.

Cmd

Command string entered by the user.

Related commands

display history-command

display hotkey

Use display hotkey to display hotkey information.

Syntax

display hotkey

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Examples

# Display hotkey information.

<Sysname> display hotkey

----------------- Hotkeys -----------------

           -Defined function hotkeys-

CTRL_A  Move the cursor to the beginning of the line.

CTRL_B  Move the cursor one character to the left.

CTRL_C  Stop the current command.

CTRL_D  Erase the character at the cursor.

CTRL_E  Move the cursor to the end of the line.

CTRL_F  Move the cursor one character to the right.

CTRL_H  Erase the character to the left of the cursor.

CTRL_N  Display the next command in the history buffer.

CTRL_P  Display the previous command in the history buffer.

CTRL_R  Redisplay the current line.

CTRL_W  Delete the word to the left of the cursor.

CTRL_X  Delete all characters from the beginning of the line to the cursor.

CTRL_Y  Delete all characters from the cursor to the end of the line.

CTRL_Z  Return to the User View.

CTRL_]  Kill incoming connection or redirect connection.

ESC_B   Move the cursor back one word.

ESC_D   Delete all characters from the cursor to the end of the word.

ESC_F   Move the cursor forward one word.

           -Defined command hotkeys-

CTRL_G  display current-configuration

CTRL_L  display ip routing-table

CTRL_O  undo debugging all

           -Undefined hotkeys-

CTRL_T  NULL

CTRL_U  NULL

Related commands

hotkey

hotkey

Use hotkey to configure a hotkey.

Use undo hotkey to restore the default.

Syntax

hotkey hotkey { command | function function | none }

undo hotkey hotkey

Default

Table 3 shows the default definitions for hotkeys.

Table 3 Default definitions for hotkeys

Hotkey

Function or command

Ctrl+A

move_the_cursor_to_the_beginning_of_the_line: Moves the cursor to the beginning of a line.

Ctrl+B

move_the_cursor_one_character_to_the_left: Moves the cursor one character to the left.

Ctrl+C

stop_the_current_command: Stops the current command.

Ctrl+D

erase_the_character_at_the_cursor: Deletes the character at the cursor.

Ctrl+E

move_the_cursor_to_the_end_of_the_line: Moves the cursor to the end of a line.

Ctrl+F

move_the_cursor_one_character_to_the_right: Moves the cursor one character to the right.

Ctrl+G

display current-configuration: Displays the running configuration.

Ctrl+H

erase_the_character_to_the_left_of_the_cursor: Deletes the character to the left of the cursor.

Ctrl+L

display ip routing-table: Displays the IPv4 routing table information.

Ctrl+N

display_the_next_command_in_the_history_buffer: Displays the next command in the history buffer. Password configuration commands, if any, are skipped.

Ctrl+O

undo debugging all: Displays all debugging functions.

Ctrl+P

display_the_previous_command_in_the_history_buffer: Displays the previous command in the history buffer. Password configuration commands, if any, are skipped.

Ctrl+R

redisplay_the_current_line: Redisplays the current line.

Ctrl+T

N/A

Ctrl+U

N/A

Ctrl+W

delete_the_word_to_the_left_of_the_cursor: Deletes the word to the left of the cursor.

Ctrl+X

delete_all_characters_from_the_beginning_of_the_line_to_the_cursor: Deletes all characters to the left of the cursor.

Ctrl+Y

delete_all_characters_from_the_cursor_to_the_end_of_the_line: Deletes all characters from the cursor to the end of the line.

Ctrl+Z

return_to_the_User_View: Returns to user view.

Ctrl+]

kill_incoming_connection_or_redirect_connection: Terminates the current connection.

Esc+B

move_the_cursor_back_one_word: Moves the cursor back one word.

Esc+D

delete_all_characters_from_the_cursor_to_the_end_of_the_word: Deletes all characters from the cursor to the end of the word.

Esc+F

move_the_cursor_forward_one_word: Moves the cursor forward one word.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

hotkey: Specifies a hotkey. To display the supported hotkeys, enter hotkey ? or see Table 3.

command: Specifies the command to be assigned to the hotkey.

function function: Specifies the function to be assigned to the hotkey. To display the supported functions, enter hotkey hotkey function ? or see Table 3.

none: Removes the command or function assignment for the hotkey. After you remove the assignment for a hotkey, pressing the hotkey does not execute any command or function.

Usage guidelines

The device supports a set of hotkeys. Pressing a hotkey executes the command or function assigned to the hotkey. You can configure all the hotkeys except Ctrl+].

A hotkey can correspond to only one command or function. If you assign multiple commands or functions to the same hotkey, the most recently assigned command or function takes effect.

A command or function can be assigned to multiple hotkeys. You can use any of those hotkeys to execute the command or function.

If a hotkey is also defined by the terminal software you are using to interact with the device, the terminal software definition takes effect.

Examples

# Assign the display tcp statistics command to hotkey Ctrl+T.

<Sysname> system-view

[Sysname] hotkey ctrl_t display tcp statistics

# Assign move_the_cursor_to_the_beginning_of_the_line function to hotkey Ctrl+U.

<Sysname> system-view

[Sysname] hotkey ctrl_u function move_the_cursor_to_the_beginning_of_the_line

# Disable the configurable command or function assigned to hotkey Ctrl+A.

<Sysname> system-view

[Sysname] hotkey ctrl_a none

Related commands

display hotkey

quit

Use quit to return to the upper-level view.

Syntax

quit

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Usage guidelines

Executing this command in user view disconnects you from the device.

Examples

# Return from Ten-GigabitEthernet 3/0/1 interface view to system view and then to user view.

[Sysname-Ten-GigabitEthernet3/0/1] quit

[Sysname] quit

<Sysname>

repeat

Use repeat to repeat commands in the command history buffer for the current CLI session.

Syntax

repeat [ number ] [ count times ] [ delay seconds ]

Views

Any view

Predefined user roles

network-admin

mdc-admin

Parameters

number: Specifies the number of the most recently executed commands in the command history buffer for the current CLI session that you want to execute. The value range is 1 to 10. The default is 1.

count times: Specifies the number of times that you want to execute the commands. The value range is 0 to 4294967295. The default is 0. If you do not specify this option, the system keeps executing the commands until you press the escape key to terminate the execution.

delay seconds: Specifies the time (in seconds) for the system to wait before executing the commands again. The value range is 0 to 4294967295. The default is 1.

Usage guidelines

To repeat a command, first enter the view for the command. To repeat multiple commands, first enter the view for the first command.

The repeat command executes commands in the order they were executed.

The system starts a timer and waits for your interaction when it repeats an interactive command. If you do not provide the required information at prompt before the timer expires, the system skips the interactive command.

The system skips all password configuration commands.

Examples

# Configure the system to execute the two most recently executed commands (display cpu-usage and display clock) three times at an interval of 10 seconds.

<Sysname> repeat 2 count 3 delay 10

<Sysname> display cpu

Slot 1 CPU 0 CPU usage:

      33% in last 5 seconds

      32% in last 1 minute

      33% in last 5 minutes

<Sysname> display clock

07:02:18.230 UTC Thu 06/19/2017

<Sysname> display cpu-usage

Slot 1 CPU 0 CPU usage:

      33% in last 5 seconds

      32% in last 1 minute

      33% in last 5 minutes

<Sysname> display clock

07:02:28.263 UTC Thu 06/19/2017

<Sysname> display cpu-usage

Slot 1 CPU 0 CPU usage:

      33% in last 5 seconds

      32% in last 1 minute

      33% in last 5 minutes

<Sysname> display clock

07:02:38.293 UTC Thu 06/19/2017

Related commands

display history-command

escape-key

history-command max-size

return

Use return to return to user view from any other view except Tcl configuration view and the Python shell.

Syntax

return

Views

Any view except user view, Tcl configuration view, and the Python shell

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Usage guidelines

To return directly to user view from any other view except Tcl configuration view and the Python shell, use the return command. Or, you can press Ctrl+Z, which has the same effect as the return command.

To return to user view from Tcl configuration view, use the tclquit command.

To return to user view from the Python shell, use the exit() command.

Examples

# Return to user view from Ten-GigabitEthernet 3/0/1 interface view.

[Sysname-Ten-GigabitEthernet3/0/1] return

<Sysname>

screen-length disable

Use screen-length disable to disable pausing between screens of output for the current CLI session.

Use undo screen-length disable to enable pausing between screens of output for the current CLI session.

Syntax

screen-length disable

undo screen-length disable

Default

The default depends on the configuration of the screen-length command in user line view.

The following are the default settings for the screen-length command:

·     Pausing between screens of output.

·     Displaying up to 24 lines on a screen.

Views

User view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

If you disable pausing between screens of output, all output is displayed. The screen is refreshed continuously until the final screen is displayed.

This command takes effect only for the current CLI session. When you are logged out, the default is restored.

Examples

# Disable pausing between screens of output for the current CLI session.

<Sysname> screen-length disable

Related commands

screen-length

system-view

Use system-view to enter system view from user view.

Syntax

system-view [ exclusive | immediate | mc-config | private ]

Views

User view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

exclusive: Specifies exclusive-mode system view.

immediate: Specifies real-time-mode system view.

private: Specifies private-mode system view.

mc-config: Specifies system view for multichassis configuration sync. If you do not this keyword, the system enters common system view.

Usage guidelines

Application scenarios

You can enter the following modes of system view:

·     Common system view—In common system view and its lower-level views, settings are written to the running configuration and take effect immediately.

·     Real-time-mode system view—In real-time-mode system view and its lower-level views, settings are written to the running configuration and take effect immediately.

·     Non-real-time-mode system view—Includes exclusive-mode system view and private-mode system view. In exclusive-mode system view, private-mode system view, and their lower-level views, settings are saved to the target configuration, which takes effect after being committed by using the commit command.

Only one user can enter exclusive-mode system view or its lower-level views.

¡     When a user is in an exclusive-mode view, users in private-mode views cannot commit their target configuration command lines.

¡     When no user is in an exclusive-mode view, users in private-mode views can commit their respective target configuration command lines. However, only one user in a private-mode view can commit target configuration command lines at a time.

Private-mode views and exclusive-mode views have a leading tilde sign (~) in their prompts as compared to their counterpart real-time-mode views.

·     System view for multichassis configuration sync—In system view for multichassis configuration sync and its lower-level views, settings that take effect on the local device are synchronized to the peer device in a network configured with multichassis configuration synchronization.

Operating mechanism

In a network configured with multichassis configuration synchronization, such as an M-LAG network, some commands must be executed on both member devices. For these commands, you have to execute them separately on the local and peer member devices. This is cumbersome and might cause configuration errors.

To resolve this issue, you can execute the system-view mc-config command to enter M-LAG-sync-mode system view. In M-LAG-sync-mode system view and its lower-level views, settings on the local M-LAG member device are synchronized to the peer member device. This ensures configuration consistency on the local and peer member devices and avoids repeated configuration. For more information about multichassis configuration synchronization, see "Configuring multichassis configuration synchronization."

Restrictions and guidelines

Unless otherwise stated, entering system view refers to entering real-time-mode system view.

Examples

# Enter system view from user view.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

[Sysname]

# Enter exclusive-mode system view.

<Sysname> system-view exclusive

Info: The current configuration is locked.

~[Sysname]

# Enter system view for multichassis configuration sync from user view.

<Sysname> system-view mc-config

System View: return to User View with Ctrl+Z.

All commands in this view will be synchronized to the peer device.

+[Sysname]

Related commands

configuration system-view-mode

terminal mmi-mode enable

Use terminal mmi-mode enable to enter machine-machine interaction (MMI) mode.

Use undo terminal mmi-mode enable to enter human-machine interaction mode.

Syntax

terminal mmi-mode enable

undo terminal mmi-mode enable

Default

The user is in human-machine interaction mode.

Views

User view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

CAUTION

CAUTION:

Do not enter MMI mode unless required. Use caution when you execute this command.

 

Operating mechanism

In MMI mode, interactive commands that require confirmation by pressing Y/N, Y/N/C, or Enter in human-machine interaction mode do not require any confirmation. For example, when the reboot command is executed in human-machine interaction mode, you must press Y/N to proceed with the reboot operation. In MMI mode, the reboot operation is completed without requiring any confirmation after you execute the reboot command.

Restrictions and guidelines

·     If pausing between screens of output for the current CLI session has been enabled before you enter MMI mode, all output is displayed at a time and the screen is refreshed continuously until the final screen is displayed.

·     After you configure the configuration reauthentication enable command, disruptive commands that require reauthentication do not need to be confirmed again.

·     Commands that require strings to be input for execution still require manual input and confirmation.

Examples

# Enter MMI mode.

<Sysname> terminal mmi-mode enable

(M)<Sysname> system-view

(M)[Sysname]

# Exit MMI mode.

(M)<Sysname> undo terminal mmi-mode enable

<Sysname>

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网