Returning the snmp configuration – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 113

Network OS NETCONF Operations Guide
81
53-1003231-02
SNMP server hosts
7
Returning the SNMP configuration
To display the current SNMP configuration for the SNMP host, community strings, user names,
contact, and location, issue the <get-config> RPC and provide a subtree filter to return the
<snmp-server> node from the urn:brocade.com:mgmt:brocade-snmp workspace in the running
configuration.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="117" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get-config>
<source>
<running/>
</source>
<filter type="subtree">
<snmp-server xmlns="urn:brocade.com:mgmt:brocade-snmp"/>
</filter>
</get-config>
</rpc>
<rpc-reply message-id="117" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<snmp-server xmlns="urn:brocade.com:mgmt:brocade-snmp">
<community>
<community>ConvergedNetwork</community>
<access>ro</access>
</community>
<community>
<community>OrigEquipMfg</community>
<access>rw</access>
</community>
<community>
<community>Secret COde</community>
<access>rw</access>
</community>
<community>
<community>common</community>
<access>ro</access>
</community>
<community>
<community>private</community>
<access>rw</access>
</community>
<community>
<community>public</community>
<access>ro</access>
</community>
<user>
<username>snmp</username>
</user>
<user>
<username>snmpadmin2</username>
<groupname>snmpadmin</groupname>
</user>
<user>
<username>snmpadmin3</username>
<groupname>snmpadmin</groupname>
</user>
<user>
<username>snmpuser2</username>
</user>