CLI Guide

Table 108. Details of testalert (continued)
Input -i Specifies the index of the trap test. index must be an integer from 1 to 8 on iDRAC.
Output
Success: Test trap sent successfully
Failure: Unable to send test trap
Example
Test a trap with index as 1.
racadm testalert -i 1
Test trap sent successfully.
Test a trap that has not been configured yet.
racadm testalert -i 2
ERROR: Trap at specified index is not currently enabled.
testemail
Table 109. Details of testemail
Description
Sends a test email from iDRAC to a specified destination. Prior to running the test email command, make sure
that the SMTP server is configured.
The specified index in the idrac.EmailAlert group must be enabled and configured properly. For more
information, see iDRAC RACADM CLI Guide available at https://www.dell.com/idracmanuals.
Synopsis
racadm testemail -i <index>
Input -i <index> Specifies the index of the email alert to test.
Output Success: Test e-mail sent successfully Failure: Unable to send test e-mail
Example
Commands for the idrac.EmailAlert group:
Enable the alert.
racadm set idrac.EmailAlert.1.Enable 1
Set the destination email address.
racadm set idrac.EmailAlert.1.Address user1@mycompany.com
Set the custom message that is sent to the destination email address.
racadm set idrac.emailalert.1.CustomMsg "This is a test!"
Make sure that the SMTP IP address is configured properly.
racadm set idrac.remotehosts.SMTPServerIPAddress 192.168.0
View the current email alert settings.
racadm get idrac.EmailAlert.<index>
where <index> is a number from 1 to 8.
RACADM Subcommand Details 155