281
[Sysname] cwmp
[Sysname-cwmp] cwmp cpe stun enable
cwmp cpe username
Use cwmp cpe username to configure the username for the CPE to authenticate the ACS.
Use undo cwmp cpe username to restore the default.
Syntax
cwmp cpe username username
undo cwmp cpe username
Default
No username is configured for authenticating the ACS.
Views
CWMP view
Predefined user roles
network-admin
Parameters
username: Specifies a username, a case-sensitive string of 1 to 255 characters.
Usage guidelines
You can configure only one username for the ACS to authenticate to the CPE when it initiates a
connection. If you use the command multiple times, the final username configuration takes effect.
For a successful connection, make sure the ACS has the same username setting as the CPE. If a
password is required, you must also make sure the ACS has the same password setting as the CPE.
The ACS must provide the correct username when it requests the CPE to initiate a CWMP session. If the
username is incorrect, the CPE denies the connection request from the ACS.
You do not need to configure this command if you want to disable ACS authentication or authenticate
the ACS only based on its username.
Examples
# Configure the username used for authenticating the ACS.
<Sysname> system-view
[Sysname] cwmp
[Sysname-cwmp] cwmp cpe username newname
Related commands
cwmp cpe password
cwmp cpe wait timeout
Use cwmp cpe wait timeout to configure the close-wait timer for the CPE to close an idle connection.
Use undo cwmp cpe wait timeout to restore the default.