import-users

Imports a text file of user records from a TFTP server to the device.
Syntax
import-users tftp ip-address filename name
Parameters
tftp ip-address
Specifies the IP address of the TFTP server from which the file must be imported.
filename name
Specifies the name of the file to import from the TFTP server.
Modes

Local user database configuration mode

Usage Guidelines

Before importing the file, make sure it adheres to the ASCII text format. The text file to be imported must be in the following ASCII format.

[delete-all]
[no] username
username1
password
password1
cr
[no] username
username2
password
password2
cr
...

The delete-all command entry in the text file indicates that the user records in the text file will replace the user records in the specified local user database on the switch. If the delete-all entry is not present, the new user records will be added to the specified local user database on the switch. The delete-all command entry is optional. If present, it must appear on the first line, before the first user record in the text file. If you want to delete a user entry from the specified local user database on the switch, use the no username command entry in the text file. User records that already exist in the local user database will be updated with the information in the text file when it is uploaded to the switch. For username1, username2, and so on, enter up to 31 ASCII characters.

Examples

The following example imports a text file of user records from a TFTP server.

device(config)# local-userdb userdb1
device(config-localuserdb-userdb1)# import-users tftp 192.168.1.1 filename userdb1