NetworkAuto
This project contains a script to monitor and handle chassis alarms from juniper routers and write them to a txt file. The script is scheduled to run twice a day using a cron job.
chassisAlarms.py
: The main Python script that performs the chassis alarm monitoring.chassisAlarms.sh
: A bash script to execute the Python script.README.md
: This readme file.
- Python 3
- cron
-
Ensure Python 3 is installed on your system.
-
Make the bash script executable:
chmod +x / `{path}`/cron_shell.sh
-
Cron job:
crontab -e # Run the chassisAlarms.sh script at 07:00 UTC every day 0 7 * * * /`{path}`/cron_shell.sh