Read SNMP Info (specified OIDs) from Routers and Switches, and save the output in a .txt file.
- Python (tested on Python 3.8.6)
- Modules
- snmp helper
- time
- sys
- You can use pip install -r requirements.txt to install all modules
Routers and Switches Cisco with SNMP version 2c community configured
- Same community for all devices in devices_list.txt
- Works for SNMP version 2c
- Run on port UDP/161, if necessary you can chance that on code (snmp_port = your_port)
- Install Python and the modules
- Download this repository or copy read_snmp_oid.py, snmp_helper.py and devices_list.txt to the same folder
- Run "python read_snmp_oid.py community OID (Ex. python read_snmp_info.py brainwork .1.3.6.1.2.1.1.5.0)
To collect specific SNMP information for a list of devices
If you are having trouble or need help, create an issue here
All credits to Kirk Byers for making SNMP Helper