Graphing sync rates on a TP-Link TD-8817 modem using cacti
September 16, 2012
Posted by on
I get my internet through a TP-Link TD-8817 and I’ve noticed the sync rate vary over time just by checking the web interface from time to time . So that I can track this and perhaps correlate it with something, I’ve written a script in perl with the Expect module, the appropriate templates to graph it in cacti, and put it up on github. Here’s the actual session transcript showing how to get the data:
Connected to modem
Escape character is '^]'.
Copyright (c) 2001 - 2012 TP-LINK TECHNOLOGIES CO., LTD
TP-LINK> wan adsl c
near-end interleaved channel bit rate: 10313 kbps
near-end fast channel bit rate: 0 kbps
far-end interleaved channel bit rate: 1293 kbps
far-end fast channel bit rate: 0 kbps
Connection closed by foreign host.
Here’s an example graph from my own connection: