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 . - Configuration by means of manufacturer-specific RPC X_LANCOM_DE_CommandResponse
- The function X_LANCOM_DE_CommandResponse is executed synchronous and has a return value. The function is defined as follows:
- Request
<cwmp:X_LANCOM_DE_Command_Response> <Command>ls /Status/Current-Time</Command> </cwmp:X_LANCOM_DE_Command_Response>
- Response
<cwmp:X_LANCOM_DE_Command_ResponseResponse> <Status xsi:type="xsi:unsignedInt">1</Status> <Result xsi:type="xsi:string">Current-Time INFO: 11/30/2017 09:54:49</Result> </cwmp:X_LANCOM_DE_Command_ResponseResponse>
- Parameter: <Status type="xsd:unsignedInt">[1/0]</Status> 1 = no errors, 0 = Error during execution
- Parameter: <Result type="xsd:string">[Output]</Result> Output = Output according to console (max. 2048 characters, more characters are cut off)