Configuring email recipients using the CLI

Prev Next

Use the commands in this section to add or remove email recipients for system event notifications and scheduled reports.

Important

If you use the CLI to add or remove a scheduled report recipient, the changes will not appear on the Email Settings page in the Web UI.

Adding and removing system event notification recipients

To add system event notification recipients:
  1. Enable the CLI configuration mode:

    hostname > enable
    hostname # configure terminal
  2. To add a recipient:

    hostname (config) # email notify recipient <emailAddress>
  3. To remove a recipient:

    hostname (config) # no email notify recipient <emailAddress>
  4. Verify your changes:

    hostname (config) # show email
  5. Save your changes:

    hostname (config) # write memory

Adding and removing scheduled report recipients

To configure scheduled report recipients:
  1. Go to CLI configuration mode:

    hostname > enable
    hostname # configure terminal
  2. To add a recipient:

    hostname (config) # report email recipient <emailAddress>
  3. To remove a recipient:

    hostname (config) # no report email recipient <emailAddress>
  4. Verify your changes:

    hostname (config) # show report email
  5. Save your changes:

    hostname (config) # write memory

Examples

This example adds analyst@acme.com as a system event notification recipient and removes user3@acme.com.

hostname (config) # show email
...
Email notification recipients:
  admin@acme.com (all events, in detail)
  exec@acme.com (failure events only, in detail)
  user3@acme.com (all events, summarized)
...
hostname (config) # email notify recipient analyst@acme.com
hostname (config) # no email notify recipient user3@acme.com
hostname (config) # show email
...
Email notification recipients:
  admin@acme.com (all events, in detail)
  analyst@acme.com (all events, in detail)
  exec@acme.com (failure events only, in detail)   

This example adds analyst@acme.com as a scheduled report recipient, and removes admin@acme.com.

hostname (config) # show report email

Report email configurations:
        ...        
        Email recipients:
                admin@acme.com
                exec@acme.com           
hostname (config) # report email recipient analyst@acme.com
hostname (config) # no report email recipient admin@acme.com
hostname (config) # show report email

Report email configurations:
        ...        
        Email recipients:
                analyst@acme.com
                exec@acme.com