How r3tr0r0c4/ciscologger works
ciscoLogger collects multi-site Cisco switch state into MariaDB/MySQL, then serves authenticated dashboards, searches, history, and statistics through Flask. A separate Python utility backs up switch configurations to local or CIFS archives; history cleanup is another database-maintenance task. The collector excerpts show switch access, parsing, and persistence responsibilities, while the README documents the web capabilities. Some internal calls and template routing are not shown, so those relationships are omitted rather than inferred.
Main entry points: app.py Flask Application · ciscoLogger.py Switch Collector · ciscoBackup.py Switch Backup · creates.sql MariaDB / MySQL
Components 20
Data Collection
- Switch Collector
Python/ciscoLogger.py - Data Parsing
Python/ciscoLogger.py - Live Interface Data
Python/ciscoLogger.py - ARP Tracking
Python/ciscoLogger.py - Port Security
Python/ciscoLogger.py
Web Application
- Flask Application
frontend/app.py - Login and Sessions
frontend/app.py - Dashboard
frontend/templates/index.html - MAC Search
frontend/templates/mac_search.html - Description Search
frontend/templates/description_search.html - Interface History
frontend/templates/interface_history.html - Statistics
frontend/templates/stats.html
Config Backup
- Switch Backup
Python/ciscoBackup.py - TFTP Transfer
- Backup Archive
Data Maintenance
- History Cleanup
Python/history_cleanup.py
Other components
- Network Operator
- Cisco Switches
- MariaDB / MySQL
SQL/creates.sql - CIFS Share
Connections 19
- Switch Collector → Cisco Switches: collects from
Python/ciscoLogger.py - Switch Collector → Data Parsing: parses output
Python/ciscoLogger.py - Switch Collector → MariaDB / MySQL: writes records
Python/ciscoLogger.py - Switch Collector → ARP Tracking: upserts entries
Python/ciscoLogger.py - Switch Collector → Live Interface Data: stores stats
Python/ciscoLogger.py - Switch Collector → Port Security: extracts settings
Python/ciscoLogger.py - Network Operator → Flask Application: uses
readme.md - Flask Application → MariaDB / MySQL: queries
frontend/app.py - Flask Application → Login and Sessions: authenticates
frontend/app.py - Flask Application → Dashboard: renders
frontend/app.py - Flask Application → MAC Search: supports search
readme.md - Flask Application → Description Search: supports search
readme.md - Flask Application → Interface History: shows history
readme.md - Flask Application → Statistics: shows statistics
readme.md - Switch Backup → Cisco Switches: backs up
Python/ciscoBackup.py - Switch Backup → TFTP Transfer: transfers config
Python/ciscoBackup.py - Switch Backup → Backup Archive: stores archives
Python/ciscoBackup.py - Switch Backup → CIFS Share: mounts share
Python/ciscoBackup.py - History Cleanup → MariaDB / MySQL: purges history
Python/history_cleanup.py