smtp command

This command configures and displays the CMM SMTP settings.

If command syntax is not correctly entered, or if a command fails to run, an error message is returned. See Common errors for a list of error messages that apply to all commands or smtp command errors for a list of error messages that are specific to the smtp command.

Table 1. smtp command.

The command table is a multi-row, four-column table where each row describes a CMM CLI command option: column one lists command function, column two provides a detailed command description, column three shows command-option syntax, and column four lists valid command targets.

Function What it does Command Target (see paths in Command targets)
Display SMTP server host name or IP address Displays the SMTP server domain name and host name or IP address. smtp
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
Server host name or IP address - set Checks syntax and sets the server host name or IP address. smtp -s hostname/ip_address

where hostname/ip_address is the host name or IP address of the server. The value can be cleared by setting it to an empty, double-quote delimited string ("").

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
SMTP e-mail server domain name - set Checks syntax and sets the SMTP e-mail server domain name. smtp -d domainname

where domainname is a valid domain name that meets the following criteria:

  • Alphanumeric string up to 63 characters in length.
  • Can contain dots (.), dashes (-), or underscores (_).
  • Must contain at least one dot.
  • No consecutive dots are allowed.
  • Quotes are not required.
  • Value can be cleared by setting it to an empty, double-quote delimited string ("").
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.

Example:

To set the SMTP server host name to lenovo.com, while the primary CMM in bay 1 is set as the persistent command environment, at the system:mm[1]> prompt, type
smtp -s lenovo.com
To display the SMTP configuration, while the primary CMM in bay 1 is set as the persistent command environment, at the system:mm[1]> prompt, type
smtp

The following example shows the information that is returned from these two commands:

system:mm[1]> smtp -s lenovo.com
OK
system:mm[1]> smtp
-s lenovo.com
SMTP email domain name is not set
system:mm[1]>