Brocade Network OS NETCONF Operations Guide v4.1.1 Manual de usuario Pagina 107

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 622
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 106
Network OS NETCONF Operations Guide 75
53-1003231-02
SNMP community strings
7
Changing the access of a read-only community string
To change the access permission for an SNMP community string to read-write, perform the
following steps.
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, specify the <community> node element.
3. Under the <community> node element, specify the <community> leaf element, and set its
value to the name of the community string for which you want to change the access
permission.
4. Under the <community> node element, include the <access> leaf element and set its value to
“rw”.
The following example changes the access permission of an existing community string named
“user123” to read-write.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="1002" 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" >
<community>
<community>user123</community>
<access>rw</access>
</community>
</snmp-server>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="1002" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
Removing an SNMP community string
To remove an SNMP community string, perform the following steps.
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, specify the <community> node element, and include the
delete operation in the opening element tag.
3. Under the <community> node element, set the <community> leaf element value to the name
of the community string you want to remove.
The following example removes the community string named “private” from the SNMP
configuration.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id=”1003" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
Vista de pagina 106
1 2 ... 102 103 104 105 106 107 108 109 110 111 112 ... 621 622

Comentarios a estos manuales

Sin comentarios