CLI Guide

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 congured 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 99. Details of testtrap attribute
Description Tests the RAC’s SNMP trap alerting feature by sending a test trap from iDRAC to a specied 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 specied index in the RACADM
iDRAC.SNMP.Alert group is congured properly.
The indices of testtrap subcommand is co-related to the indices of iDRAC.SNMP.Alert group.
Synopsis
racadm testtrap -i <index>
Input -i <index>Species the index of the trap conguration 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
View the current test trap settings.
racadm get iDRAC.SNMP.Alert.<index>
where <index> is a number from 1 to 8
130 RACADM Subcommand Details