337
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.
Syntax
cwmp cpe wait timeout seconds
undo cwmp cpe wait timeout
Default
The close-wait timer is 30 seconds.
Views
CWMP view
Predefined user roles
network-admin
Parameters
seconds
: Sets the close-wait timer, in the range of 30 to 1800 seconds.
Usage guidelines
The close-wait timer specifies the amount of time the connection to the ACS can be idle before it is
terminated. The CPE terminates the connection to the ACS if no traffic is transmitted before the timer
expires.
The timer also specifies the maximum amount of time the CPE waits for the response to a session
request. The CPE determines that its session attempt has failed when the timer expires. By default,
the CPE retries a failed session until the session is established with the ACS. To limit the number of
retries, use the
cwmp cpe connect retry
command.
Examples
# Set the close-wait time to 60 seconds.
<Sysname> system-view
[Sysname] cwmp
[Sysname-cwmp] cwmp cpe wait timeout 60
cwmp enable
Use
cwmp enable
to enable CWMP.
Use
undo cwmp enable
to disable CWMP.