For the switch to send out email alerts, we would need to configure the switch as an email client. Please find more details regarding the same on our EOS Central link here: https://eos.arista.com/email-client-configuration-on-arista-switches/
We need to enable this command for logging for recording any user logs on to the switch or log out of the switch and then enable an event handler to trigger an email.
switch(config)#aaa accounting exec default start-stop logging
For the event-handler, the required action would be to send an email when the logs are recorded.
The below sample event-handler, named “login” is triggered when there is an accounting log recorded in the Syslog. The action calls bash to send the email to a defined destination email (firstname.lastname@example.org) The system variable $HOSTNAME is used to indicate what switch’s configuration was just changed.
The action/conditional statements can be modified as per your requirement. You could also refer to the following article which provides additional options and you could combine it with email alerts: https://eos.arista.com/syslog-triggered-event-scripts/
In case you have any additional questions or need any further clarifications, please feel free to reach out to email@example.com
You can also rely on AAA - accounting; you would have that information on your Radius or TACACS+ server.
Configure SMTP Client for Alert Notification (SNMP) · Log in to a host that has an SNMP tool and the Oracle ILOM MIBs installed.
Post your Answer
You must be logged in to post an answer.