I want to collect stats from my DSL modem every 10 minutes. According to lots of websites it's best to use rrd for this. My modem(TD-W8968) struggles with SNMP so I've made an expect script to pull stats via telnet. The crontab for collection is already set up. My problem is that my stats output looks like this after cropping unnecessary lines with head etc.:
Status: Showtime
Last Retrain Reason: 0
Last initialization procedure status: 0
Max: Upstream rate = 1080 Kbps, Downstream rate = 11128 Kbps
Channel: FAST, Upstream rate = 512 Kbps, Downstream rate = 2048 Kbps
Link Power State: L0
Mode: G.DMT
TPS-TC: ATM Mode
Trellis: ON
Line Status: No Defect
Training Status: Showtime
Down Up
SNR (dB): 21.8 12.0
Attn(dB): 26.0 15.0
Pwr(dBm): 5.1 4.0