Configuring autoconnect parameters

You can configure the CPE to connect to the ACS periodically, or at a schedule time for configuration or software update. To protect system resources, limit the number of retries that the CPE can make to connect to the ACS.

Configuring the periodic Inform feature

To connect to the ACS periodically for CPE information update:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter CWMP view.

cwmp

N/A

3. Enable the periodic Inform feature.

cwmp cpe inform interval enable

By default, this function is disabled.

4. (Optional.) Set the Inform interval.

cwmp cpe inform interval interval

By default, the CPE sends an Inform message to start a session every 600 seconds.

Scheduling a connection initiation

To connect to the ACS for configuration or software update at a scheduled time:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter CWMP view.

cwmp

N/A

3. Schedule a connection initiation.

cwmp cpe inform time time

By default, no connection initiation has been scheduled.

Setting the maximum number of connection retries

The CPE retries a connection automatically when one of the following events occurs:

The CPE considers a connection attempt as having failed when the close-wait timer expires. This timer starts when the CPE sends an Inform request. If the CPE fails to receive a response before the timer expires, the CPE resends the Inform request.

To set the maximum number of connection retries that the CPE can make:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter CWMP view.

cwmp

N/A

3. Set the maximum number of connection retries.

cwmp cpe connect retry retries

By default, the CPE retries a failed connection until the connection is established.

Setting the close-wait timer

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.

To set the close-wait timer for the CPE:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter CWMP view.

cwmp

N/A

3. Set the close-wait timer.

cwmp cpe wait timeout seconds

By default, the close-wait timer is 30 seconds.