Knowledge Base Gathering packet stats from TL-SG1016DE
Gathering packet stats from TL-SG1016DE
Tags:
#SNMP
#Python
I have a TL-SG1016DE and I wanted to get the type of per-port traffic stats I would usually be able to get from SNMP. Since there is no SNMP or API, I built a Python script to scrape the packet counts from the UI and send them to ElasticSearch every minute, and built a simple dashboard for tx/rx as shown below.
You can get the code at my gitlab repository at gitlab dot com / brentashley / switch-stats