Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 182

Advertising
background image

150

Network OS NETCONF Operations Guide

53-1003231-02

Alert notifications

12

To create a mapping:

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 <system-monitor-mail> node, include the <relay> node element.

4. Under the <relay> node, include the following leaf elements.

a. In the <host-ip> field, specify the IP address of the Domain Name System.

b. In the <domain-name> field, include the domain name of the Domain Name System.

<rpc message-id="1105" 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">

<relay>

<host-ip>1.2.3.4</host-ip>

<domain-name>englab.brocade.com</domain-name>

</relay>

</system-monitor-email>

</config>

</edit-config>

</rpc>

<rpc-reply message-id="1105" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<ok/>

</rpc-reply>

To delete the mapping:

<rpc message-id="1106" 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">

<relay xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"

operation="delete">

<host-ip xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"

operation="delete">1.2.3.4</host-ip>

</relay>

</system-monitor-email>

</config>

</edit-config>

</rpc>

<rpc-reply message-id="1106" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<ok/>

</rpc-reply>

Advertising