Expiration-Date; Group - H3C S5120-SI Series Command Reference Manual

Hide thumbs Also See for S5120-SI Series:
Table of Contents

Advertisement

[Sysname] domain default enable test

expiration-date

Syntax
expiration-date time
undo expiration-date
View
Local user view
Default Level
3: Manage level
Parameters
time:
Expiration
HH:MM:SS-YYYY/MM/DD. HH:MM:SS indicates the time, where HH ranges from 0 to 23, MM and SS
range from 0 to 59. YYYY/MM/DD indicates the date, where YYYY ranges from 2000 to 2035, MM
ranges from 1 to 12, and the range of DD depends on the month. Except for the zeros in 00:00:00,
leading zeros can be omitted. For example, 2:2:0-2008/2/2 equals to 02:02:00-2008/02/02.
Description
Use the expiration-date command to configure the expiration time of a local user.
Use the undo expiration-date command to remove the configuration.
By default, a local user has no expiration time and no time validity checking is performed.
When some users need to access the network temporarily, you can create a guest account and specify
an expiration time for the account. When a user uses the guest account for local authentication and
passes the authentication, the access device checks whether the current system time is within the
expiration time. If so, it permits the user to access the network. Otherwise, it denies the access request
of the user.
Note that if you change the system time manually or the system time is changed in any other way, the
access device uses the new system time for time validity checking.
Examples
# Configure the expiration time of user abc to be 12:10:20 on May 31, 2008.
<Sysname> system-view
[Sysname] local-user abc
[Sysname-luser-abc] expiration-date 12:10:20-2008/05/31

group

Syntax
group group-name
undo group
time
of
the
local
user,
in
the
format
1-23
HH:MM:SS-MM/DD/YYYY
or

Advertisement

Table of Contents
loading

Table of Contents