Configuring Automatic Email Notifications
The GigaVUE nodes provide powerful email notification capabilities, automatically sending emails to specified addresses when any of a wide variety of events take place on the system. Gigamon strongly recommends that you configure this feature so you have immediate visibility of events affecting system health.
You configure automatic email notifications with the email command and its arguments. Start by making sure the CLI is in Configure mode. If the (config) entry appears in the system prompt, you are in Configure mode. If not, use the enable and configure terminal commands sequentially to change to Configure mode. Then, configure email notifications as follows:
Description |
Command |
First, use the email mailhub command to specify the mail server to use for notification emails. In this example, the email server named smtp.emailsrvr.com is used. IP address can be used instead of a hostname. |
(config) # email mailhub smtp.emailsrvr.com |
Next, use the email auth command to supply the email account username and password. In this example, alerts@mycompany.com is shown with a password of mypassword123. |
(config) # email auth username alerts@mycompany.com (config) # email auth password mypassword123 |
Once account is setup turn on email authentication. |
(config) # email auth enable |
Now that the settings are configured, let the system send emails. Set up who to send them to and when to send them. Use email notify recipient to configure the destinations for event notification emails. Multiple destinations can be specified by separating by commas with no spaces. |
(config) # email notify recipient cday@mycompany.com,mfelton@mycompany.com |
The email notify event command lets you configure which events will trigger automatic emails. There are quite a few events available – start by entering email notify event ? to see the list of available events. You can either enable individual events, or, use the all argument to enable them all. |
(config) # email notify event all |
It is a good idea to check your settings and make sure emails are sent successfully. You can do that with the email send-test command. If you do not receive the email, check the show log output to make sure the email was sent. Then, reconfigure email settings, if necessary. |
(config) # email send-test |
You may also want to configure and enable autosupport emails. Autosupport emails are sent directly to Gigamon’s Technical Support department when specified events take place, enabling proactive problem resolution. The GigaVUE TA Series is preconfigured with the correct destination address – you just need to enable the feature with the following command. Use show email events to see the list of events for which autosupport emails will be sent. You can change the list with the (no) email autosupport event command. |
(config) email autosupport enable |
That’s it! Emails will now be sent automatically to the configured addresses when any of the selected events take place. There are many other options for fine-tuning automatic email settings, including how to handle “dead letters” (emails that did not reach their recipient), how the email address of the GigaVUE TA Series should appear, the port for the email server, the reply-to address, and so on. |