Skip to content

davis-sang/NetworkAuto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Project Structure

  • 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.

Requirements

  • Python 3
  • cron

Setup

  1. Ensure Python 3 is installed on your system.

  2. Make the bash script executable:

    chmod +x / `{path}`/cron_shell.sh
  3. Cron job:

    crontab -e 
    # Run the chassisAlarms.sh script at 07:00 UTC every day
    0 7 * * * /`{path}`/cron_shell.sh
    
    
    

About

Juniper alarms script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published