Setting the snmp version 3 host – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 110

78
Network OS NETCONF Operations Guide
53-1003231-02
SNMP server hosts
7
<running/>
</target>
<config>
<snmp-server xmlns="urn:brocade.com:mgmt:brocade-snmp" >
<host>
<ip>1050:0:0:0:5:600:300c:326b</ip>
<community>commaccess</community>
<udp-port>162</udp-port>
</host>
</snmp-server>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="1007" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
Setting the SNMP version 3 host
Setting the SNMP version 3 server host sets the trap destination IP addresses, user name,
notification type, destination port, and engine ID for the SNMP server host.
1. Issue the <edit-config> RPC to configure the <snmp-server> node in the
urn:brocade.com:mgmt:brocade-snmp namespace.
2. Under the <snmp-server> node, include the <v3host> node element.
3. Under the <v3host> node, include the following leaf element.
a. In the <hostip> element, specify the IPv4, IPv6, or DNS address of the SNMP host.
b. In the <username> element, specify the name of the user to be associated with the SNMP
server host.
This user name must already be defined in the <snmp-server>/<user> node.
c. Optionally, in the <udp-port> element, specify the UDP port where SNMP traps will be
received.
The default value is 162.
d. Optionally, in the <notifytype> element, specify “informs” or “traps” depending on whether
informs or traps are to be sent to the host.
The default value is “traps”.
e. Optionally, in the <engineid> element, specify the remote engine ID to receive informs on
the host.
The default value is 00:00:00:00:00:00:00:00:00.
f.
Optionally, in the <severity-level> field, specify the level of trap to be associated with SNMP
traps.
The following example configures dns1.mycorp.com as an SNMPv3 host and associates the
snmpuser3 version 3 user with it. In this case, a DNS address is used to identify the server.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="1008" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>