- Table of Contents
-
- H3C S9500 Command Manual-Release1648[v1.24]-08 System Volume
- 00-1Cover
- 01-Command Line Interface Commands
- 02-Login and User Interface Commands
- 03-FTP and TFTP Commands
- 04-HA Commands
- 05-NQA Commands
- 06-NetStream Commands
- 07-NTP Commands
- 08-RMON Commands
- 09-SNMP Commands
- 10-Packet Statistics Accounting Commands
- 11-Device Management Commands
- 12-Configuration File Management Commands
- 13-File System Management Commands
- 14-Cluster Management Commands
- 15-System Maintenance and Debugging Commands
- 16-Information Center Commands
- 17-PoE Commands
- 18-Clock Module Commands
- 19-ACSEI Server Commands
- 20-OAP Module Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
02-Login and User Interface Commands | 106.38 KB |
Table of Contents
Chapter 1 Login Configuration Commands
1.1 Login Configuration Commands
1.1.1 accounting commands scheme
1.1.11 history-command max-size
1.1.27 set authentication password
Chapter 1 Login Configuration Commands
1.1 Login Configuration Commands
1.1.1 accounting commands scheme
Syntax
accounting commands scheme
undo accounting commands scheme
View
User interface view
Parameters
None
Description
Use the accounting commands scheme command to enable the command line accounting function.
Use the undo accounting commands scheme command to disable the command line accounting function.
By default, the command line accounting function is disabled.
Examples
# Enable the command line accounting function on a VTY0 user.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] user-interface vty 0
[H3C-ui-vty0] accounting commands scheme
1.1.2 authentication-mode
Syntax
authentication-mode { password | scheme [ command-authorization ] | none }
View
User interface view
Parameters
password: Performs local password authentication.
scheme: Performs AAA using the scheme specified for the ISP domain.
command-authorization: Performs command line authorization. An input command is executed only after it passes the authorization.
none: Specifies not to authenticate the login user.
Description
Use the authentication-mode command to configure the authentication method for login user.
Use the authentication-mode none command to configure direct login without authentication.
Executing this command with the password keyword specifies to perform local password authentication, that is, you need to configure a login password using the set authentication password { cipher | simple } password command.
Executing this command with the scheme keyword specifies to perform AAA using the AAA scheme specified for the ISP domain. Whether local or remote scheme authentication is adopted depends on the configuration described in the AAA/RADIUS/HWTACACS part of this manual.
Executing this command with the command-authorization keyword specifies to perform command line authorization. An input command is executed only after it passes authorization. The related authorization mode depends on the AAA scheme used by the ISP domain. If multiple AAA schemes are configured for an ISP domain, the AAA scheme used at user login is used first.
By default, terminal authentication is not required for local users log in via the console port. However, password authentication is required for local users and remote Modem users to log in via the AUX port, and for Telnet users and VTY users to log in through Ethernet port.
Note: If the console port is configured for local password authentication, the user can directly log in to the system even without a password configured; if other user interfaces, such as the AUX port and VTY interface, are configured for local password authentication, users cannot log in to the system without a password.
Examples
# Configure local password authentication.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] user-interface aux 0
[H3C-ui-aux0] authentication-mode password
1.1.3 auto-execute command
Syntax
auto-execute command text
undo auto-execute command
View
User interface view
Parameters
text: Specifies the command to be run automatically.
Description
Use the auto-execute command command to configure to automatically run a specified command. When a user logs in, the command configured will be executed automatically. The user will be disconnected after that.
Use the undo auto-execute command command to configure not to run the command automatically.
This command is usually used to configure the telnet command on the terminal, which will connect the user to a designated device automatically.
By default, auto run is disabled.
Examples
# Configure to automatically execute telnet 10.110.100.1 after the user logs in via VTY 0.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] user-interface vty 0
[H3C-ui-vty0] auto-execute command telnet 10.110.100.1
1.1.4 databits
Syntax
databits { 7 | 8 }
undo databits
View
User interface view
Parameters
7: Sets 7 data bits.
8: Sets 8 data bits.
Description
Use the databits command to configure the data bits for the user interface.
Use the undo databits command to restore the default bits of the user interface.
This command can only be performed in Console and AUX user interface view.
By default, the value is 8.
Examples
# Configure the data bits of AUX port to 7 bits.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] user-interface aux 0
[H3C-ui-aux0] databits 7
1.1.5 debugging modem
debugging modem
View
User view
Parameters
None
Description
Use the debugging modem command to enable Modem debugging.
You can check whether correct Modem script is specified for a certain event according to the output information of this command.
Examples
# Enable Modem debugging.
<H3C> debugging modem
1.1.6 display user-interface
Syntax
display user-interface [ type number | number ] [ summary ]
View
Any view
Parameters
type: Specifies the type of a user interface.
number: Specifies the number of a user interface.
Summary: Displays the summary of a user interface.
Description
Use the display user-interface command to view the relational information of the user interface. This command without the summary parameter displays user interface type, absolute/relative index, transmission speed, priority, authentication methods, and physical location. This command with the summary parameter displays one user interface in use totally and user interface name etc.
Examples
# Display the relational information of user interface 0.
<H3C> display user-interface 0
Idx Type Tx/Rx Modem Privi Auth Int
+ 0 CON 0 9600 - 3 N -
+ : Current user-interface is active.
F : Current user-interface is active and work in async mode.
Idx : Absolute index of user-interface.
Type : Type and relative index of user-interface.
Privi: The privilege of user-interface.
Auth : The authentication mode of user-interface.
Int : The physical location of UIs.
A: Authenticate use AAA.
N: Current UI need not authentication.
P: Authenticate use current UI's password.
Table 1-1 display user-interface command output description
Field |
Description |
+ |
Current user interface is in use |
F |
Current user interface is in use and work in asynchronous mode |
Idx |
Absolute index of user interface |
Type |
Type and relative index of user interface |
Tx/Rx |
User interface speed |
Modem |
Modem operation mode |
Privi |
Which levels of commands can be used after logging in from the user interface |
Auth |
User interface authentication method |
Int |
The physical location of user interfaces |
# Display the summary information of user interface 0.
<H3C> display user-interface 0 summary
0: U
1 character mode users. (U)
1 total UIs in use.
UI's name: con0
Table 1-2 display user-interface summary command output description
Field |
Description |
0: U |
User interface type |
1 character mode users. |
One type user interface |
1 total UIs in use. |
One user interface in use totally |
UI's name |
User interface name |
1.1.7 display users
Syntax
display users [ all ]
View
Any view
Parameters
all: Displays the information of all user interfaces.
Description
Use the display users command to view the information of the user interface.
Examples
# Display the information of the current user interface.
UI Delay Type Ipaddress Username
+ 0 CON 0 00:00:00
Table 1-3 display users command output description
Field |
Description |
+ |
Current user interface is in use and work in asynchronous mode. |
UI |
Number of the first list is the absolute number of user interface. Number of the second list is the relative number of user interface. |
Delay |
Indicates the interval from the latest input till now in seconds. |
Type |
User type |
IPaddress |
Displays initial connection location, namely the host IP address of the incoming connection. |
Username |
Display the name of the user using this user interface, namely the login username of the user. |
1.1.8 flow-control
Syntax
flow-control { hardware | none | software }
undo flow-control
View
User interface view
Parameters
hardware: Configures to perform hardware flow control.
none: Configures no flow control.
software: Configures to perform software flow control.
Description
Use the flow-control command to configure the flow control mode on the user interface.
Use the undo flow-control command to restore the default flow control mode.
By default, the value is none. That is, no flow control will be performed.
This command can only be performed in Console and AUX user interface view.
Examples
# Configure software flow control on AUX port.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] user-interface aux 0
[H3C-ui-aux0] flow-control software
1.1.9 free user-interface
Syntax
free user-interface [ type ] number
View
User view
Parameters
type: Specifies the user interface type.
number: Specifies the absolute/relative number of the user interface. Configured together with the type, it will specify the user interface number of the corresponding type. If the type is not specified, number will specify an absolute user interface number.
Description
Use the free user-interface command to release a specified user interface. The user interface will be disconnected after the command is executed.
Note that the current user interface cannot be release.
Examples
# Release user interface 1 after logged in to the switch via user interface 0.
<H3C> free user-interface 1
After the command is executed, user interface 1 will be disconnected. It will not be connected to the switch until you log in via the user interface 1 for the next time.
1.1.10 header
Syntax
header [ shell | incoming | login ] text
undo header [ shell | incoming | login ]
View
System view
Parameters
login: Login information in case of authentication. It is displayed before the user is prompted to enter user name and password.
shell: User conversation established header, the information output after user conversation has been established. If authentication is required, it is prompted after the user passes authentication.
incoming: Login header, the information output after a Modem user logs in. If authentication is required, it is prompted after the user passes authentication. In this case, no shell information is output.
text: Specifies the title text. If you do not choose any keyword in the command, the system displays the login information by default. The system supports two types of input modes: one is to input all the text in one line, and altogether 256 characters (including carriage returns), including command key word, can be input; the other is to input all the text in several lines using the <Enter> key, and altogether 2048 characters, excluding command key word, can be input. The text starts and ends with the first character. After inputting the end character, press the <Enter> key to exit the interact process.
Description
Use the header command to configure to display header when user login.
Use the undo header command to configure not to display the header.
When the user logs in to the switch, if a connection is activated, the login header will be displayed. After the user successfully logs in to the switch, the shell header will be displayed.
Note that if you press <Enter> after typing any of the three keywords shell, login and incoming in the command, then what you type after the word header is the contents of the login information, instead of identifying header type.
You can judge whether the initial character can be used as the header contents this way:
l Input texts in multiple lines. You need to enter only one character in the first line. The character and the last character of the string entered serve as the identifiers of the header content and must be the same. For example,
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] header shell 0
Input banner text, and quit with the character '0'.
Welcome !0
(The starting and ending characters must be the same, and press the <Enter> key to finish a line)
When you log in to the switch again, the preset session establishment header “welcome!” is displayed on the terminal screen.
The initial character 0 is not header contents.
For another example,
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] header shell 0
Input banner text, and quit with the character '0'.
Hello,
Welcome!0
(The starting and ending characters must be the same, and press the <Enter> key to finish a line)
When you log in to the switch again, the preset session establishment header “Hello, welcome!” is displayed on the terminal screen. The initial character 0 is not header content.
l You can also input the header content in a single line. In this case, the beginning and the end character serve as the identifiers and must be the same. For example,
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] header shell 0welcome,my friend!0
(The starting and ending characters must be the same. Press the <Enter> key to finish a line)
When you log in to the switch again, the preset session establishment header “welcome, my friend!” appears on the terminal screen. The beginning and the end characters, that is, character 0, are not displayed.
l Finally, you can input the header content in multiple lines, with multiple characters contained in the first line. The initial character is different from the ending one and the initial character pairs with the ending one. The initial character is the text contents, for example,
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] header shell hello
Input banner text, and quit with the character 'h'.
my friend !
h
(The starting and ending characters must be the same, and press the <Enter> key to finish a line)
When you log in to the switch again, the preset session establishment header “hello, my friend!” is displayed on the terminal screen. The initial character “h” is the header contents.
Examples
# Set the header for the switch.
Option 1: Input in one line
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] header shell %SHELL: Hello! Welcome%
(The starting and ending characters must be the same, and press the <Enter> key to finish a line.)
When you log in to the switch again, the terminal displays the header you set.
[H3C] quit
<H3C> quit
Please press ENTER
SHELL: Hello! Welcome
(The character “%” is not displayed.)
<H3C>
Option 2: Input in multiple lines
[H3C] header shell % SHELL:
(After you press the <Enter> key, the system prompts the following message.)
Input banner text, and quit with the character '%'.
Go on inputting the rest text and end your input with the first letter:
Hello! Welcome %
(Press the <Enter> key)
[H3C]
When you log in to the switch again, the following is displayed.
[H3C] quit
<H3C> quit
Please press ENTER
%SHELL:
(The character “%” is contained in the header.)
Hello! Welcome
<H3C>
1.1.11 history-command max-size
Syntax
history-command max-size value
undo history-command max-size
View
User interface view
Parameters
value: Defines the size of the history buffer, ranging from 0 to 256. By default, the size is 10, that is, 10 history commands can be saved.
Description
Use the history-command max-size command to configure the size of the history command buffer.
Use the undo history-command max-size command to restore default size of the history command buffer.
Examples
# Set the history buffer to 20, namely saving 20 history commands.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] user-interface aux 0
[H3C-ui-aux0] history-command max-size 20
1.1.12 idle-timeout
Syntax
idle-timeout minutes [ seconds ]
undo idle-timeout
View
User interface view
Parameters
minutes: Specifies the minute, ranging from 0 to 35791.
seconds: Specifies the second, ranging from 0 to 59.
Description
Use the idle-timeout command to configure the timeout function. If there is no user operation performed before idle-timeout expires, the user interface will be disconnected.
Use the undo idle-timeout command to restore the default idle-timeout.
idle-timeout 0 means disabling idle-timeout.
By default, idle-timeout is set to 10 minutes.
Examples
# Configure the timeout value to 1 minute on the AUX user interface.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] user-interface aux 0
[H3C-ui-aux0] idle-timeout 1 0
1.1.13 ip isolation
Syntax
ip isolation
undo ip isolation
View
Network management port view
Parameters
None
Description
Use the ip isolation command to enable IP isolation between the network management port and the service ports. Use the undo ip isolation command to disable this feature.
By default, this feature is disabled.
Examples
# Enable IP isolation between the network management port and the service ports
<H3C> system-view
[H3C] interface M-Ethernet 6/0/0
[H3C–M-Ethernet6/0/0] ip isolation
1.1.14 language-mode
Syntax
language-mode { chinese | english }
View
User view
Parameters
chinese: Configures the language environment of command line interface as Chinese.
english: Configures the language environment of command line interface as English.
Description
Use the language-mode command to switch between different language environments of command line interface for convenience of different users.
By default, the value is English.
Examples
# Switch from English mode to Chinese mode.
<H3C> language-mode chinese
1.1.15 lock
Syntax
lock
View
User view
Parameters
None
Description
Use the lock command to lock the user interface to prevent an unauthorized user from operating it. When locking the interface, you must enter a password, which will also be used to unlock the interface.
Examples
# Lock the current user interface.
<H3C> lock
Password: xxxx
Again: xxxx
1.1.16 modem
Syntax
modem [ call-in | both ]
undo modem [ call-in | both ]
View
User interface view
Parameters
call-in: Configures to allow call-in.
both: Configures to allow call-in and call-out.
Description
Use the modem command to configure the call-in and call-out attributes of the Modem. Use the undo modem command to cancel the configuration of Modem call-in and call-out attributes.
The modem command without parameters is used to allow call-in and call-out.
The undo modem command without parameters is used to ban call-in and call-out.
This command can only be performed in AUX user interface view.
Examples
# Configure to allow call-in and call-out of Modem on the AUX port.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] user-interface aux 0
[H3C-ui-aux0] modem both
1.1.17 modem auto-answer
Syntax
modem auto-answer
undo modem auto-answer
View
User interface view
Parameters
None
Description
Use the modem auto-answer command to configure the answer mode as auto-answer.
Use the undo modem auto-answer command to configure the answer mode as manual answer.
By default, the mode is set to manual answer.
This command can only be performed in AUX user interface view.
Examples
# Configure the answer mode of the Modem on the AUX port as auto-answer.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] user-interface aux 0
[H3C-ui-aux0] modem auto-answer
1.1.18 modem timer answer
Syntax
modem timer answer seconds
undo modem timer answer
View
User interface view
Parameters
seconds: Specifies the timer answer in seconds, ranging from 1 to 60.The default value is 30s.
Description
Use the modem timer answer command to configure the timer answer from off-hook to carrier detected when establishing the call in connection.
Use the undo modem timer answer command to restore the default timeout value.
This command can only be performed in AUX user interface view.
Examples
# Set the timer answer of AUX 0 to 45s.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] user-interface aux 0
[H3C-ui-aux0] modem timer answer 45
1.1.19 parity
Syntax
parity { even | mark | none | odd | space }
undo parity
View
User interface view
Parameters
even: Configures to perform even parity.
mark: Configures to perform mark parity.
none: Configures not to perform parity.
odd: Configures to perform odd parity.
space: Configures to perform space parity.
Description
Use the parity command to configure the parity mode on the user interface.
Use the undo parity command to restore the default parity mode.
This command can only be performed in Console and AUX user interface view.
By default, the mode is set to none.
Examples
# Set mark parity on the AUX port.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] user-interface aux 0
[H3C-ui-aux0] parity mark
1.1.20 protocol inbound
Syntax
protocol inbound { all | telnet | ssh }
View
User interface view
Parameters
all: Specifies to support all the protocols including Telnet and SSH.
ssh: Specifies to support SSH protocol only.
telnet: Specifies to support Telnet protocol only.
Description
Use the protocol inbound command to set the protocols to be used when logging in.
By default, all the protocols are set to be used for user login
Note that only the VTY type of user interfaces support protocol setting.
Related commands: user-interface vty.
Examples
# Set the Telnet protocol to be used for user login.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] user-interface vty 0
[H3C-ui-vty0] protocol inbound telnet
1.1.21 quit
Syntax
quit
View
Any view
Parameters
None
Description
Use the quit command to return to the lower level view from the current view. If the current view is user view, you can quit the system.
Related commands: see return, system-view.
Examples
# Return to user view from system view.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] quit
<H3C>
1.1.22 return
Syntax
return
View
System view or above
Parameters
None
Description
Use the return command to return to user view from a view other than user view.
Combination key <Ctrl+Z> performs the same function with the return command.
Related commands: quit.
Examples
# Return to user view from VLAN view.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C]vlan 2
[H3C-vlan2] return
<H3C>
1.1.23 screen-length
Syntax
screen-length screen-length
undo screen-length
View
User interface view
Parameters
screen-length: Specifies how many lines can be displayed on a screen, ranging from 0 to 512. The default value is 24.
Description
Use the screen-length command to configure how many lines that can be displayed on a screen of the terminal.
Use the undo screen-length command to restore the default number of terminal information lines displayed on the terminal screen.
By default, 24 lines (including the multi-screen identifier lines) are displayed in one screen when the multi-screen display function is enabled.
The screen-length 0 command is used to disable this function.
Examples
# Configure the lines that can be displayed on a screen as 20 lines.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] user-interface aux 0
[H3C-ui-aux0] screen-length 20
1.1.24 send
Syntax
send { all | type number }
View
User view
Parameters
all: Configures to send message to all user interfaces.
type: Specifies the user interface type, which can be console, aux or vty.
number: Specifies the absolute/relative number of the user interface. If it follows type, it is a relative number. For Aux or Console user types, it can be 0 only. For VTY user type, it ranges from 0 to 4. If the type is not specified, it is an absolute number, which ranges from 0 to 6.
Description
Use the send command to send messages between different user interfaces.
Examples
# Send message to all the user interfaces.
<H3C> send all
1.1.25 service modem-callback
service modem-callback
undo service modem-callback
View
System view
Parameters
None
Description
Use the service modem-callback command to enable the Modem callback function.
Use the undo service modem-callback command to disable the Modem callback function.
By default, the Modem callback function is disabled.
With Modem callback function enabled, callback is started when the Modem line is activated (that is, when the Modem detects carrier presence or data sent from the peer end). At this time, accounting has not yet started, and so the cost is saved.
Examples
# Enable the Modem callback function.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] service modem-callback
1.1.26 service-type telnet
Syntax
service-type telnet [ level level ]
undo service-type telnet
View
Local-user view
Parameters
level: Specifies which level of command a user can use after login, ranging from 0 to 3 and defaults to level 2.
Description
Use the service-type telnet command to configure which level of command a user can use after login.
Use the undo service-type telnet command to restore the default level of command a user can use after login.
Commands are classified into four levels, namely visit level, monitoring level, configuration level and management level. They are introduced as follows:
l Visit level: Commands of this level involve command of network diagnosis tool (such as ping and tracert), command of switch between different language environments of user interface ( language-mode), and telnet command etc. The operation of saving configuration file is not allowed on this level of commands.
l Monitoring level: Commands of this level, including the display command and the debugging command, are used for system maintenance, service fault diagnosis, etc. The operation of saving the configuration file is not allowed on this level of commands.
l Configuration level: Service configuration commands, including routing command and commands on each network layer, are used to provide direct network service to the user.
l Management level: These are commands that influence the basic operation of the system and system support module, which plays a supporting role on service. Commands of this level involve file system commands, FTP commands, TFTP commands, XModem downloading commands, user management commands, and level setting commands.
Examples
# Configure the user zbr to use commands at level 0 after login.
System View: return to User View with Ctrl+Z.
[H3C] local-user zbr
[H3C-luser-zbr] service-type telnet level 0
1.1.27 set authentication password
Syntax
set authentication password { cipher | simple } password
undo set authentication password
View
User interface view
Parameters
cipher: Displays the current password with cipher text.
simple: Displays the current password with plain text.
password: If the authentication is in the simple mode, the password must be in plain text. If the authentication is in the cipher mode, the password can be either in encrypted text or in plain text. The result is determined by the input. A plain text password is a sequential character string of no more than 16 digits, for example, H3C918. The length of an encrypted password must be 24 digits and in encrypted text, for example, _(TT8F]Y\5SQ=^Q`MAF4<1!!.
Description
Use the set authentication password command to configure the password for local authentication.
Use the undo set authentication password command to cancel local authentication password.
The password in plain text is required when performing authentication, regardless whether the configuration is plain text or encrypted text.
& Note:
By default, password is required to be set for authenticating local users and remote Modem users log in via the AUX port, and Telnet users log in through Ethernet port. If no password has been set, the following prompt will be displayed “Login password has not been set.”
Examples
# Configure the local authentication password on VTY 0 to aaa.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] user-interface vty 0
[H3C-ui-vty0] set authentication password simple aaa
1.1.28 shell
Syntax
shell
undo shell
View
User interface view
Parameters
None
Description
Use the shell command to enable terminal service of a user interface.
Use the undo shell command to disable the terminal service of a user interface.
By default, terminal service is enabled.
When using the undo shell command, note the following points.
l The undo shell command can only be used on the user interfaces other than the Console user interface.
l You cannot use this command on the user interface via which you log in.
l You will be asked to confirm before executing this command on any legal user interface.
Examples
# Disable terminal service on the vty user interface 0 to 4 after logging in to the switch via user interface 0.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] user-interface vty 0 4
[H3C-ui-vty0-4] undo shell
1.1.29 speed
Syntax
speed speed-value
undo speed
View
User interface view
Parameters
speed-value: Specifies the transmission rate on the user interface in bps, which can be 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, or 115200. The default rate is 9600 bps.
Description
Use the speed command to configure the transmission rate on the user interface.
Use the undo speed command to restore the default rate.
This command can only be performed in Console and AUX user interface view.
Note that AUX user interface does not support the transmission rate: 57600 bps and 115200 bps.
Examples
# Configure the transmission speed on the AUX port as 4800 bps.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] user-interface aux 0
[H3C-ui-aux0] speed 4800
1.1.30 stopbits
Syntax
stopbits { 1 | 1.5 | 2 }
undo stopbits
View
User interface view
Parameters
1: Sets 1 stop bit.
1.5: Sets 1.5 stop bits.
2: Sets 2 stop bits.
Description
Use the stopbits command to configure the stop bits on the user interface.
Use the undo stopbits command to restore the default stop bits.
This command can only be performed in Console and AUX user interface view.
By default, the value is 1.
Note that setting 1.5 stop bits is not available on H3C S9500 Series Routing Switches at present.
Examples
# Set stop bits to 2.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] user-interface aux 0
[H3C-ui-aux0] stopbits 2
1.1.31 sysname
Syntax
sysname text
undo sysname
View
System view
Parameters
text: Specifies the hostname with a character string, ranging from 1 to 30 characters. The default name is H3C.
Description
Use the sysname command to configure the hostname of the switch.
Use the undo sysname command to restore the default hostname.
Changing the hostname of the switch will affect the prompt of command line interface. For example, if the hostname of the switch is H3C, the prompt in user view will be <H3C>.
Examples
# Configure the hostname of switch to Switch.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] sysname Switch
[Switch]
1.1.32 system-view
Syntax
system-view
View
User view
Parameters
None
Description
Use the system-view command to enter system view from user view.
Related commands: quit, return.
Examples
# Enter system view from user view.
<H3C> system-view
System View: return to User View with Ctrl+Z..
[H3C]
1.1.33 telnet
Syntax
telnet [ vpn-instance vpn-instance-name ] { hostname | ip-address } [ service-port ] [ source { ip ip-address | interface interface-type interface-number } ]
View
User view
Parameters
vpn-instance vpn-instance-name: Specifies vpn-instance of MPLS VPN.
hostname: Specifies the host name of the remote system. It is configured using the ip host command.
ip-address: Specifies the IP address of the remote switch.
service-port: Designates the TCP port on the remote switch providing Telnet service, ranging from 0 to 65535.
source: Specifies a source address or source interface.
ip ip-address: Specifies a source address.
interface interface-type interface-number: Specifies the source interface type and number.
Description
Use the telnet command to log in to another switch from the current one via telnet for remote management. To terminate the Telnet login, press <Ctrl+K>.
By default, when the service-port is not specified, the default telnet port number is 23.
If a source address or source interface is specified, the specified IP address or the main IP address of the specified interface is used as the source address.
Related commands: display tcp status and ip host.
Examples
# Log in to switch H3C2 at 129.102.0.1 from the current H3C1 switch.
<H3C1> telnet 129.102.0.1
Trying 129.102.0.1...
Press CTRL+K to abort
Connected to 129.102.0.1...
<H3C2>
1.1.34 user-interface
Syntax
user-interface [ type ] first-number [ last-number ]
View
System view
Parameters
type: Specifies the user interface type, which can be aux, console or vty.
first-number: Specifies the number of the first user interface to be configured. It must be an integer in the range of 0 to 6.
last-number: Specifies the number of the last user interface to be configured. It must be an integer in the range of 1 to 6 and it must be greater than the value of first-number.
Description
Use the user-interface command to enter single user interface view to configure the corresponding user interfaces.
Examples
# Enter vty 0 user interface view for configuration.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] user-interface vty 0
1.1.35 user privilege level
Syntax
user privilege level level
undo user privilege level
View
User interface view
Parameters
level: Specifies which level of command a user can use after login from the specifically user interface, ranging from 0 to 3.
Description
Use the user privilege level command to configure which level of command a user can use after login from the specifically user interface, so that a user can use all the available commands at this level.
Use the undo user privilege level command to restore the default level of command a user can use after login from the specifically user interface.
By default, a user can access the commands at Level 3 after logging in through the Console user interface, and the commands at Level 0 after logging in through the AUX or VTY user interface.
Examples
# Configure to use commands level 0 after logging in from VTY 0 user interface.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] user-interface vty 0
[H3C-ui-vty0] user privilege level 0
# After you telnet from VTY 0 user interface to the switch, you will view the terminal only displays commands at level 0.
<H3C> ?
User view commands:
debugging Enable system debugging functions
language-mode Specify the language environment
ping Ping function
quit Exit from current command view
super Privilege current user a specified priority level
telnet Establish one TELNET connection
tracert Trace route function
undo Cancel current setting