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
Enable the CLI configuration mode:
hostname > enable hostname # configure terminal
To add a recipient:
hostname (config) # email notify recipient <emailAddress>
To remove a recipient:
hostname (config) # no email notify recipient <emailAddress>
Verify your changes:
hostname (config) # show email
Save your changes:
hostname (config) # write memory
Adding and removing scheduled report recipients
Go to CLI configuration mode:
hostname > enable hostname # configure terminal
To add a recipient:
hostname (config) # report email recipient <emailAddress>
To remove a recipient:
hostname (config) # no report email recipient <emailAddress>
Verify your changes:
hostname (config) # show report email
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