71
Related commands
local-guest email format
local-guest email sender
local-guest manager-email
local-guest send-email
local-guest generate
Use local-guest generate to create local guests in batch.
Syntax
local-guest generate username-prefix name-prefix [ password-prefix password-prefix ] suffix
suffix-number [ group group-name ] count user-count validity-datetime start-date start-time to
expiration-date expiration-time
Views
System view
Predefined user roles
network-admin
Parameters
username-prefix name-prefix: Specifies the name prefix. The name-prefix argument is a
case-sensitive string of 1 to 45 characters. The prefix cannot contain any of the following characters:
forward slash (/), backslash (\), vertical bar (|), colon (:), asterisk (*), question mark (?), left angle
bracket (<), right angle bracket (>), and at sign (@).
password-prefix password-prefix: Specifies a prefix for the plaintext password. The
password-prefix argument is a case-sensitive string of 1 to 53 characters. If you do not specify a
password prefix, the device generates passwords randomly for the local guests.
suffix suffix-number: Specifies the start suffix number of the username and password. The
suffix-number argument is a numeric string of 1 to 10 digits.
group group-name: Specifies a user group by the name. The group-name argument is a
case-sensitive string of 1 to 32 characters. If you do not specify a user group, the guests are
assigned to the system-defined user group system.
count user-count: Specifies the number of local guests to be created. The value range for the
user-count argument is 1 to 256.
validity-datetime: Specifies the validity period of the local guests. The expiration date and time must
be later than the start date and time.
start-date: Specifies the start date of the validity period, in the format of MM/DD/YYYY or
YYYY/MM/DD. The value range for the MM argument is 1 to 12. The value range for the DD
argument varies with the specified month. The value range for the YYYY argument is 2000 to 2035.
start-time: Specifies the start time of the validity period, in the format of hh:mm:ss. The value range
for the hh argument is 0 to 23. The value range for the mm and ss arguments is 0 to 59. The mm and
ss arguments are optional. For example, enter 1 to indicate 1:00:00. A value of 0 indicates 00:00:00.
to: Specifies the end date and time of the validity period.
expiration-date: Specifies the expiration date in the format of MM/DD/YYYY or YYYY/MM/DD. The
value range for the MM argument is 1 to 12. The value range for the DD argument varies with the
specified month. The value range for the YYYY argument is 2000 to 2035.