All CWMP parameters are configured on the command line either by a script file or by the manufacturer-specific RPC X_LANCOM_DE_Command.
- Configuration via script
- The CWMP download command <cwmp:download> is used to configure the device by means of a script file (*.lcs). The file type is 3 Vendor Configuration File. The URL is the address of the server where the configuration script is stored.
Note: LANconfig files of the *.lcf format are not supported.
- Configuration by means of manufacturer-specific RPC X_LANCOM_DE_Command
- The X_LANCOM_DE_Command function is defined as follows:
- Request
<cwmp:X_LANCOM_DE_Command> <Command> CLI-Kommando </Command> </cwmp:X_LANCOM_DE_Command>
- Response
<cwmp:X_LANCOM_DE_CommandResponse> <Status>1</Status> <Result>1</Result> </cwmp:X_LANCOM_DE_CommandResponse>
<cwmp:X_LANCOM_DE_Command> <Command>set /Setup/TCP-IP/Network-list/INTRANET {IP-address} 192.168.80.1</Command> </cwmp:X_LANCOM_DE_Command>
Due to the asynchronous execution of the console commands, the X_LANCOM_DE_Command always reports a successful execution of the command, regardless of whether the command was executed correctly or not. A successful execution requires the config status to be read out under .
To check the configuration status, you can read out the following CWMP parameters before or after using the script or X_LANCOM_DE_Command:
- InternetGatewayDevice.DeviceInfo.X_LANCOM_DE_ConfigVersion
- InternetGatewayDevice.DeviceInfo.X_LANCOM_DE_LastScriptComment
- InternetGatewayDevice.DeviceInfo.X_LANCOM_DE_LastScriptErrorLine
- InternetGatewayDevice.DeviceInfo.X_LANCOM_DE_LastScriptSuccessful
Note: The values correspond to the status values under .