48
state (local user view)
Use
state
to set the status of a local user.
Use
undo state
to restore the default.
Syntax
state
{
active
|
block
}
undo state
Default
A local user is in active state.
Views
Local user view
Default command level
2: System level
Parameters
active
: Places the local user in active state to allow the local user to request network services.
block
: Places the local user in blocked state to prevent the local user from requesting network
services.
Usage guidelines
By blocking a user, you disable the user from requesting network services. No other users are
affected.
Examples
# Place local user
user1
to the blocked state.
<Sysname> system-view
[Sysname] local-user user1
[Sysname-luser-user1] state block
Related commands
local-user
user-group
Use
user-group
to create a user group and enter its view.
Use
undo user-group
to remove a user group.
Syntax
user-group
group-name
undo user-group
group-name
Views
System view
Default command level
3: Manage level
Parameters
group-name
: User group name, a case-insensitive string of 1 to 32 characters.