Command Manual (For Soliton) – AAA
H3C S3100 Series Ethernet Switches
Chapter 1 AAA Configuration Commands
1-20
View
System view
Parameters
user-name
: Local username, a string of up to 184 characters. This string cannot contain
the following characters: /:*?<>. It can contain no more than one @ character. The pure
username (user ID, that is, the part before @) cannot be longer than 55 characters, and
the domain name (the part behind @) cannot be longer than 128 characters. If the
username includes one or more “~” characters and the last “~” is followed by numerals,
it must be followed by at least five numerals to avoid confusion. This is because any
username longer than 16 characters will appear in the form of “system prompt-the first
15 characters of the username~4-digit index” in the view prompt to avoid word wrap.
all
: Specifies all local users.
service-type
: Specifies the local users of a specified type. You can specify one of the
following user types:
ftp
,
lan-access
(generally, this type of users are Ethernet access
users, for example, 802.1x users),
ssh
,
telnet
, and
terminal
(terminal user who logs
into the switch through the Console port).
Description
Use the
local-user
command to add a local user and enter local user view.
Use the
undo local-user
command to delete one or more local users of the specified
type.
By default, there is no local user in the system.
Related commands:
display local-user
,
service-type
.
Examples
# Add a local user named user1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] local-user user1
New local user added.
[Sysname-luser-user1]
# Add a local user named 01234567891234567 (note that it will appear as
012345678912345~0000 in the view prompt).
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname]local-user 01234567891234567
New local user added.
[Sysname-luser-012345678912345~0000]