Configuring e-mail alerts, Forwarding e-mail messages to a relay server – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 181

Network OS NETCONF Operations Guide
149
53-1003231-02
Alert notifications
12
Configuring e-mail alerts
Use this procedure to configure e-mail recipients of FRU alerts. For an e-mail alert to function
correctly, add the IP addresses and host names to the Domain Name System (DNS) and configure
the domain name and name servers.
1. Issue the <edit-config> RPC to configure the <system-monitor-mail> node in the
urn:brocade.com:mgmt:brocade-system-monitor namespace.
2. Under the <system-monitor-mail> node, include the <fru> node element.
3. Under the <fru> node, include the empty <enable> element.
4. Under the <fru> node, include an <email-list> node element for each intended e-mail recipient
of FRU alert notifications.
5. Under each <email-list> node element, include an <email> leaf element and specify the e-mail
address of an intended recipient.
6. Under the <system-monitor-mail> node, include the <relay> node element.
The following example configures an e-mail recipient of FRU alert notifications.
<rpc message-id="1104" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<system-monitor-mail
xmlns="urn:brocade.com:mgmt:brocade-system-monitor">
<fru>
<enable>
<email-list>
<email>[email protected]</email>
</email-list>
</fru>
</system-monitor-email>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="1104" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
Forwarding e-mail messages to a relay server
This procedure allows the sendmail agent on the switch to resolve the domain name and forward
all e-mail messages to a relay server.