chemailuser

Use the chemailuser command to modify the settings that are defined for an email recipient.

Syntax

chemailuser [ -addressuser_address ] [ -usertype { support | local } ] [ -error { on | off } ] [ -warning { on | off } ] [ -info { on | off } ] [ -nameuser_name ] [ -inventory { on | off } ] { user_name | user_id }

Parameters

-addressuser_address
(Optional) Specifies the email address of the person receiving the email or inventory notifications, or both. The user_address value must be unique.
-usertypesupport|local
(Optional) Specifies the type of user, either local or support, based on the following definitions:
support
Address of the support organization that provides vendor support.
local
All other addresses.
-erroron|off
(Optional) Specifies whether the recipient receives error-type event notifications. Set to on, error-type event notifications are sent to the email recipient. Set to off, error-type event notifications are not sent to the recipient.
-warningon|off
(Optional) Specifies whether the recipient receives warning-type event notifications. Set to on, warning-type event notifications are sent to the email recipient. Set to off, warning-type event notifications are not sent to the recipient.
-infoon|off
(Optional) Specifies whether the recipient receives informational event notifications. Set to on, informational event notifications are sent to the email recipient. Set to off, informational event notifications are not sent to the recipient.
-nameuser_name
(Optional) Specifies the user name of the new email event notification recipient. The user_name value must be unique, must not contain spaces, and must not contain all numbers. The name emailusern, where n is a number, is reserved and cannot be specified as one of your user names.
-inventoryon|off
(Optional) Specifies whether this recipient receives inventory email notifications.
user_name | user_id
(Required) Specifies the email recipient for whom you are modifying settings.

Description

This command modifies the settings that are established for an email recipient. Standard rules regarding names apply; therefore, it is not possible to change a name to emailusern, where n is a number.

Note: Before the usertype parameter can be set to support, the -warning and -info flags must be set to off.
Remember: When considering e-mail addresses:
  • Alphanumeric characters and additionally underscore (_), at symbol (@), and dot (.) characters are permitted.
  • There must be exactly one @ character in the string, and the @ characters must not start or end the string.
  • A plus (+) character is permitted before the @ character.
For syslog servers, Simple Network Management Protocol (SNMP) servers, and email users with type set to local, the valid combinations of notification types are:
  • error, warning, and info
  • error and warning

An invocation example

The following example modifies email settings for email recipient manager2008:

chemailuser -usertype local manager2008

The resulting output:

No feedback

An invocation example

The following example modifies email settings:

chemailuser -address fred@gmail.com -name Fred

The resulting output:

No feedback