• Tag : event-handler


Syslog message generation on MAC table changes

This feature provides the ability to generate Syslog messages for the events related to mac address entries being learnt or removed from the mac address-table on the switch. Here we will leverage following two key features of EOS: Event Monitor Event Handler Platform compatibility This feature is supported on all platforms.   Configuration The following shows how to configure the event monitor and event-handler for generating syslog messages for each mac address entry learnt or removed from the eventmon database.   1) First of all, enable the event monitor on the switch with the help of command event-monitor. Switch(config)# Switch(config)#...
Continue reading →

Configuration Change Email Notification

Using Event-Handler Feature, you can send an email notification whenever the Startup Configuration has been modified.  Below is the basic setup required to configure the email client and Event-Handler. Email Client The following email client configuration utilizes Gmail as the SMTP server with user itnetops@example.com as the authorized user to send emails.  It also uses TLS as the transport to Gmail.  Any valid SMTP server can be used for this function. email   from-user itnetops@example.com   server smtp.gmail.com   auth username itnetops@example.com   auth password <password>   tls You may also specify a different host port to the server (server host:port) if needed.   Event-Handler...
Continue reading →

remote SSH and command execution using bash

Hi, I am trying to SSH from one arista to another then execute a file. if i run below commmand manually on first arista cli it’s connected second switch and execute file correctly. SW01#bash ssh -i /home/admin/.ssh/id_rsa bash /home/admin/eth1_up.sh but when i want to automate and write an event-handler on first arista it’s connected second switch but not execute file. ! event-handler test trigger on-intf Ethernet1 operstatus action bash /home/admin/test.sh ! test.sh if [ “$OPERSTATE” = “linkdown” ] ; then Cli -p 15 -c’ bash ssh -i /home/admin/.ssh/id_rsa bash /home/admin/eth1_up.sh ‘ fi what could i missing? Thanks in...
Continue reading →

Event Manager TCollector counters

Introduction The EOS Event Manager feature provides the ability to specify a condition and an action to be carried out when that condition is detected. It is a flexible and configurable way to automate the reaction to conditions without the need for a system operator to observe and apply the desired actions manually. The TCollector is an open-source software that is used to gather statistical counters for the Linux system. This feature integrate the TCollector Counters with the Event Manager and provides a new set of the system statistical counters that can be used with the on-counters event handler. The on-counters Event Handler The...
Continue reading →

FastCli – Calling Python Script

Hi, I added a new event-handler called TEST, what it does is when int49 operational status goes to “notconnect”, I want to disable the port. normal bash command is not working. (tested with TAC) Switch : Arista 7150 – 52 port EOS: so I wrote a python script and stored in /mnt/flash/hello1.py (when I separately run the command, it checks the status of the interface (“notconnect”) and disabling them properly. But to call the script in event-handler command? FastCli ???? Can some one please help me.. Thanks Hari  

issue using event-handler with bash command

Hi, I run vEOS 4.13.7M in VirtualBox. Inspired by the logGrab bash script provided here on EOS Central I wrote this tiny little script #!/bin/bash FILENAME=startup-config_$HOSTNAME_$(date +%Y-%m-%d.%H%M%S) cd /mnt/flash cp startup-config $FILENAME Invoked from CLI it works like a charm, producing lots of config files to fill my flash: Leaf1#bash /mnt/flash/archive_startup_configs.sh Leaf1#dir Directory of flash:/ -rwx         154           Feb 19 16:52  archive_startup_configs.sh -rwx          20           Jun 16  2014  boot-config drwx        4096           Aug 22  2014  debug drwx        4096           Feb 19 07:44  persist drwx        4096           Aug 22  2014  schedule -rwx        1062           Feb 19 16:53  startup-config -rwx        1062           Feb 19 16:26  startup-config_2015-02-19.162615 -rwx        1062           Feb...
Continue reading →

Introduction to Managing EOS Devices – Automation and Extensibility

Note: This article is part of the Introduction to Managing EOS Devices series: https://eos.arista.com/introduction-to-managing-eos-devices/      5) Automation and Extensibility   The Arista EOS facilitates task automation, provisioning, and extending capabilities on the Arista switches. The following features are available on all the platforms: Managing extensions and applications AEM: Event Manager AEM: CLI Scheduler     5.1) Managing EOS Extensions   The most simple and efficient way to make the most of the extensibility on which EOS is built is through the use of extensions.  An extension is a pre-packaged optional feature or set of scripts in an RPM or SWIX format....
Continue reading →


Get every new post on this blog delivered to your Inbox.

Join other followers: