Views
System view
Predefined user roles
network-admin
Parameters
url url-string: Specifies the URL of the destination file, a case-insensitive string of 1 to 255
characters.
Usage guidelines
You can import the user account information back to the device or to other devices that support the
local-user-import class network guest command. Before the import, you can edit the .csv file as
needed. However, you must follow the restrictions in
The device supports TFTP and FTP file transfer modes.
the .csv file.
Table 5 URL formats
Protocol
TFTP
FTP
Examples
# Export local guest account information to the guest.csv file in the
<Sysname> system-view
[Sysname] local-user-export class network guest url ftp://1.1.1.1/user/guest.csv
Related commands
local-user-import class network guest
local-user-import class network guest
Use local-user-import class network guest to import local guest account information from a .csv
file in the specified path to the device to create local guests based on the imported information.
Syntax
local-user-import class network guest url url-string validity-datetime start-date start-time to
expiration-date expiration-time [ auto-create-group | override | start-line line-number ] *
Views
System view
Predefined user roles
network-admin
URL format
tftp://server/path/filename
•
With FTP user name and
password:
ftp://username:password@server/
path/filename
•
Without FTP user name and
password:
ftp://server/path/filename
"local-user-import class network
Table 5
describes the valid URL formats of
Description
Specify a TFTP server by IP address or
hostname. For example, specify the file path
as tftp://1.1.1.1/user/user.csv.
Specify an FTP server by IP address or
hostname.
The device ignores the domain name in the
FTP user name.
For example, specify the file path as
ftp://1:1@1.1.1.1/user/user.csv or
ftp://1.1.1.1/user/user.csv.
76
guest."
ftp://1.1.1.1/user/
path.