- Table of Contents
-
- 13-Network Management and Monitoring Command Reference
- 00-Preface
- 01-System Maintenance and Debugging Commands
- 02-NQA Commands
- 03-NTP Commands
- 04-Clock Monitoring Commands
- 05-IPC Commands
- 06-SNMP Commands
- 07-RMON Commands
- 08-CWMP Commands
- 09-Sampler Commands
- 10-Mirroring Commands
- 11-Protocol Packet Statistics Commands
- 12-sFlow Commands
- 13-Information Center Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
08-CWMP Commands | 104.51 KB |
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 password
undo cwmp acs password
View
CWMP view
Default level
2: System level
Parameters
password: Specifies a password used for authentication when the CPE connects to the ACS. This argument takes a case-sensitive string of 1 to 255 characters.
Description
Use the cwmp acs password command to configure the password used for connecting to the ACS.
Use the undo cwmp acs password command to restore the default.
By default, no password is configured for connecting to the ACS.
Make sure that the ACS username and password are the same as configured on the ACS. If not, the CPE cannot establish a CWMP connection to the ACS.
If you use the command multiple times, the password configured the last time takes effect.
Related commands: cwmp acs username.
Examples
# Configure the password used for connecting 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: Specifies the URL of the ACS, a string of 8 to 255 characters. An URL must be in the format http://host[:port]/path or https://host[:port]/path.
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
# Specify the ACS URL http://www.acs.com:80/acs.
<Sysname> system
[Sysname] cwmp
[Sysname-cwmp] cwmp acs url http://www.acs.com:80/acs
cwmp acs username
Syntax
cwmp acs username username
undo cwmp acs username
View
CWMP view
Default level
2: System level
Parameters
username: Specifies the username used for authentication when the CPE connects to the ACS. This argument takes a case-sensitive string of 1 to 255 characters.
Description
Use the cwmp acs username command to configure the username used for connecting to the ACS.
Use the undo cwmp acs username command to restore the default.
By default, no username is configured for connecting to the ACS.
If you use the command multiple times, the newly configured username overwrites the previous one.
Related commands: cwmp acs password.
Examples
# Configure the username used for connecting 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: Specifies the maximum number of attempts made to retry a connection. The value range is 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, no limit is set on the maximum number of connection attempts. The CPE regularly attempts to connect to the ACS until the connection is set up.
Examples
# Set the maximum number of connection attempts to 5 for the CPE.
<Sysname> system
[Sysname] cwmp
[Sysname-cwmp] cwmp cpe connect retry 5
cwmp cpe connect interface
Syntax
cwmp cpe connect interface interface-type interface-number
undo cwmp cpe connect interface
View
CWMP view
Default level
2: System level
Parameters
interface-type interface-number: Specifies the type and number of the interface that connects the CPE to the ACS.
Description
Use the cwmp cpe connect interface command to set the interface that connects the CPE to the ACS.
Use the undo cwmp cpe connect interface command to restore the default.
By default, the CPE automatically choose one interface for connecting to the ACS.
The CWMP connection interface is the interface that the CPE uses to communicate with the ACS. The CPE sends the IP address of this interface in the Inform messages and the ACS replies to this IP address for setting up a CWMP connection.
If the interface that connects the CPE to the ACS is the only Layer 3 interface that has an IP address on the switch, you do not need to specify the CWMP connection interface. If multiple Layer 3 interfaces are configured, specify the CWMP connection interface to make sure that the IP address of the interface connects to the ACS is sent to the ACS for setting up CWMP connection.
Examples
# Specify GigabitEthernet 3/0/1 as the interface connecting the CPE to the ACS.
<Sysname> system
[Sysname] cwmp
[Sysname-cwmp] cwmp cpe connect interface GigabitEthernet3/0/1
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: Sets the Inform message sending interval, in the range of 10 to 86400 seconds.
Description
Use the cwmp cpe inform interval command to configure the interval at which the CPE sends Inform messages.
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 interval enable 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 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: Specifies the password used for authentication when the ACS connects to the CPE. This argument takes 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 connecting to the CPE.
Make sure that the CPE username and password are the same as configured on the ACS. If not, the ACS cannot establish a CWMP connection to the CPE.
If you use the command multiple times, the password configured the last time takes effect.
Related commands: cwmp cpe username.
Examples
# Configure the password used for connecting 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: Specifies the username used for authentication when the ACS connects to the CPE. This argument takes 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 configure the cwmp cpe username command multiple times, the last configuration takes effect.
Related commands: cwmp cpe password.
Examples
# Configure the username used for connecting 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: Sets the CPE close-wait timer, in the range of 30 to 1800 seconds.
Description
Use the cwmp cpe wait timeout command to configure the close-wait timer for the CPE to close the idle connection to ACS.
Use the undo cwmp cpe wait timeout command to restore the default.
By default, the CPE close-wait timer is 30 seconds.
The close-wait timer specifies how long the connection to the ACS can be idle before it is shut down. If no data has been transmitted over the connection before the timer expires, the CPE disconnects the connection to the ACS.
Examples
# Set the CPE close-wait timer to 60 seconds.
<Sysname> system
[Sysname] cwmp
[Sysname-cwmp] cwmp cpe wait timeout 60
cwmp device-type
Syntax
cwmp device-type { device | gateway }
undo cwmp device-type
View
CWMP view
Default level
2: System level
Parameters
device: Sets the device to work in device mode. Use this option if no lower-level CPEs are attached to the device.
gateway: Sets the device to work in gateway mode. If the device is the egress to the WAN and has CPEs attached to it, use this option to enable the ACS to manage the device and all the attached CPEs.
Description
Use the cwmp device-type command to configure the CPE working mode of the device.
Use the undo cwmp device-type command to restore the default.
By default, the device works in gateway mode.
Disable CWMP before you change the CPE working mode.
Examples
# Configure the device to work in gateway mode.
<Sysname> system
[Sysname] cwmp
[Sysname-cwmp] undo cwmp enable
[Sysname-cwmp] cwmp device-type gateway
[Sysname-cwmp] cwmp enable
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 the CPE or ACS is performing an uploading or download operation.
Examples
# Disable CWMP when no upload or download operation is being performed.
<Sysname> system
[Sysname] cwmp
[Sysname-cwmp] undo cwmp enable
display cwmp configuration
Syntax
display cwmp configuration [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
2: System level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display cwmp configuration command to display the current CWMP configuration.
Examples
# Display CWMP configuration after CWMP is enabled.
<Sysname> display cwmp configuration
TR-069 is enabled.
ACS URL :http://www.acs.com:80/acs
ACS username :newname
ACS password :newpsw3
Inform enable status :disabled
Inform interval :600s
Inform time :none
Wait timeout :30s
Reconnection times :Unlimited
Source IP interface :none
Table 1 Output description
Field |
Description |
TR-069 is |
The status of CWMP (TR-069), 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. |
Source IP interface |
Interface connecting to the ACS on the CPE. You can set this interface with the cwmp cpe connect interface command. |
display cwmp status
Syntax
display cwmp status [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
2: System level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display cwmp status command to display the current status of CWMP.
Examples
# Display CWMP status after CWMP is disabled.
<Sysname> display cwmp status
CWMP is disabled.
# Display CWMP status after CWMP is enabled.
<Sysname> display cwmp status
TR-069 is enabled.
ACS URL :http://www.acs.com:80/acs
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 2 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: · user—The ACS URL is configured through CLI. · config file—The ACS URL is configured through ACS. · DHCP—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: · connected—The connection is established. · disconnected—The connection is not established. · waiting response—The device is waiting for a response. |
Data transfer status |
Data transfer status: · uploading—The device is uploading data. · downloading—The device is downloading data. · none—The device 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 device will initiate a connection. If no interval or time is configured for Inform message sending, it is displayed as null. |
ssl client-policy
Syntax
ssl client-policy policy-name
undo ssl client-policy
View
CWMP view
Default level
2: System level
Parameters
policy-name: Specifies an SSL client policy name, a case-insensitive string of 1 to 16 characters. For information about configuring SSL client policies, see Security Configuration Guide.
Description
Use the ssl client-policy command to specify an SSL client policy for the CPE to authenticate the ACS for setting up an HTTPS connection.
Use the undo ssl client-policy command to remove the SSL client policy from the CWMP configuration.
By default, no SSL client policy is specified.
CWMP uses HTTP or HTTPS for data transmission. If the ACS uses HTTPS for secure access, its URL begins with https://. You must configure an SSL client policy for the CPE to authenticate the ACS for establishing an HTTPS connection.
Examples
# Specify the SSL client policy test for ACS authentication.
<Sysname> system
[Sysname] cwmp
[Sysname-cwmp] ssl client-policy test