H3C WX3000 Series Unified Switches Switching Engine Command Reference-6W103

HomeSupportWirelessH3C WX3000 Series Unified SwitchesReference GuidesCommand ReferencesH3C WX3000 Series Unified Switches Switching Engine Command Reference-6W103
02-Login Command
Title Size Download
02-Login Command 149.73 KB

Login Commands

Login Commands

authentication-mode

Syntax

authentication-mode { password | scheme [ command-authorization ] | none }

View

User interface view

Parameters

password: Authenticates users using the local password.

scheme: Authenticates users locally or remotely using usernames and passwords.

command-authorization: Performs command authorization on TACACS authentication server.

none: Specifies not to authenticate users.

Description

Use the authentication-mode command to specify the authentication mode.

l          If you specify the password keyword to authenticate users using the local password, remember to set the local password using the set authentication password { cipher | simple } password command at the same time.

l          If you specify the scheme keyword to authenticate users locally or remotely using usernames and passwords, the actual authentication mode, that is, local or remote, depends on other related AAA scheme configuration of the domain.

l          If this command is executed with the command-authorization keyword specified, authorization is performed on the TACACS server whenever you attempt to execute a command, and the command can be executed only when you pass the authorization. Normally, a TACACS server contains a list of the commands available to different users.

If you specify to perform local authentication when a user logs in through the Console port, a user can log in to the switching engine with the password not configured. But for a VTY user interface, a password is needed for a user to log in to the switching engine through it under the same circumstance.

By default, users logging in through the Console port are not authenticated, whereas modem users and Telnet users are authenticated.

 

For a VTY user interface, to specify the none keyword or password keyword for login users, make sure that SSH is not enabled in the user interface. Otherwise, the configuration fails. Refer to section protocol inbound for related configuration.

 

To improve security and prevent attacks to the unused Sockets, TCP 23 and TCP 22, ports for Telnet and SSH services respectively, will be enabled or disabled after corresponding configurations.

l          If the authentication mode is none, TCP 23 will be enabled, and TCP 22 will be disabled.

l          If the authentication mode is password, and the corresponding password has been set, TCP 23 will be enabled, and TCP 22 will be disabled.

l          If the authentication mode is scheme, there are three scenarios: when the supported protocol is specified as telnet, TCP 23 will be enabled; when the supported protocol is specified as SSH, TCP 22 will be enabled; when the supported protocol is specified as all, both the TCP 23 and TCP 22 port will be enabled.

 

Examples

# Configure to authenticate users using the local password on the console port.

<device> system-view

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

[device] user-interface aux 0

[device-ui-aux0] authentication-mode password

auto-execute command

Syntax

auto-execute command text

undo auto-execute command

View

VTY user interface view

Parameters

text: Command to be executed automatically.

Description

Use the auto-execute command command to set the command that is executed automatically after a user logs in.

Use the undo auto-execute command command to disable the specified command from being automatically executed.

By default, no command is executed automatically after a user logs in.

Normally, the telnet command is specified to be executed automatically to enable the user to Telnet to a specific network device automatically.

 

l          The auto-execute command command may cause you unable to perform common configuration in the user interface, so use it with caution.

l          Before executing the auto-execute command command and save your configuration, make sure you can log in to the switching engine in other modes and cancel the configuration.

 

Examples

# Configure the telnet 10.110.100.1 command to be executed automatically after users log in to VTY 0.

<device> system-view

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

[device] user-interface vty 0

[device-ui-vty0] auto-execute command telnet 10.110.100.1

% This action will lead to configuration failure through ui-vty0. Are you sure?[

Y/N]y

copyright-info enable

Syntax

copyright-info enable

undo copyright-info enable

View

System view

Parameters

None

Description

Use the copyright-info enable command to enable copyright information displaying.

Use the undo copyright-info enable command to disable copyright information displaying.

By default, copyright information displaying is enabled. That is, the copyright information is displayed after a user logs in to the switching engine successfully.

Note that these two commands apply to users logging in by means of Telnet.

Examples

# Disable copyright information displaying.

****************************************************************************

* Copyright(c) 2004-2007 Hangzhou H3C Tech. Co., Ltd. All rights reserved. *

* Without the owner's prior written consent,                               *

* no decompiling or reverse-engineering shall be allowed.                  *

****************************************************************************

 

<device> system-view

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

[device] undo copyright-info enable

# After the above configuration, no copyright information is displayed after a user logs in, as shown below.

<device>

display telnet-server source-ip

Syntax

display telnet-server source-ip

View

Any view

Parameters

None

Description

Use the display telnet-server source-ip command to display the source IP address configured for the switching engine operating as the Telnet server. If the source interface is also configured for the switching engine, this command displays the IP address of the source interface. If no source IP address or source interface is specified for the Telnet server, 0.0.0.0 is displayed.

Examples

# Display the source IP address configured for the switching engine operating as the Telnet server.

<device> display telnet-server source-ip

The source IP you specified is 192.168.1.1

display telnet source-ip

Syntax

display telnet source-ip

View

Any view

Parameters

None

Description

Use the display telnet source-ip command to display the source IP address configured for the switching engine operating as the Telnet client. If the source interface is also configured for the switching engine, this command displays the IP address of the source interface. If no source address or source IP interface is configured for the Telnet client, 0.0.0.0 is displayed.

Examples

# Display the source IP address configured for the switching engine operating as the Telnet client.

<device> display telnet source-ip

The source IP you specified is 192.168.1.1

display user-interface

Syntax

display user-interface [ type number | number ] [ summary ]

View

Any view

Parameters

type: User interface type, which can be AUX (for AUX user interface) and VTY (for VTY user interface).

number: User interface index. A user interface index can be relative or absolute.

l          Relative user interface index: If you provide the type argument, number indicates the user interface index of the type. When the type is AUX, the number is 0; when the type is VTY, the number ranges from 0 to 4.

l          Absolute user interface index: If you do not provide the type argument, number indicates absolute user interface index, which ranges from 0 to 5.

summary: Displays the summary information about a user interface.

Description

Use the display user-interface command to display the information about a specified user interface or all user interfaces. If the summary keyword is not specified, this command displays user interface type, absolute/relative user interface index, transmission speed, available command level, authentication mode, and physical position. If the summary keyword is specified, this command displays the number and type of the user interfaces, including those that are in use and those that are not in use.

Examples

# Display the information about user interface 0.

<device> display user-interface 0

  Idx  Type     Tx/Rx      Modem Privi Auth  Int

F 0    AUX 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

Filed

Description

+

The user interface is in use.

F

The user interface operates in asynchronous mode.

Idx

The absolute index of the user interface

Type

User interface type and the relative index

Tx/Rx

Transmission speed of the user interface

Modem

Indicates whether or not a modem is used.

Privi

Available command level

Auth

Authentication mode

Int

Physical position of the user interface

A

The current user is authenticated by AAA.

N

Users are not authenticated.

P

Users need to provide passwords to pass the authentication.

 

# Display the summary information about the user interface.

<device> display user-interface summary

  User interface type : [AUX]

            0:U

  User interface type : [VTY]

            8:UUUX X

    4 character mode users.      (U)

    2 UI never used.             (X)

    4 total UI in use               

Table 1-2 display user-interface summary command output description

Field

Description

User interface type

User interface type: AUX or VTY

0:U/8:UUUX X

0 and 8 represent the least absolute number for AUX user interfaces and VTY user interfaces. “U” and “X” indicate the usage state of an interface: U indicates that the corresponding user interface is used; X indicates that the corresponding user interface is idle. The total number of Us and Xs is the total number of user interfaces that are available.

character mode users.      (U)

The number of current users, that is, the number of Us

UI never used.             (X)

The number of user interfaces not being used currently, that is, the number of Xs

total UI in use.

The total number of user interfaces being used currently, that is, the total number of users currently logging in to the switching engine successfully

 

display users

Syntax

display users [ all ]

View

Any view

Parameters

all: Displays the user information about all user interfaces.

Description

Use the display users command to display the user information about user interfaces.

If you do not specify the all keyword, only the user information about the current user interface is displayed.

Examples

# Display the user information about the current user interface.

<device> display users

        UI    Delay      Type   Ipaddress       Username        Userlevel

F 0   AUX 0   00:00:00                                             3

  1   VTY 0   00:06:08  TEL    192.168.0.3

 

 +   : Current operation user.

 F   : Current operation user work in async mode.

Table 1-3 display users command output description

Field

Description

UI

The numbers in the left sub-column are the absolute user interface indexes, and those in the right sub-column are the relative user interface indexes.

Delay

The period (in seconds) the user interface idles for.

Type

User type

Ipaddress

The IP address from which the user logs in.

Username

The login name of the user that logs in to the user interface.

Userlevel

The level of the commands available to the users logging in to the user interface

F

The information is about the current user interface, and the current user interface operates in asynchronous mode.

+

The user interface is in use.

 

display web users

Syntax

display web users

View

Any view

Parameters

None

Description

Use the display web users command to display the information about the current on-line Web users.

Examples

# Display the information about the current on-line Web users.

<device> display web users

ID         Name     Language     Level        Login Time    Last Req. Time

00800003   admin    English      Management   06:16:32      06:18:35

Table 1-4 display web users command output description

Field

Description

ID

ID of a Web user

Name

Name of a Web user

Language

Language a Web user uses

Level

Level of a Web user

Login Time

Time when a Web user logs in

Last Req. Time

Time when the latest request is made

 

free user-interface

Syntax

free user-interface [ type ] number

View

User view

Parameters

type: User interface type, which can be AUX (for AUX user interface) and VTY (for VTY user interface). The device does no support release of the AUX user interface.

number: User interface index. A user interface index can be relative or absolute.

l          Relative user interface index: If you provide the type argument, number indicates the user interface index of the type. When the type is AUX, the number is 0; when the type is VTY, the number ranges from 0 to 4.

l          Absolute user interface index: If you do not provide the type argument, number indicates absolute user interface index, which ranges from 0 to 5.

Description

Use the free user-interface command to free a user interface. That is, this command tears down the connection between a user and a user interface.

Note that the current user interface cannot be freed.

Examples

# Release user interface VTY 1.

<device> free user-interface vty 1

Are you sure you want to free user-interface vty1 [Y/N]? y

 [OK]

After you perform the above operation, the user connection on user interface VTY1 is torn down. The user in it must log in again to connect to the switching engine.

header

Syntax

header [ incoming | legal | login | shell ] text

undo header { incoming | legal | login | shell }

View

System view

Parameters

incoming: Sets the login banner for users that log in through modems. If you specify to authenticate login users, the banner appears after a user passes the authentication. (The session does not appear in this case.) The device does no support Modem login.

legal: Sets the authorization banner, which is displayed when a user enters user view.

login: Sets the login banner.

shell: Sets the banner displayed when a non Modem login user enters user view.

text: Banner to be displayed. If no keyword is specified, this argument is the login banner. You can provide this argument in two ways. One is to enter the banner in the same line as the command (A command line can accept up to 254 characters.) The other is to enter the banner in multiple lines (you can start a new line by pressing Enter,) where you can enter a banner that can contain up to 2000 characters (including the invisible characters such as carriage return). Note that the first character is the beginning character and the end character of the banner. After entering the end character, you can press Enter to exit the interaction.

Description

Use the header command to set the banners that are displayed when a user logs in to the switching engine. The login banner is displayed on the terminal when the connection is established. And the session banner is displayed on the terminal if a user successfully logs in.

Use the undo header command to disable displaying a specific banner or all banners.

By default, no banner is configured.

Note the following:

l          If you specify any one of the four keywords without providing the text argument, the specified keyword will be regarded as the login information.

l          The banner configured with the header incoming command is displayed after a modem user logs in successfully or after a modem user passes the authentication when authentication is required. In the latter case, the shell banner is not displayed.

l          The banner configured with the header legal command is displayed when you enter the user interface. If password authentication is enabled or an authentication scheme is specified, this banner is displayed before login authentication.

l          With password authentication enabled or an authentication scheme specified, the banner configured with the header login command is displayed after the banner configured with the header legal command and before login authentication.

l          The banner configured with the header shell command is displayed after a non-modem user session is established.

You can specify the banner in the following three ways:

l          Enter the banner in a single line. If there are multiple characters and the first character is the same as the last character, the first character does not act as part of the banner. The following gives an example of this way:

[device] header shell 0welcome, my friend!0

After you execute the above command and then log in again, “Welcome, my friend!” is displayed.

l          Enter the banner in multiple lines. If you only type one character in the first line of a banner, the character and the last character do not act as part of the banner. The following gives an example of this way.

[device] header shell 0

Input banner text, and quit with the character '0'.

Welcome!0

When you log in the next time, “Welcome!” is displayed as the banner. The beginning character and the end character (character 0) do not appear.

l          Enter the banner in multiple lines. If you type multiple characters in the first line of a banner and the beginning and the end characters of the banner in this line are not the same, the beginning character is part of the banner. The following is an example.

[device] header shell hello

Input banner text, and quit with the character 'h'.

my friend!

h

When you log in the next time, hello and my friend! are displayed in two lines as the banner. The beginning character h appears in the banner.

Examples

# Set the session banner.

Option 1: Enter the banner in the same line as the command.

<device> system-view

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

[device] header shell %SHELL: Hello! Welcome%

When you log in the next time, the session banner appears on the terminal as the following:

[device] quit

<device> quit

Please press ENTER

SHELL: Hello! Welcome

(The beginning and end characters of the banner are not displayed.)

<device>

Option 2: Enter the banner in multiple lines.

<device> system-view

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

[device] header shell %SHELL:

(Following appears after you press <Enter>:)

Input banner text, and quit with the character '%'.

Continue entering the banner and end the banner with the character identical with the beginning character of the banner.

Hello! Welcome %

(Press <Enter>.)

[device]

When you log in the next time, the session banner appears on the terminal as the following:

[device] quit

<device> quit

Please press ENTER

%SHELL:

(Note that the beginning character of the banner appears.)

Hello! Welcome

<device>

# Set the authorization banner.

<device> system-view

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

[device] header legal %ATTENTION!

(Following appears after you press <Enter>.)

Please input banner content, and quit with the character '%'.

Continue entering the banner and end the banner with the character identical with the beginning character of the banner.

THIS IS A DOD COMPUTER SYSTEM. BEFORE PROCESSING CLASSIFIED INFORMATION, CHECK THE SECURITY ACCREDITATION LEVEL OF THIS SYSTEM.%

[device]

When you log in the next time, the session banner appears on the terminal as the following:

[device] quit

<device> quit

Please press ENTER

ATTENTION!

THIS IS A DOD COMPUTER SYSTEM. BEFORE PROCESSING CLASSIFIED INFORMATION, CHECK THE SECURITY ACCREDITATION LEVEL OF THIS SYSTEM.

 

 Press Y or ENTER to continue, N to exit.

<device>

history-command max-size

Syntax

history-command max-size value

undo history-command max-size

View

User interface view

Parameters

value: Size of the history command buffer, ranging from 0 to 256 (in terms of commands).

Description

Use the history-command max-size command to set the size of the history command buffer.

Use the undo history-command max-size command to revert to the default history command buffer size.

By default, the history command buffer can contain up to ten commands.

Examples

# Set the size of the history command buffer of AUX 0 to 20 to enable it to store up to 20 commands.

<device> system-view

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

[device] user-interface aux 0

[device-ui-aux0] history-command max-size 20

idle-timeout

Syntax

idle-timeout minutes [ seconds ]

undo idle-timeout

View

User interface view

Parameters

minutes: Number of minutes. This argument ranges from 0 to 35,791.

seconds: Number of seconds. This argument ranges from 0 to 59.

Description

Use the idle-timeout command to set the timeout time. The connection to a user interface is terminated if no operation is performed in the user interface within the timeout time.

Use the undo idle-timeout command to revert to the default timeout time.

You can use the idle-timeout 0 command to disable the timeout function.

The default timeout time is 10 minutes.

Examples

# Set the timeout time of AUX 0 to 1 minute.

<device> system-view

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

[device] user-interface aux 0

[device-ui-aux0] idle-timeout 1

ip http shutdown

Syntax

ip http shutdown

undo ip http shutdown

View

System view

Parameters

None

Description

Use the ip http shutdown command to shut down the WEB Server.

Use the undo ip http shutdown command to launch the WEB Server.

By default, the WEB Server is launched.

 

To improve security and prevent attacks to the unused Sockets, TCP 80 port for HTTP service will be enabled or disabled after corresponding configurations.

l          TCP 80 port is enabled only after you use the undo ip http shutdown command to enable the Web server.

l          If you use the ip http shutdown command to disabled the Web server, TCP 80 port is disabled.

 

After the Web file is upgraded, you need to use the boot web-package command to specify a new Web file for the Web server to operate properly. Refer to the File System Management part in this manual for information about the boot web-package command.

 

Examples

# Shut down the WEB Server.

<device> system-view

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

[device] ip http shutdown

# Launch the WEB Server.

[device] undo ip http shutdown

lock

Syntax

lock

View

User view

Parameters

None

Description

Use the lock command to lock the current user interface to prevent unauthorized operations in the user interface.

After you execute this command, the system prompts you for the password and prompts you to confirm the password. The user interface is locked only when the password entered is correct.

To unlock a user interface, press Enter and then enter the password as prompted.

Note that if you set a password containing more than 16 characters, the system matches only the first 16 characters of the password entered for unlocking the user interface. That is, the system unlocks the user interface as long as the first 16 characters of the password entered are correct.

By default, the current user interface is not locked.

Examples

# Lock the current user interface.

<device> lock

Press Enter, enter a password, and then confirm it as prompted. (The password entered is not displayed).

Password:

Again:

                  locked !

In this case, the user interface is locked. To operate the user interface again, you need to press Enter and provide the password as prompted.

Password:

<device>

oap management-ip

Syntax

oap management-ip ip-address slot slot-number

undo oap management-ip slot slot-number

View

System view

Default Level

2: System level

Parameters

slot slot-number: Number of the slot where an OAP module resides.

ip-address: Management IP address of the OAP module. This address must be configured on the OAP module beforehand.

Description

Use the oap management-ip command to configure the management IP address of an OAP module.

By default, the management IP address of an OAP module is not configured.

When you use network management station (NMS) to manage an OAP module, you must first configure the management IP address of the OAP module.

Examples

# Configure the management IP address of the OAP module in slot 0 as 1.1.1.1.

<Sysname> System-view

[Sysname] oap management-ip 1.1.1.1 slot 0

parity

Syntax

parity { even | none | odd | }

undo parity

View

AUX user interface view

Parameters

even: Performs even checks.

none: Does not check.

odd: Performs odd checks.

Description

Use the parity command to set the check mode of the user interface.

Use the undo parity command to revert to the default check mode.

By default, no check is performed.

Examples

# Set to perform even checks.

<device> system-view

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

[device] user-interface aux 0

[device-ui-aux0] parity even

protocol inbound

Syntax

protocol inbound { all | ssh | telnet }

View

VTY user interface view

Parameters

all: Supports both Telnet protocol and SSH protocol.

ssh: Supports SSH protocol.

telnet: Supports Telnet protocol.

Description

Use the protocol inbound command to specify the protocols supported by the user interface.

Both Telnet protocol and SSH protocol are supported by default.

Related commands: user-interface vty.

 

To improve security and prevent attacks to the unused Sockets, TCP 23 and TCP 22 (ports for Telnet and SSH services respectively) will be enabled or disabled after corresponding configurations.

l          If the authentication mode is none, TCP 23 will be enabled, and TCP 22 will be disabled.

l          If the authentication mode is password, and the corresponding password has been set, TCP 23 will be enabled, and TCP 22 will be disabled.

l          If the authentication mode is scheme, there are three scenarios: when the supported protocol is specified as telnet, TCP 23 will be enabled; when the supported protocol is specified as ssh, TCP 22 will be enabled; when the supported protocol is specified as all, both the TCP 23 and TCP 22 port will be enabled.

 

To configure a user interface to support SSH, you need to set the authentication mode to scheme for users to log in successfully. If the authentication mode is set to password or none for login users, the protocol inbound ssh command will fail. Refer to section authentication-mode for the related configuration.

 

Examples

# Configure that only SSH protocol is supported in VTY 0.

<device> system-view

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

[device] user-interface vty 0

[device-ui-vty0] protocol inbound ssh

screen-length

Syntax

screen-length screen-length

undo screen-length

View

User interface view

Parameters

screen-length: Number of lines the screen can contain. This argument ranges from 0 to 512.

Description

Use the screen-length command to set the number of lines the terminal screen can contain.

Use the undo screen-length command to revert to the default number of lines.

By default, the terminal screen can contain up to 24 lines.

You can use the screen-length 0 command to disable the function to display information in pages.

Examples

# Set the number of lines the terminal screen can contain to 20.

<device> system-view

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

[device] user-interface aux 0

[device-ui-aux0] screen-length 20

send

Syntax

send { all | number | type number }

View

User view

Parameters

all: Sends messages to all user interfaces.

type: User interface type, which can be AUX (for AUX user interface) and VTY (for VTY user interface).

number: User interface index. A user interface index can be relative or absolute.

l          Relative user interface index: If you provide the type argument, number indicates the user interface index of the type. When the type is AUX, the number is 0; when the type is VTY, the number ranges from 0 to 4.

l          Absolute user interface index: If you do not provide the type argument, number indicates absolute user interface index, which ranges from 0 to 5.

Description

Use the send command to send messages to a user interface or all the user interfaces.

Examples

# Send hello to all user interfaces.

<device> send all

Enter message, end with CTRL+Z or Enter; abort with CTRL+C:

hello^Z

Send message? [Y/N]y

service-type

Syntax

service-type { ftp | lan-access | { ssh | telnet | terminal }* [ level level ] }

undo service-type { ftp | lan-access | { ssh | telnet | terminal }* }

View

Local user view

Parameters

ftp: Specifies the users to be of FTP type.

lan-access: Specifies the users to be of LAN-access type, which normally means Ethernet users, such as 802.1x users.

ssh: Specifies the users to be of SSH type.

telnet: Specifies the users to be of Telnet type.

terminal: Makes terminal services available to users logging in through the console port.

level level: Specifies the user level for Telnet users, Terminal users, or SSH users. The level argument ranges from 0 to 3 and defaults to 0.

Description

Use the service-type command to specify the login type and the corresponding available command level.

Use the undo service-type command to cancel login type configuration.

Commands fall into four command levels: visit, monitor, system, and manage, which are described as follows:

l          Visit level: Commands at this level are used to diagnose network and change the language mode of user interface, such as the ping, tracert, and language-mode command. The telnet command is also at this level. Commands at this level cannot be saved in configuration files.

l          Monitor level: Commands at this level are used to maintain the system, to debug service problems, and so on. The display and debugging commands are at monitor level. Commands at this level cannot be saved in configuration files.

l          System level: Commands at this level are used to configure services. Commands concerning routing and network layers are at system level. You can utilize network services by using these commands.

l          Manage level: Commands at this level are for the operation of the entire system and the system supporting modules. Services are supported by these commands. Commands concerning file system, file transfer protocol (FTP), trivial file transfer protocol (TFTP), downloading using XModem, user management, and level setting are at administration level.

Refer to CLI in H3C WX3000 Series Unified Switches Switching Engine Configuration Guide for detailed introduction to the command level.

Examples

# Configure commands at level 0 are available to the users logging in with the user name zbr.

<device> system-view

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

[device] local-user zbr

[device-luser-zbr] service-type telnet level 0

# To verify the above configuration, you can quit the system, log in again with the user name zbr, and then list the available commands, as listed in the following.

[device] quit

<device> ?

User view commands:

  cluster   Run cluster command

  display   Display current system information

  nslookup  Query Internet name servers

  ping      Ping function

  quit      Exit from current command view

  super     Set the current user priority level

  telnet    Establish one TELNET connection

  tracert   Trace route function

  undo      Cancel current setting

set authentication password

Syntax

set authentication password { cipher | simple } password

undo set authentication password

View

User interface view

Parameters

cipher: Specifies to save the local password in cipher text.

simple: Specifies to save the local password in plain text.

password: Password to be set. The password must be in plain text if you specify the simple keyword in the set authentication password command. If you specify the cipher keyword, the password can be in either cipher text or plain text, as described in the following.

l          When you enter the password in plain text containing no more than 16 characters (such as 123), the system converts the password to the corresponding 24-character encrypted password.

l          When you enter the password in cipher text containing 24 characters, make sure you are aware of the corresponding password in plaintext. For example, the plain text 123456 corresponds to the cipher text OUM!K%F<+$[Q=^Q`MAF4<1!!.

Description

Use the set authentication password command to set the local password.

Use the undo set authentication password command to remove the local password.

Note that only plain text passwords are expected when users are authenticated.

 

By default, authentication is performed when a user logs in through Telnet. If no password is set, the “Login password has not been set!” message appears on the terminal when a user logs in through Telnet and the connection is then torn down.

 

Examples

# Set the local password of VTY 0 to 123.

<device> system-view

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

[device] user-interface vty 0

[device-ui-vty0] set authentication password simple 123

shell

Syntax

shell

undo shell

View

User interface view

Parameters

None

Description

Use the shell command to enable terminal services.

Use the undo shell command to disable terminal services.

By default, terminal services are disabled in all user interfaces.

Note the following when using the undo shell command:

l          Terminal services cannot be disabled in AUX user interfaces.

l          This command is unavailable in the current user interface.

l          The execution of this command requires user confirmation.

Examples

# Disable terminal services in VTY 0 through VTY 4.

<device> system-view

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

[device] user-interface vty 0 4

[device-ui-vty0-4] undo shell

% Disable ui-vty0-4 , are you sure ? [Y/N]y

sysname

Syntax

sysname string

undo sysname

View

System view

Parameters

string: System name of the switching engine. This argument can contain 1 to 30 characters and defaults to H3C.

Description

Use the sysname command to set a system name for the switching engine.

Use the undo sysname command to restore to the default system name.

The CLI prompt reflects the system name of the switching engine. For example, if the system name of the switching engine is device, then the prompt of user view is <device>.

Examples

# Set the system name of the switching engine to ABC.

<device> system-view

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

[device] sysname ABC

[ABC]

telnet

Syntax

telnet { hostname | ip-address } [ service-port ] [ source-interface interface-type interface-number | source-ip ip-address ]

View

User view

Parameters

hostname: Host name of the remote device, a string of 1 to 20 characters.

ip-address: IP address of the remote device.

service-port: Number of the TCP port through which the remote device provides Telnet service. This argument ranges from 0 to 65535.

source-interface interface-type interface-number: Specifies the type and number of the source interface.

source-ip ip-address: Specifies the source IP address.

Description

Use the telnet command to Telnet to another device from the switching engine to manage the former remotely. You can terminate a Telnet connection by pressing Ctrl+K or by executing the quit command.

The default Telnet port number is 23.

Examples

# Telnet to the device with the host name of device2 and IP address of 129.102.0.1 from the current switching engine (with the host name of device1).

<device1> telnet 129.102.0.1

Trying 129.102.0.1 ...

Press CTRL+K to abort

Connected to 129.102.0.1 ...

**************************************************************************

* Copyright(c) 2004-2007 Hangzhou H3C Tech. Co., Ltd. All rights reserved. *

* Without the owner's prior written consent,                                   *

* no decompiling or reverse-engineering shall be allowed.                       *

**************************************************************************

 

<device2>

telnet source-interface

Syntax

telnet source-interface interface-type interface-number

undo telnet source-interface

View

System view

Parameters

interface-type interface-number: Interface type and interface number. The interface can be a loopback interface or a VLAN interface. If a VLAN interface is specified, make sure it is in up state.

Description

Use the telnet source-interface command to specify the source interface for a Telnet client.

Use the undo telnet source-interface command to clear the specified source interface configuration.

With this command configured, when a device logs in to the Telnet server as a Telnet client, the source IP address is the IP address of the specified interface.

When the telnet source-interface command is executed, if the interface specified does not exist, the device prompts that this configuration fails.

Examples

# Specify Vlan-interface2 as the source interface for the Telnet client.

<device> system-view

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

[device] telnet source-interface Vlan-interface 2

telnet source-ip

Syntax

telnet source-ip ip-address

undo telnet source-ip

View

System view

Parameters

ip-address: IP address to be set.

Description

Use the telnet source-ip command to specify the source IP address for a Telnet client.

Use the undo telnet source-ip command to cancel the source IP address configuration.

With the telnet source-ip command configured, the specified IP address functions as the source IP address when a device logs in to a Telnet server as a Telnet client.

When the telnet source-ip command is executed, if the IP address specified is not an IP address of the local device, your configuration fails.

Examples

# Set the source IP address to 192.168.1.1 for the Telnet client.

<device> system-view

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

[device] telnet source-ip 192.168.1.1

telnet-server source-interface

Syntax

telnet-server source-interface interface-type interface-number

undo telnet-server source-interface

View

System view

Parameters

interface-type interface-number: Interface type and interface number. The interface can be a loopback interface or a VLAN interface. If a VLAN interface is specified, it must be in up state.

Description

Use the telnet-server source-interface command to specify the source interface for a Telnet server.

Use the undo telnet-server source-interface command to clear the source interface configuration.

With the telnet-server source-interface command configured, the IP address of the specified interface is the IP address of the device functioning as a Telnet server.

If the interface specified does not exist, your configuration fails.

Examples

# Specify VLAN-interface2 as the source interface for the Telnet client.

<device> system-view

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

[device] telnet-server source-interface Vlan-interface 2

telnet-server source-ip

Syntax

telnet-server source-ip ip-address

undo telnet-server source-ip

View

System view

Parameters

ip-address: Source IP address to be set.

Description

Use the telnet-server source-ip command to specify the source Telnet server IP address.

Use the undo telnet-server source-ip command to remove the source Telnet server IP address.

The source Telnet server IP address configured for the switching engine is valid when the switching engine operates as a Telnet server.

Note that the source Telnet server IP address must be previously assigned to the local device.

Examples

# Specify the source Telnet server IP address as 192.168.1.1.

<device> system-view

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

[device] telnet-server source-ip 192.168.1.1

user-interface

Syntax

user-interface [ type ] first-number [ last-number ]

View

System view

Parameters

type: User interface type, which can be AUX (for AUX user interface) and VTY (for VTY user interface).

first-number: User interface index identifying the first user interface to be configured. A user interface index can be relative or absolute.

l          Relative user interface index: If you provide the type argument, number indicates the user interface index of the type. When the type is AUX, the number is 0; when the type is VTY, the number ranges from 0 to 4.

l          Absolute user interface index: If you do not provide the type argument, number indicates absolute user interface index, which ranges from 0 to 5.

last-number: User interface number identifying the last user interface to be configured. The value of this argument must be larger than that of the first-number argument.

Description

Use the user-interface command to enter one or more user interface views to perform configuration.

Examples

# Enter VTY0 user interface.

<device> system-view

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

[device] user-interface vty 0

[device-ui-vty0]

user privilege level

Syntax

user privilege level level

undo user privilege level

View

User interface view

Parameters

level: Command level ranging from 0 to 3.

Description

Use the user privilege level command to configure the command level available to the users logging in to the user interface.

Use the undo user privilege level command to revert to the default command level.

By default, the commands at level 3 are available to the users logging in to the AUX user interface. The commands at level 0 are available to the users logging in to VTY user interfaces.

Commands fall into four command levels: visit, monitor, system, and manage, which are described as follows:

l          Visit level: Commands at this level are used to diagnose network and change the language mode of user interface, such as the ping, tracert, and language-mode command. The telnet command is also at this level. Commands at this level cannot be saved in configuration files.

l          Monitor level: Commands at this level are used to maintain the system, to debug service problems, and so on. The display and debugging commands are at monitor level. Commands at this level cannot be saved in configuration files.

l          System level: Commands at this level are used to configure services. Commands concerning routing and network layers are at system level. You can utilize network services by using these commands.

l          Manage level: Commands at this level are for the operation of the entire system and the system supporting modules. Services are supported by these commands. Commands concerning file system, file transfer protocol (FTP), trivial file transfer protocol (TFTP), downloading using XModem, user management, and level setting are at administration level.

Refer to CLI in H3C WX3000 Series Unified Switches Switching Engine Configuration Guide for detailed introduction to the command level.

Examples

# Configure that commands at level 1 are available to the users logging in to VTY 0.

<device> system-view

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

[device] user-interface vty 0

[device-ui-vty0] user privilege level 1

# You can verify the above configuration by Telnetting to VTY 0 and displaying the available commands, as listed in the following.

<device> ?

User view commands:

  cluster         Run cluster command

  debugging       Enable system debugging functions

  display         Display current system information

  msdp-tracert    MSDP trace route to source RP

  mtracert        Trace route to multicast source

  nslookup        Query Internet name servers

  ping            Ping function

  quit            Exit from current command view

  reset           Reset operation

  send            Send information to other user terminal interfaces

  super           Set the current user priority level

  telnet          Establish one TELNET connection

  terminal        Set the terminal line characteristics

  tracert         Trace route function

  undo            Cancel current setting

 


Commands for Controlling Logging in Users

acl

Syntax

acl acl-number { inbound | outbound }

undo acl acl-number { inbound | outbound }

View

User interface view

Parameters

acl-number: ACL number. This argument can identify different types of ACLs, as listed below.

l          2000 to 2999, for basic ACLs

l          3000 to 3999, for advanced ACLs

l          4000 to 4999, for Layer 2 ACLs

inbound: Applies the ACL for the users Telnetting to the current switching engine.

outbound: Applies the ACL for the users Telnetting to other devices from the current switching engine. This keyword is unavailable to Layer 2 ACLs.

Description

Use the acl command to apply an ACL for Telnet users.

Use the undo acl command to cancel the configuration.

By default, no ACL is applied.

Examples

# Apply ACL 2000 (a basic ACL) for the users Telnetting to the current switching engine (assuming that ACL 2000 already exists.)

<device> system-view

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

[device] user-interface vty 0 4

[device-ui-vty0-4] acl 2000 inbound

free web-users

Syntax

free web-users { all | user-id user-id | user-name user-name }

View

User view

Parameters

all: Specifies all Web users.

user-id: Web user ID, an eight-digit hexadecimal number.

user-name: User name of the Web user. This argument can contain 1 to 80 characters.

Description

Use the free web-users command to disconnect a specified Web user or all Web users by force.

Examples

# Disconnect all Web users by force.

<device> free web-users all

ip http acl

Syntax

ip http acl acl-number

undo ip http acl

View

System view

Parameters

acl-number: ACL number ranging from 2000 to 2999.

Description

Use the ip http acl command to apply an ACL to filter Web users.

Use the undo ip http acl command to disable the switching engine from filtering Web users using the ACL.

By default, the switching engine does not use the ACL to filter Web users.

Examples

# Apply ACL 2000 to filter Web users (assuming that ACL 2000 already exists.)

<device> system-view

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

[device] ip http acl 2000

snmp-agent community

Syntax

snmp-agent community { read | write } community-name [ acl acl-number | mib-view view-name ]*

undo snmp-agent community community-name

View

System view

Parameters

read: Specifies that the community has read-only permission in the specified view.

write: Specifies that the community has read/write permission in the specified view.

community-name: Community name, a string of 1 to 32 characters.

acl acl-number: Specifies an ACL number for the community. The acl-number argument ranges from 2000 to 2999.

mib-view view-name: Sets the name of the MIB view accessible to the community. The view-name argument is a string of 1 to 32 characters.

Description

Use the snmp-agent community command to set a community name and to enable users to access the switching engine through SNMP. You can also optionally use this command to apply an ACL to perform access control for network management users.

Use the undo snmp-agent community command to cancel community-related configuration for the specified community.

By default, SNMPv1 and SNMPv2c access the switching engine by community names.

Examples

# Set the community name to h123, enable users to access the switching engine in the name of the community (with read-only permission). Apply ACL 2000 for network management users (assuming that ACL 2000 already exists.)

<device> system-view

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

[device] snmp-agent community read h123 acl 2000

snmp-agent group

Syntax

In SNMPv1 and SNMPv2c:

snmp-agent group { v1 | v2c } group-name [ read-view read-view ] [ write-view write-view ] [ notify-view notify-view ] [ acl acl-number ]

undo snmp-agent group { v1 | v2c } group-name

In SNMPv3:

snmp-agent group v3 group-name [ authentication | privacy ] [ read-view read-view ] [ write-view write-view ] [ notify-view notify-view ] [ acl acl-number ]

undo snmp-agent group v3 group-name [ authentication | privacy ]

View

System view

Parameters

v1: Specifies to adopt v1 security scheme.

v2c: Specifies to adopt v2c security scheme.

v3: Specifies to adopt v3 security scheme.

group-name: Group name. This argument can be of 1 to 32 characters.

authentication: Specifies to authenticate SNMP data without encrypting the data.

privacy: Authenticates and encrypts packets.

read-view: Sets a read-only view.

read-view: Name of the view to be set to read-only. This argument can be of 1 to 32 characters.

write-view: Sets a readable & writable view.

write-view: Name of the view to be set to readable & writable. This argument can be of 1 to 32 characters.

notify-view: Sets a notifying view.

notify-view: Name of the view to be set to a notifying view. This argument can be of 1 to 32 characters.

acl acl-number: Specifies an ACL. The acl-number argument ranges from 2,000 to 2,999.

Description

Use the snmp-agent group command to create an SNMP group. You can also optionally use this command to apply an ACL to filter network management users.

Use the undo snmp-agent group command to remove a specified SNMP group.

By default, the SNMP group configured through the snmp-agent group v3 command is not authenticated or encrypted.

Examples

# Create an SNMP group named h123 and apply ACL 2001 for network management users (assuming that basic ACL 2001 already exists).

<device> system-view

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

[device] snmp-agent group v1 h123 acl 2001

snmp-agent usm-user

Syntax

For SNMPv1 and SNMPv2c:

snmp-agent usm-user { v1 | v2c } user-name group-name [ acl acl-number ]

undo snmp-agent usm-user { v1 | v2c } user-name group-name

For SNMPv3:

snmp-agent usm-user v3 user-name group-name [ cipher ] [ authentication-mode { md5 | sha } auth-password [ privacy-mode { aes128 | des56 } priv-password ] ] [ acl acl-number ]

undo snmp-agent usm-user v3 user-name group-name { engineid engineid-string | local }

View

System view

Parameters

v1: Specifies to adopt V1 security scheme.

v2c: Specifies to adopt V2C security scheme.

v3: Specifies to adopt V3 security scheme.

user-name: User name, a string of 1 to 32 characters.

group-name: Name of the group to which the user corresponds. This argument is a string of 1 to 32 characters.

Cipher: Specifies the authentication or encryption password to be in cipher text.

authentication-mode: Requires authentication. If this keyword is not provided, neither authentication nor encryption is performed.

md5: Adopts HMAC-MD5 algorithm.

sha: Adopts HMAC-SHA algorithm.

auth-password: Authentication password, a string of 1 to 64 characters.

privacy: Encrypts packets.

des56: Specifies data encryption standard (DES) for encrypting.

aes128: Specifies advanced encryption standard (AES) for encrypting.

priv-password: Encrypted password, a string of 1 to 64 characters.

acl-number: Basic ACL number, ranging from 2000 to 2999.

local: Specifies local entity users.

engineid-string: Engine ID associated with the user, a string of even number of hexadecimal numbers and comprising of 10 to 64 hexadecimal digits.

Description

Use the snmp-agent usm-user command to add a user to an SNMP group. You can also optionally use this command to apply an ACL for network management users.

Use the undo snmp-agent usm-user command to remove an SNMP user from the corresponding SNMP group and to remove the ACL configuration on the user.

Examples

# Add a user named aaa to an SNMP group named group1, specify to require authentication, specify the authentication protocol as HMAC-MD5-96 and authentication password as 123, and apply ACL 2002 to filter network management users (assuming that ACL 2002 already exists).

<device> system-view

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

[device] snmp-agent usm-user v3 aaa group1 authentication-mode md5 123 acl 2002

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
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
新华三官网