CLI Guide

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.
testtrap
Table 101. Details of testtrap attribute
Description Tests the RAC’s SNMP trap alerting feature by sending a test trap from iDRACCMC to a specified destination trap
listener on the network.
To run this subcommand, you must have the Test Alert permission.
NOTE:
Before you run the testtrap subcommand, make sure that the specified index in the RACADM
iDRAC.SNMP.Alert group is configured properly.
The indices of testtrap subcommand is co-related to the indices of iDRAC.SNMP.Alert group.
NOTE: Before you run the testtrap subcommand, make sure that the specified index in the
cfgAlerting group is configured properly.
Synopsis
racadm testtrap -i <index>
Input -i <index> — Specifies the index of the trap configuration that must be used for the test. Valid values are from
1 to 4.
Example
Enable the alert.
racadm set idrac.emailalert.1.CustomMsg 1
racadm set iDRAC.SNMP.Alert.1.Enable 1
Set the destination email IP address.
racadm set iDRAC.SNMP.Alert.1.DestIpAddr
192.168.0
RACADM Subcommand Details 145