Alertmail commands

Use the alertmail commands to disable, enable and configure alertmail settings, so the Moonshot iLO CM firmware can forward system events to a specified email address.

DISABLE ALERTMAIL

Enter this command to disable alertmail notifications.

Command syntax

disable alertmail

Access privilege

Administrator

Restrictions

None

Output

Command output example

hpiLO-> disable alertmail 


Command Succeeded

hpiLO->

ENABLE ALERTMAIL

Enter this command to enable alertmail notifications. When enabled, an email is sent for each IML log entry as it is added.


[NOTE: ]

NOTE: Alertmail is associated with the IML log only. Entries in the iLO log are not included (see Syslog information for combined IML and iLO log forwarding).


Command syntax

enable alertmail

Access privilege

Administrator

Restrictions

Alertmail must be configured using the following commands before it can be enabled:

Output

Command output example

hpiLO-> enable alertmail 


Command Succeeded

hpiLO->

SET ALERTMAIL MAILBOX

Enter this command to configure the email account that receives alertmail notifications.

Command syntax

set alertmail mailbox {"<email address>"}

Access privilege

Administrator

Restrictions

None

Output

Command output example

hpiLO-> set alertmail mailbox “user@hp.com” 


Command Succeeded

hpiLO->

SET ALERTMAIL PORT

Enter this command to configure the destination SMTP port to be used for alertmail notifications.


[NOTE: ]

NOTE: The default value is SMTP port 25.


Command syntax

set alertmail port {<SMTP port>}

Access privilege

Administrator

Restrictions

None

Output

Command output example

hpiLO-> set alertmail port 25 


Command Succeeded

hpiLO->

SET ALERTMAIL SENDERDOMAIN

Enter this command to configure the sender’s domain name to be used for alertmail notifications.

Command syntax

set alertmail senderdomain {<domain name>}

Access privilege

Administrator

Restrictions

None

Output

Command output example

hpiLO-> set alertmail senderdomain domain.com 


Command Succeeded

hpiLO->

SET ALERTMAIL SMTPSERVER

Enter this command to set the SMTP server address used for alertmail notifications.


[NOTE: ]

NOTE: The value for the SMTP server address must be a valid DNS name or IPv4 address.


Command syntax

set alertmail smtpserver {SMTP server address}

Access privilege

Administrator

Restrictions

None

Output

Command output example

hpiLO-> set alertmail smtpserver smtp-address.domain.com 


Command Succeeded

hpiLO->

SHOW ALERTMAIL SETTINGS

Enter this command to display the current alertmail configuration.

Command syntax

show alertmail settings

Access privilege

All

Restrictions

None

Output

Command output example

hpiLO-> show alertmail settings 

AlertMail Status: Enabled
AlertMail Mailbox: email@domain.com
AlertMail Sender Domain Name: domain.com
Alertmail SMTP Port: 25
AlertMail SMTP Server: smtp-address.domain.com

Command Succeeded

hpiLO->

TEST ALERTMAIL

Enter this command to send a test alertmail notification to validate your configuration.

Command syntax

test alertmail

Access privilege

Administrator

Restrictions

None

Output

Command output example

hpiLO-> test alertmail 


Command Succeeded

hpiLO->