Setting the snmp server contact, Setting the snmp server location – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 112

Advertising
background image

80

Network OS NETCONF Operations Guide

53-1003231-02

SNMP server hosts

7

Setting the SNMP server contact

To set the SNMP server contact string, issue the <edit-config> RPC to configure the
<snmp-server>/<agtconfig> node in the urn:brocade:com:mgmt:brocade-snmp workspace and
specify the contact string in the <contact> leaf element.

The default contact string is Field Support.

The following example changes the default contact string to “Operator 12345.”

<?xml version="1.0" encoding="UTF-8"?>

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

<edit-config>

<target>

<running/>

</target>

<config>

<snmp-server xmlns="urn:brocade.com:mgmt:brocade-snmp" >

<agtconfig>

<contact>Operator 12345</contact>

</agtconfig>

</snmp-server>

</config>

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

Setting the SNMP server location

To set the SNMP server location string, issue the <edit-config> RPC to configure the
<snmp-server>/<agtconfig> node in the urn:brocade:com:mgmt:brocade-snmp workspace and
specify the server location string in the <location> leaf element.

The default server location string is End User Premise.

The following example changes the server location string to “Building 3 Room 214”.

<?xml version="1.0" encoding="UTF-8"?>

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

<edit-config>

<target>

<running/>

</target>

<config>

<snmp-server xmlns="urn:brocade.com:mgmt:brocade-snmp" >

<agtconfig>

<location>Building 3 Room 214</location>

</agtconfig>

</snmp server>

</config>

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

Advertising