Giter Club home page Giter Club logo

icmp-monitor's Introduction

icmp-monitor

Create a ICMP monitor and take action on your device given the status of the monitor.

#Step 1

Copy files over to /mnt/flash on your Arista EOS device

  • monitor-ip.py
  • show-icmp-monitor.py
  • icmp-monitor-tasks.sh

#Step 2

Configure the following event-handlers for each script. The first is to run on boot, the second exposes a new show command to the cli.

Event-Handler for Monitor Script alt text

Help Menu alt text

Event-Handler for cli show commands alt text

Example of show command alt text

#Kick off Manually

If device is already online follow these steps to kick off manually.

  1. copy .sh & .py files to /mnt/flash/
  2. ensure root password is configured
  • aaa root secret "INSERTYOURPASSWORD"
  1. from cli prompt, type in keyword bash
  2. su to root user, use root password
  3. kick off monitor script manually and set to run in background
  • /mnt/flash/monitor-ip.py -r 0.0.0.0/0 -n 10.1.1.2 -m 10.1.1.2 -s et1 &
  1. Wait for 10 seconds and issue the command to ensure script is running
  • ps -ef | grep monitor-ip
  1. run the following command to expose the show command via the cli
  • /mnt/flash/icmp-monitor-tasks.sh
  1. logout and end ssh session
  2. ssh back in and verify with following show commands:
  • show icmp monitor
  • bash ps -ef | grep monitor-ip

icmp-monitor's People

Watchers

 avatar

Forkers

alexfeig

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.