TP Link - статистика данных сбрасывается после перезагрузки модема

645
Abhinav

У меня есть TP Link - TL-WR841N / TL-WR841ND.

Я хочу отслеживать использование данных на устройство ежемесячно. Я включил статистику данных на моем модеме. Но статистика очищается после перезагрузки модема.

Как я могу сохранить это, даже если модем перезапущен?

1
If this model supports logging to remote syslog server, then setup any unix based computer and forward routers log to it Alex 7 лет назад 1
@Alex: Yes, the model supports sending system log over mail but doesn't support sending the data statistics over mail...Can I construct data usage stats from router log? Abhinav 7 лет назад 0
I meant not sending log over mail but to remote `syslog`. As about constructing usage stats from router log, it is a different question, but anything can be parsed if log containing data you want and build report you want base on such data Alex 7 лет назад 0
@Alex Seems my router doesn't support logging to remote syslog server :( Abhinav 7 лет назад 0
Well, if you good on scripting, you can parse emails that your router can send periodically. Harder, but still posible Alex 7 лет назад 0
@Alex : Ok Thanks. Will try this... Abhinav 7 лет назад 0

1 ответ на вопрос

0
dirkt

Если встроенное ПО TP-Link по умолчанию поддерживает только статистику в ОЗУ, возможной альтернативой является установка OpenWRT, а затем добавить немного сценариев для хранения статистики на флэш-памяти (но следует помнить, что циклы записи на флэш-память ограничены) или для отправки статистики куда-либо еще (удаленный системный журнал, почта, что угодно), где вы можете их отслеживать.

Информация об опциях для мониторинга пропускной способности в OpenWRT находится здесь, и поиск в Google находит учебники, инструкции и т. Д.

I am relatively new to this topic. When you say "add a bit of scripting", do you mean download the source code and modify it or does it provide some hook-points to add scripts. Can you please point me to some document. Thanks in advance! Abhinav 7 лет назад 0
I haven't done it myself, but I think it's "sort of both": OpenWRT has [packages](https://wiki.openwrt.org/doc/packages) like any other Linux distro, and some are for bandwidth measurement statistics. Those would provide hooks. Or you can write your own shell scripts. Or, or ... There's lots of ways to do it, and I can't recommend a "best way". In your place, I'd read through the options, google a bit, and try out a few till you find something you like. Maybe that's a new question for the software recommendations stack exchange. dirkt 7 лет назад 0

Похожие вопросы