cpe 端模拟器 genieacs sim 的日志
> ./genieacs-sim --acs-url=http://127.0.0.1:2999
Simulator 000000 started
Simulator 000000 listening for connection requests on http://127.0.0.1:53849/
acs 端日志
增加了部分 debug 日志:
- message 类型是 Inform
- Inform 消息的 Event 类型是 PERIODIC
- 第一次请求的 body 长度是 2066, 第二次请求的 body 长度是 0
Connection: [keep-alive]
Content-Length: [2066]
Content-Type: [text/xml; charset="utf-8"]
Authorization: [Basic OEtBOFdBMTE1MTEwMDA0Mzo=]
[2023-04-26T22:43:47+08:00] INFO tr069/handlers.go:127 debug: body length: 2066
[2023-04-26T22:43:47+08:00] INFO tr069/handlers.go:157 recv CPE Inform Message: 4ebliaur {"namespace": "tr069", "ipaddr": "127.0.0.1", "metrics": "tr069_message_total"}
[2023-04-26T22:43:47+08:00] DEBUG tr069/handlers.go:166 msg name: Inform
[2023-04-26T22:43:47+08:00] INFO tr069/handlers.go:170 recv inform message {"namespace": "tr069", "msgid": "4ebliaur", "msgtype": "Inform", "ipaddr": "127.0.0.1", "metrics": "tr069_inform"}
Set-Cookie: [tr069_cookie=000000; Expires=Thu, 27 Apr 2023 14:43:47 GMT]
Content-Type: [application/xml; charset=UTF-8]
Connection: [keep-alive]
cwmp-acs 2023-04-26T22:43:47+08:00 127.0.0.1 POST / HTTP/1.1 200 1659200 2066 664
Authorization: [Basic OEtBOFdBMTE1MTEwMDA0Mzo=]
Cookie: [tr069_cookie=000000; Expires=Thu, 27 Apr 2023 14:43:47 GMT]
Connection: [keep-alive]
Content-Length: [0]
Content-Type: [text/xml; charset="utf-8"]
[2023-04-26T22:43:47+08:00] INFO tr069/handlers.go:119 cwmp cooike session sn = 000000 {"namespace": "tr069"}
[2023-04-26T22:43:47+08:00] INFO tr069/handlers.go:127 debug: body length: 0
[2023-04-26T22:43:47+08:00] INFO tr069/handlers.go:329 debug: Events: map[2 PERIODIC:]
Connection: [keep-alive]
Content-Length: [0]
cwmp-acs 2023-04-26T22:43:49+08:00 127.0.0.1 POST / HTTP/1.1 204 2013392300 0 0
周期性 5 分钟一次?
但是,5 分钟后这一次没有对应的 cpe 端日志。
TODO
- [X] 打印收到的 event name。tr069 event 清单
- [X] tr069 message type 有哪些, 其实就是 RPC 方法名。有两个分类:ACS 调用 CPE 的,CPE 调用 ACS 的
- [X] 打印收到的信息
- 删除设备信息,再次查看收到的信息
微信关注我哦 👍
我是来自山东烟台的一名开发者,有感兴趣的话题,或者软件开发需求,欢迎加微信 zhongwei 聊聊, 查看更多联系方式