![]() This macro-enabled Excel workbook is probably the best way to read and chart the port statistics. var/log/essstat/essstat-orange-2020.csv during the calendar year 2020. The data for orange will be accumulated in the file Will run every 10 minutes starting on each hour. In the above example, there are two switches being monitored, named orange and black. ![]() */10 * * * * zabbix /usr/local/bin/essstat.py -1 -p ChangeMe2 black > /var/log/essstat/essstat-black-`date \%G`.csv */10 * * * * zabbix /usr/local/bin/essstat.py -1 -p ChangeMe1 orange > /var/log/essstat/essstat-orange-`date \%G`.csv That the group of the directory matches the group of the user you will use. You may choose a different user, but just make sure Zabbix user that supports the monitoring application on this host. The first step is to setup a directory where the CSV files will accumulate the data. This Excel workbook to produce a dynamic chart that will automatically rescale to the available data. You can then pull down a copy of the CSV file and process the raw data through The simplest way to accumulate data from the switches is to have essstat.py execute with the -1line option andĪppend the output to a CSV file. Python 3.6 and uses the Beautiful Soup library. Credentials for accessing the unit are passed on the command line. This lightweight Python application performs a quick login through the switch's web based administrative interface, and then queries the AdditionalĬode will be added to parse and either output or store these statistics. The Python scripts in this project should be used only from a host that does not have general user access.Įssstat.py is a lightweight utility is used to pull port statistics from the switch and output in a readily parsable format. As described in, once a user from a given source IP address authenticates to the web-based management interface of the switch, any other user from that same source IP address is treated as authenticated. The Easy Smart Switch family has a number of unresolved vulnerabilities, including CVE-2017-17746. Members of this family, including the TL-SG105E and TL-SG1024DE. It should also be compatible with the other This project has been tested against TP-Link switch models TL-SG1016DE and TL-SG108E. With output that can be trivially parsed for formatted output, or entered into a monitoring system like Zabbix. This project addresses this issue to produce per-port statistics from a single command line invocation Unfortunately, these switches do not implement SNMP for access to these counters, nor do they appear to implement a discrete URL forĭirect access to this information. They are managed through a web based interface, giving access a number of functions, including basic packets counters per-port. TP-Link Easy Smart Switches are a family of managed switches capable of supporting QoS, VLANs and Link Aggregation Groups (LAGs). Essstat - TP-Link Easy Smart Switch port statistics
0 Comments
Leave a Reply. |