- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
04-CWMP Commands | 56.85 KB |
Table of Contents
1 CWMP (TR-069) Configuration Commands
CWMP (TR-069) Configuration Commands
cwmp cpe inform interval enable
l Support of the H3C WA series WLAN access points (APs) for commands may vary by AP model. For more information, see Feature Matrix.
l The interface types and the number of interfaces vary by AP model.
l The models listed in this document are not applicable to all regions. Please consult your local sales office for the models applicable to your region.
1 CWMP (TR-069) Configuration Commands
CWMP (TR-069) Configuration Commands
cwmp
Syntax
cwmp
View
System view
Default Level
2: System level
Parameters
None
Description
Use the cwmp command to enter CWMP view.
Examples
# Enter CWMP view.
<Sysname> system-view
[Sysname] cwmp
cwmp acs password
Syntax
cwmp acs password passowrd
undo cwmp acs password
View
CWMP view
Default Level
2: System level
Parameters
password: Password used for authentication when the CPE connects to the ACS, a case-sensitive string of 1 to 255 characters.
Description
Use the cwmp acs password command to configure the password used for connection to the ACS.
Use the undo cwmp acs password command to restore the default.
By default, no password is configured for connection to the ACS.
If you use the command multiple times, the newly configured password overwrites the previous one.
The execution of the undo cwmp acs username command equals the execution of both undo cwmp acs username and undo cwmp acs password commands, which means the system will delete both the CPE username and the password at the same time.
Related commands: cwmp acs username.
Examples
# Configure the password used for connection to the ACS as newpsw.
<Sysname> system
[Sysname] cwmp
[Sysname-cwmp] cwmp acs password newpsw
cwmp acs url
Syntax
cwmp acs url url
undo cwmp acs url
View
CWMP view
Default Level
2: System level
Parameters
url: URL of the ACS, a string of 8 to 255 characters. An URL must be in the format of http://host[:port]/path, where host cannot exceed 20 characters.
Description
Use the cwmp acs url command to configure the ACS URL.
Use the undo cwmp acs url command to restore the default.
By default, no ACS URL is configured.
If you use the command for multiple times, the newly configured URL overwrites the previous one.
Examples
# Configure the ACS URL as http://www.acs.com:80/acs1.
<Sysname> system
[Sysname] cwmp
[Sysname-cwmp] cwmp acs url http://www.acs.com:80/acs1
cwmp acs username
Syntax
cwmp acs username username
undo cwmp acs username
View
CWMP view
Default Level
2: System level
Parameters
username: Username used for authentication when the CPE connects to the ACS, a case-sensitive string of 1 to 255 characters.
Description
Use the cwmp acs username command to configure the username used for connection to the ACS.
Use the undo cwmp acs username command to restore the default.
By default, no username is configured for connection to the ACS.
If you use the command multiple times, the newly configured username overwrites the previous one.
The execution of the undo cwmp acs username command equals the execution of both undo cwmp acs username and undo cwmp acs password commands, which means the system will delete both the CPE username and the password at the same time.
Related commands: cwmp acs password.
Examples
# Configure the username used for connection to the ACS as newname.
<Sysname> system
[Sysname] cwmp
[Sysname-cwmp] cwmp acs username newname
cwmp cpe connect retry
Syntax
cwmp cpe connect retry times
undo cwmp cpe connect retry
View
CWMP view
Default Level
2: System level
Parameters
times: Number of attempts that will be made to retry a connection, in the range of 0 to 100. 0 indicates that no attempt will be made to retry a connection.
Description
Use the cwmp cpe connect retry command to configure the maximum number of attempts the CPE can make to retry a connection.
Use the undo cwmp cpe connect retry command to restore the default.
By default, the retry times is infinity, that is, a CPE sends connect requests to the ACS at a specified interval all along.
Examples
# Configure that the CPE can retry a connection for up to 5 times.
<Sysname> system
[Sysname] cwmp
[Sysname-cwmp] cwmp cpe connect retry 5
cwmp cpe inform interval
Syntax
cwmp cpe inform interval seconds
undo cwmp cpe inform interval
View
CWMP view
Default Level
2: System level
Parameters
seconds: Interval between sending the Inform messages, in the range of 60 to 65535, in seconds.
Description
Use the cwmp cpe inform interval command to configure the interval at which the CPE sends an Inform message.
Use the undo cwmp cpe inform interval command to restore the default.
By default, the Inform message sending interval is 600 seconds.
Examples
# Configure the CPE to send an Inform message every 3600 seconds.
<Sysname> system
[Sysname] cwmp
[Sysname-cwmp] cwmp cpe inform interval 3600
cwmp cpe inform interval enable
Syntax
cwmp cpe inform interval enable
undo cwmp cpe inform interval enable
View
CWMP view
Default Level
2: System level
Parameters
None
Description
Use the cwmp cpe inform interval enable command to enable periodical sending of Inform messages.
Use the undo cwmp cpe inform command to restore the default.
By default, periodical sending of Inform messages is disabled.
Examples
# Enable periodical sending of Inform messages.
<Sysname> system
[Sysname] cwmp
[Sysname-cwmp] cwmp cpe inform interval enable
cwmp cpe inform time
Syntax
cwmp cpe inform time time
undo cwmp cpe inform time
View
CWMP view
Default Level
2: System level
Parameters
time: Time at which the CPE sends an Inform message. The specified time must be in the format of yyyy-mm-ddThh:mm:ss, and in the range of 1970-01-01T00:00:00 to 2105-12-31T23:59:59. The specified time must be greater than the current system time.
Description
Use the cwmp cpe inform time command to configure the CPE to send an Inform message at a specified time.
Use the undo cwmp cpe inform time command to restore the default.
By default, the time is null, that is, the CPE is not configured to send an Inform message at a specific time.
Examples
# Configure the CPE to send an Inform message at 2007-12-01T20:00:00.
<Sysname> system
[Sysname] cwmp
[Sysname-cwmp] cwmp cpe inform time 2007-12-01T20:00:00
cwmp cpe password
Syntax
cwmp cpe password password
undo cwmp cpe password
View
CWMP view
Default Level
2: System level
Parameters
password: Password used for authentication when the ACS connects to the CPE, a case-sensitive string of 1 to 255 characters.
Description
Use the cwmp cpe password command to configure the password used for authentication when the ACS connects to the CPE.
Use the undo cwmp cpe password command to restore the default.
By default, no password is configured for connection to the CPE.
If you use the command for multiple times, the newly configured password overwrites the previous one.
The execution of the undo cwmp cpe username command equals the execution of both undo cwmp cpe username and undo cwmp cpe password commands, which means the system will delete both the CPE username and the password at the same time.
Related commands: cwmp cpe username.
Examples
# Configure the password used for connection to the CPE as newpsw.
<Sysname> system
[Sysname] cwmp
[Sysname-cwmp] cwmp cpe password newpsw
cwmp cpe username
Syntax
cwmp cpe username username
undo cwmp cpe username
View
CWMP view
Default Level
2: System level
Parameters
username: Username used for authentication when the ACS connects to the CPE, a case-sensitive string of 1 to 255 characters.
Description
Use the cwmp cpe username command to configure the username used for authentication when the ACS connects to the CPE.
Use the undo cwmp cpe username command to restore the default.
By default, no username is configured for connection to the CPE.
If you use the command for multiple times, the newly configured username overwrites the previous ones.
The execution of the undo cwmp cpe username command equals the execution of both undo cwmp cpe username and undo cwmp cpe password commands, which means the system will delete both the CPE username and the password at the same time.
Related commands: cwmp cpe password.
Examples
# Configure the username used for connection to the CPE as newname.
<Sysname> system
[Sysname] cwmp
[Sysname-cwmp] cwmp cpe username newname
cwmp cpe wait timeout
Syntax
cwmp cpe wait timeout seconds
undo cwmp cpe wait timeout
View
CWMP view
Default Level
2: System level
Parameters
seconds: Timeout value of the CPE close-wait timer, in the range of 30 to 1800, in seconds.
Description
Use the cwmp cpe wait timeout command to configure the close-wait timer of the CPE.
Use the undo cwmp cpe wait timeout command to restore the default.
By default, the timeout of the CPE close-wait timer is 30 seconds.
Examples
# Configure the CPE close-wait timeout as 60 seconds.
<Sysname> system
[Sysname] cwmp
[Sysname-cwmp] cwmp cpe wait timeout 60
cwmp enable
Syntax
cwmp enable
undo cwmp enable
View
CWMP view
Default Level
2: System level
Parameters
None
Description
Use the cwmp enable command to enable CWMP.
Use the undo cwmp enable command to disable CWMP.
By default, CWMP is enabled.
CWMP cannot be disabled when it is performing upload or download operations.
Examples
# Disable CWMP when there is no upload or download operations.
<Sysname> system
[Sysname] cwmp
[Sysname-cwmp] undo cwmp enable
display cwmp configuration
Syntax
display cwmp configuration
View
Any view
Default Level
2: System level
Parameters
None
Description
Use the display cwmp configuration command to display the current configuration information of CWMP.
Examples
# CWMP is enabled. Display the configuration information of CWMP.
<Sysname> display cwmp configuration
CWMP is enabled.
ACS URL :http://www.acs.com:80/acs1
ACS username :newname
ACS password :newpsw3
Inform enable status :disabled
Inform interval :6000s
Inform time :2007-12-01T09:10:00
Wait timeout :30s
Reconnection times : Unlimited
Table 1-1 display cwmp configuration command output description
Field |
Description |
CWMP is |
The status of CWMP, including enabled and disabled. |
ACS URL |
URL of the ACS. It is displayed as null if not configured. |
ACS username |
Authentication username for connection to the ACS. It is displayed as null if not configured. |
ACS password |
Authentication password for connection to the ACS. It is displayed as null if not configured. |
Inform enable status |
Enabled/disabled status of periodical sending of Inform messages |
Inform interval |
Interval between sending Inform messages |
Inform time |
Date and time at which an Inform message will be sent. It is displayed as null if not configured. |
Wait timeout |
Timeout value for the CPE to wait for a response |
Reconnection times |
Number of attempts the CPE can make to retry a connection |
display cwmp status
Syntax
display cwmp status
View
Any view
Default Level
2: System level
Parameters
None
Description
Use the display cwmp status command to display the current status information of CWMP.
Examples
# CWMP is disabled. Display the status information of CWMP.
<Sysname> display cwmp status
CWMP is disabled.
# CWMP is enabled. Display the status information of CWMP.
<Sysname> display cwmp status
CWMP is enabled.
ACS URL :http://www.acs.com:80/acs1
ACS information is set by :user
ACS username :newname
ACS password :newpsw3
Connection status :disconnected
Data transfer status :none
Time of last successful connection :none
Interval upon to next connection :1096832s
Table 1-2 display cwmp status command output description
Field |
Description |
ACS URL |
URL of the ACS. It is displayed as null if not configured. |
ACS information is set by |
The mode through which CWMP gets the ACS URL. It is displayed as null if ACS URL is not configured. l user: Indicates that the ACS URL is configured through CLI l config file: Indicates that the ACS URL is configured through ACS l DHCP: Indicates that the ACS URL is configured through DHCP |
ACS username |
Authentication username for connection to the ACS. It is displayed as null if not configured. |
ACS password |
Authentication password for connection to the ACS. It is displayed as null if not configured. |
Connection status |
Connection status, includes: l connected: Indicates that the connection is established. l disconnected: Indicates that the connection is not established. l waiting response: Indicates that the AP is waiting for a response. |
Data transfer status |
Data transfer status, includes: l uploading: The AP is uploading data. l downloading: The AP is downloading data. l none: The AP is not transferring data. |
Time of last successful connection |
Time at which the last successful connection was established. If there is no successful connection, it is displayed as none. |
Interval upon to next connection |
Period of time after which the AP will initiate a connection. If no interval or time is configured for Inform message sending, it is displayed as null. |