Can't change parameters via API

Hello everybody.
I’m trying to change the Wifi SSID of a ZTE router via API, but I’m not successful. This is the request. I get an answer (202 Accepted), but nothing happens.

curl -i 'http://192.168.20.5:7557/devices/C0B101-ZXHN%20H199A-ZTEYH86LCN02042/tasks?timeout=120&connection_request' \
> -X POST \
> --data '{"name":"setParameterValues", "parameterValues": [["InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID", "GenieACS", "xsd:string"]]}'
HTTP/1.1 202 Accepted
GenieACS-Version: 1.2.3+20201027064135
Content-Type: application/json
Date: Mon, 20 Sep 2021 17:19:46 GMT
Connection: keep-alive
Keep-Alive: timeout=5
Transfer-Encoding: chunked

{"name":"setParameterValues","parameterValues":[["InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID","GenieACS","xsd:string"]],"device":"C0B101-ZXHN H199A-ZTEYH86LCN02042

202 means GenieACS has accepted the request, but was unable to connect with the CPE. Verify if you have connection request authentication enabled for the CPE, and if so have the auth params configured in GenieACS.

Tnx for the response akcoder. Through the UI I can edit the parameters normally. Authentication is disabled as follows in the image. In case of enabled authentication, where should I pass the user and password parameters of the request?

https://docs.genieacs.com/en/latest/cpe-authentication.html

I checked the documentation before doing the setup. The setup I did does not have authentication in the sense ACS → CPE. Another thing that messed my head up is that I can make changes via the GenieACS UI, but not via the API. I also checked the LOG files, and there is nothing wrong. Here is the file.

021-09-20T23:41:43.043Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c059636ed0000" acsRequestName="GetParameterNames"
2021-09-20T23:41:43.054Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c059636ed0001" acsRequestName="GetParameterNames"
2021-09-20T23:41:43.066Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c059636ed0002" acsRequestName="GetParameterNames"
2021-09-20T23:41:43.072Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c059636ed0003" acsRequestName="GetParameterNames"
2021-09-20T23:41:43.085Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c059636ed0004" acsRequestName="GetParameterNames"
2021-09-20T23:41:43.098Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c059636ed0005" acsRequestName="GetParameterNames"
2021-09-20T23:41:43.107Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c059636ed0006" acsRequestName="GetParameterNames"
2021-09-20T23:41:43.118Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c059636ed0007" acsRequestName="GetParameterNames"
2021-09-20T23:41:43.128Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c059636ed0008" acsRequestName="GetParameterNames"
2021-09-20T23:41:43.138Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c059636ed0009" acsRequestName="GetParameterNames"
2021-09-20T23:41:43.148Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c059636ed000a" acsRequestName="GetParameterNames"
2021-09-20T23:41:43.157Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c059636ed000b" acsRequestName="GetParameterNames"
2021-09-20T23:41:43.168Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c059636ed000c" acsRequestName="GetParameterNames"
2021-09-20T23:41:43.174Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c059636ed000d" acsRequestName="GetParameterNames"
2021-09-20T23:41:43.179Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c059636ed000e" acsRequestName="GetParameterValues"
2021-09-20T23:41:43.211Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c059636ed000f" acsRequestName="GetParameterNames"
2021-09-20T23:41:43.219Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c059636ed0010" acsRequestName="GetParameterNames"
2021-09-20T23:41:43.228Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c059636ed0011" acsRequestName="GetParameterValues"
2021-09-20T23:46:43.147Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1044" informEvent="2 PERIODIC" informRetryCount=0
2021-09-20T23:51:43.269Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1045" informEvent="2 PERIODIC" informRetryCount=0
2021-09-20T23:56:43.374Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1046" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T00:01:43.490Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1047" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T00:06:43.600Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1048" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T00:11:43.713Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1049" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T00:16:42.815Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1050" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T00:21:42.942Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1051" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T00:26:43.060Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1052" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T00:31:43.143Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1053" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T00:36:43.273Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1054" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T00:41:43.370Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1055" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T00:41:43.377Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c05cd26c00000" acsRequestName="GetParameterNames"
2021-09-21T00:41:43.388Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c05cd26c00001" acsRequestName="GetParameterNames"
2021-09-21T00:41:43.400Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c05cd26c00002" acsRequestName="GetParameterNames"
2021-09-21T00:41:43.404Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c05cd26c00003" acsRequestName="GetParameterNames"
2021-09-21T00:41:43.418Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c05cd26c00004" acsRequestName="GetParameterNames"
2021-09-21T00:41:43.428Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c05cd26c00005" acsRequestName="GetParameterNames"
2021-09-21T00:41:43.437Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c05cd26c00006" acsRequestName="GetParameterNames"
2021-09-21T00:41:43.447Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c05cd26c00007" acsRequestName="GetParameterNames"
2021-09-21T00:41:43.457Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c05cd26c00008" acsRequestName="GetParameterNames"
2021-09-21T00:41:43.467Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c05cd26c00009" acsRequestName="GetParameterNames"
2021-09-21T00:41:43.477Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c05cd26c0000a" acsRequestName="GetParameterNames"
2021-09-21T00:41:43.486Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c05cd26c0000b" acsRequestName="GetParameterNames"
2021-09-21T00:41:43.497Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c05cd26c0000c" acsRequestName="GetParameterNames"
2021-09-21T00:41:43.502Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c05cd26c0000d" acsRequestName="GetParameterNames"
2021-09-21T00:41:43.508Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c05cd26c0000e" acsRequestName="GetParameterValues"
2021-09-21T00:46:43.486Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1056" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T00:51:43.484Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1057" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T00:56:43.621Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1058" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T01:01:43.735Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1059" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T01:06:42.824Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1060" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T01:11:42.962Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1061" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T01:16:43.072Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1062" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T01:21:43.111Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1063" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T01:26:43.218Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1064" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T01:31:43.339Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1065" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T01:36:43.399Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1066" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T01:41:43.511Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1067" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T01:41:43.519Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c060415ce0000" acsRequestName="GetParameterNames"
2021-09-21T01:41:43.531Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c060415ce0001" acsRequestName="GetParameterNames"
2021-09-21T01:41:43.544Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c060415ce0002" acsRequestName="GetParameterNames"
2021-09-21T01:41:43.552Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c060415ce0003" acsRequestName="GetParameterNames"
2021-09-21T01:41:43.562Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c060415ce0004" acsRequestName="GetParameterNames"
2021-09-21T01:41:43.572Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c060415ce0005" acsRequestName="GetParameterNames"
2021-09-21T01:41:43.582Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c060415ce0006" acsRequestName="GetParameterNames"
2021-09-21T01:41:43.592Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c060415ce0007" acsRequestName="GetParameterNames"
2021-09-21T01:41:43.602Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c060415ce0008" acsRequestName="GetParameterNames"
2021-09-21T01:41:43.611Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c060415ce0009" acsRequestName="GetParameterNames"
2021-09-21T01:41:43.621Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c060415ce000a" acsRequestName="GetParameterNames"
2021-09-21T01:41:43.630Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c060415ce000b" acsRequestName="GetParameterNames"
2021-09-21T01:41:43.640Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c060415ce000c" acsRequestName="GetParameterNames"
2021-09-21T01:41:43.645Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c060415ce000d" acsRequestName="GetParameterNames"
2021-09-21T01:41:43.651Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c060415ce000e" acsRequestName="GetParameterValues"
2021-09-21T01:46:43.627Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1068" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T01:51:43.737Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1069" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T01:56:42.832Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1070" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T02:01:42.969Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1071" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T02:06:43.079Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1072" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T02:11:43.190Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1073" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T02:16:43.307Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1074" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T02:21:43.418Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1075" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T02:26:43.532Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1076" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T02:31:43.647Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1077" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T02:36:43.758Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1078" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T02:41:42.857Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1079" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T02:41:42.869Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c063b01b60000" acsRequestName="GetParameterNames"
2021-09-21T02:41:42.881Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c063b01b60001" acsRequestName="GetParameterNames"
2021-09-21T02:41:42.894Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c063b01b60002" acsRequestName="GetParameterNames"
2021-09-21T02:41:42.900Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c063b01b60003" acsRequestName="GetParameterNames"
2021-09-21T02:41:42.911Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c063b01b60004" acsRequestName="GetParameterNames"
2021-09-21T02:41:42.921Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c063b01b60005" acsRequestName="GetParameterNames"
2021-09-21T02:41:42.930Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c063b01b60006" acsRequestName="GetParameterNames"
2021-09-21T02:41:42.940Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c063b01b60007" acsRequestName="GetParameterNames"
2021-09-21T02:41:42.951Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c063b01b60008" acsRequestName="GetParameterNames"
2021-09-21T02:41:42.964Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c063b01b60009" acsRequestName="GetParameterNames"
2021-09-21T02:41:42.974Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c063b01b6000a" acsRequestName="GetParameterNames"
2021-09-21T02:41:42.984Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c063b01b6000b" acsRequestName="GetParameterNames"
2021-09-21T02:41:42.994Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c063b01b6000c" acsRequestName="GetParameterNames"
2021-09-21T02:41:43.000Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c063b01b6000d" acsRequestName="GetParameterNames"
2021-09-21T02:41:43.006Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: ACS request; acsRequestId="17c063b01b6000e" acsRequestName="GetParameterValues"
2021-09-21T02:46:42.988Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1080" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T02:51:43.102Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1081" informEvent="2 PERIODIC" informRetryCount=0
2021-09-21T02:56:43.213Z [INFO]  C0B101-ZXHN%20H199A-ZTEYH86LCN02042: Inform; cpeRequestId="1082" informEvent="2 PERIODIC" informRetryCount=0

This is my request, pls tell me if I am doing anything wrong…
URL:

http://192.168.20.5:7557/devices/C0B101-ZXHN%20H199A-ZTEYH86LCN02042/tasks

Params:

{"name":"setParameterValues", "parameterValues": [["InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID", "LED_INTERNET"]]}

Response

Enable device debugging in GenieACS. As I haven’t upgraded to v1.2 yet, I’m not sure how you do that in v1.2. I do know its been answered on the forum though.

I enabled debugging. I can’t find the request I sent from my PC to GenieACS. I also suspected that CGNAT could interfere with GenieACS communication with the CPE, but I can ping the CPE through the private ip. I can also edit the parameters via the UI, which would make no sense to work if CGNAT caused problems. Here is the debug file.

genieacs@genieacs:/var/log/genieacs$ cat genieacs-debug.yaml
---
event: incoming HTTP request
timestamp: 2021-09-22T01:21:44.110Z
remoteAddress: X.X.X.X (PUBLIC IP)
deviceId: C0B101-ZXHN%20H199A-ZTEYH86LCN02042
connection: 2021-09-22T01:21:44.110Z
localPort: 7547
method: POST
url: /
headers:
  host: 192.168.20.5:7547
  content-type: text/xml; charset="utf-8"
  keep-alive: ""
  connection: TE, Keep-Alive
  te: trailers
  content-length: "2387"
body: "<SOAP-ENV:Envelope
  xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"
  xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\"
  xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
  xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
  xmlns:cwmp=\"urn:dslforum-org:cwmp-1-0\"><SOAP-ENV:Header><cwmp:ID
  SOAP-ENV:mustUnderstand=\"1\">1356</cwmp:ID>\r

  </SOAP-ENV:Header>\r

  <SOAP-ENV:Body><cwmp:Inform><DeviceId><Manufacturer>ZTE</Manufacturer>\r

  <OUI>C0B101</OUI>\r

  <ProductClass>ZXHN H199A</ProductClass>\r

  <SerialNumber>ZTEYH86LCN02042</SerialNumber>\r

  </DeviceId>\r

  <Event SOAP-ENC:arrayType=\"cwmp:EventStruct[1]\"><EventStruct><EventCode>2
  PERIODIC</EventCode>\r

  <CommandKey></CommandKey>\r

  </EventStruct>\r

  </Event>\r

  <MaxEnvelopes>1</MaxEnvelopes>\r

  <CurrentTime>1970-01-09T03:30:11-00:00</CurrentTime>\r

  <RetryCount>0</RetryCount>\r

  <ParameterList
  SOAP-ENC:arrayType=\"cwmp:ParameterValueStruct[8]\"><ParameterValueStruct><Na\
  me>InternetGatewayDevice.DeviceSummary</Name>\r

  <Value
  xsi:type=\"xsd:string\">InternetGatewayDevice:1.4[](Baseline:1,EthernetLAN:1,\
  WiFiLAN:1,EthernetWAN:1,Time:1,IPPing:1)</Value>\r

  </ParameterValueStruct>\r

  <ParameterValueStruct><Name>InternetGatewayDevice.DeviceInfo.SpecVersion</N\
  ame>\r

  <Value xsi:type=\"xsd:string\">9.1</Value>\r

  </ParameterValueStruct>\r

  <ParameterValueStruct><Name>InternetGatewayDevice.DeviceInfo.HardwareVersio\
  n</Name>\r

  <Value xsi:type=\"xsd:string\">V9.1.1</Value>\r

  </ParameterValueStruct>\r

  <ParameterValueStruct><Name>InternetGatewayDevice.DeviceInfo.SoftwareVersio\
  n</Name>\r

  <Value xsi:type=\"xsd:string\">V9.1.0P1_MUL</Value>\r

  </ParameterValueStruct>\r

  <ParameterValueStruct><Name>InternetGatewayDevice.DeviceInfo.ProvisioningCo\
  de</Name>\r

  <Value xsi:type=\"xsd:string\">ZXHN H199A</Value>\r

  </ParameterValueStruct>\r

  <ParameterValueStruct><Name>InternetGatewayDevice.ManagementServer.Connecti\
  onRequestURL</Name>\r

  <Value
  xsi:type=\"xsd:string\">http://100.64.30.107:7547/d7b4379c496422ebbd818898b84\
  04766</Value>\r

  </ParameterValueStruct>\r

  <ParameterValueStruct><Name>InternetGatewayDevice.ManagementServer.Paramete\
  rKey</Name>\r

  <Value xsi:type=\"xsd:string\"></Value>\r

  </ParameterValueStruct>\r

  <ParameterValueStruct><Name>InternetGatewayDevice.WANDevice.1.WANConnection\
  Device.1.WANPPPConnection.2.ExternalIPAddress</Name>\r

  <Value xsi:type=\"xsd:string\">100.64.30.107</Value>\r

  </ParameterValueStruct>\r

  </ParameterList>\r

  </cwmp:Inform>\r

  </SOAP-ENV:Body>\r

  </SOAP-ENV:Envelope>\r\n"
---
event: outgoing HTTP response
timestamp: 2021-09-22T01:21:44.110Z
remoteAddress: X.X.X.X (PUBLIC IP)
deviceId: C0B101-ZXHN%20H199A-ZTEYH86LCN02042
connection: 2021-09-22T01:21:44.110Z
statusCode: 200
headers:
  content-length: 524
  server: GenieACS/1.2.3+20201027064135
  soapserver: GenieACS/1.2.3+20201027064135
  content-type: text/xml; charset="utf-8"
  set-cookie: session=c4d0dc0023ff7ac9
body: >-
  <?xml version="1.0" encoding="UTF-8"?>

  <soap-env:Envelope xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><soap-env:Header><cwmp:ID soap-env:mustUnderstand="1">1356</cwmp:ID></soap-env:Header><soap-env:Body><cwmp:InformResponse><MaxEnvelopes>1</MaxEnvelopes></cwmp:InformResponse></soap-env:Body></soap-env:Envelope>
---
event: incoming HTTP request
timestamp: 2021-09-22T01:21:44.117Z
remoteAddress: X.X.X.X (PUBLIC IP)
deviceId: C0B101-ZXHN%20H199A-ZTEYH86LCN02042
connection: 2021-09-22T01:21:44.110Z
localPort: 7547
method: POST
url: /
headers:
  host: 192.168.20.5:7547
  content-type: text/xml; charset="utf-8"
  connection: TE
  te: trailers
  content-length: "0"
  cookie: session=c4d0dc0023ff7ac9
body: ""
---
event: outgoing HTTP response
timestamp: 2021-09-22T01:21:44.121Z
remoteAddress: X.X.X.X (PUBLIC IP)
deviceId: C0B101-ZXHN%20H199A-ZTEYH86LCN02042
connection: 2021-09-22T01:21:44.110Z
statusCode: 204
headers:
  content-length: 0
  server: GenieACS/1.2.3+20201027064135
  soapserver: GenieACS/1.2.3+20201027064135
  connection: close
body: ""```

Okay, I think I figured it out. You need to URL encode the ACS ID. So
/devices/C0B101-ZXHN%20H199A-ZTEYH86LCN02042 should be
/devices/C0B101-ZXHN%2520H199A-ZTEYH86LCN02042

The 202 comes because there is no matching device in the ACS.

curl -i 'http://192.168.20.5:7557/devices/C0B101-ZXHN%2520H199A-ZTEYH86LCN02042/tasks?timeout=120&connection_request' \
 -X POST \
 --data '{"name":"setParameterValues", "parameterValues": [["InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID", "GenieACS", "xsd:string"]]}'

I think this might be a regression in v1.2, as v1.1 returns 202 No such device. If the command I pasted above works, then it would indeed be a regression.

-dan

2 Likes

It worked. It really is necessary to encode the ID in the URL. The return 202 (no such device) happened in some attempts, but I don’t know why it didn’t happen in the last ones. Anyway, encode the ID in the URL seems to be the solution to this problem. Thanks Dan!

1 Like

Great news!

@zaidka it appears there is a regression in v1.2. In v1.1 if I try to do gpv/spv on a non-existent device I get back a 202 No such device. In v1.2, it returns Accepted.

image

I looked at the email notification and for a second I thought the day has finally come and you decided to upgrade to 1.2 :slight_smile: In any case, this has been fixed in 1.2.7. Should return 404 now.

1 Like

lol. It is on the plans to upgrade to v1.2 :slight_smile:.