pip install -r requirements.txtsudo npm install -g @commitlint/{config-conventional,cli}
pre-commit install && pre-commit autoupdate && pre-commit install --hook-type commit-msgCopy snmpd.conf file into /usr/share/snmp changing trap2sink interface for receiver interface (trap sender interface).
trap2sink rocom trap_sender_interface
sudo cp snmpd.conf /usr/share/snmpcd traps
sudo cp snmptrapd.conf /etc/snmpcd /etc/snmp
sudo mkdir scriptsecho "" >> /home/youruser/logs.txtcd traps
sudo cp trapsh.sh /etc/snmp/scriptssystemctl start snmpd
systemctl start snmptrapdpython3 traps_parser.py----------------------------------------------------
IF STATE CHANGE
ROUTER ID: 12.0.0.1
INTERFACE ID: 12.0.0.1
INTERFACE STATE: BACKUP_DESIGNATED_ROUTER
----------------------------------------------------
IF STATE CHANGE
ROUTER ID: 12.0.0.1
INTERFACE ID: 11.0.0.2
INTERFACE STATE: BACKUP_DESIGNATED_ROUTER
----------------------------------------------------
NEIGHBOR STATE CHANGE
ROUTER ID: 13.0.0.1
OSPF ROUTER STATE: FULL
----------------------------------------------------In this section you'll find some examples about how to use the python-snmp-analyzer tool. Be aware that you have to install the dependencies before you run the tool.
python main.pypython main.py --ip 10.0.0.4python main.py --output output.txtpython main.py --add-routespython main.py --helpThe project is licensed under the GNU General Public License v3.0. See the LICENSE file for more information.