Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 240

208
Network OS NETCONF Operations Guide
53-1003231-02
TACACS+
16
1. Issue the <edit-config> RPC to configure the <tacacs-server> node in the
urn:brocade.com:mgmt:brocade-aaa workspace.
2. Under the <tacacs-server> node, include the <host> node element.
3. Under the <host> node, include the <name> element, and leaf elements that define the
parameters you want to set.
The following example adds a TACACS+ server with an IPv6 address and sets the protocol and
key values.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="913" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<tacacs-server xmlns="urn:brocade.com:mgmt:brocade-aaa">
<host>
<hostname>fec0:60:69bc:94:211:25ff:fec4:6010</hostname>
<protocol>chap</protocol>
<key>new#hercules*secret</key>
</host>
</tacacs-server>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="913" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
4. Issue the <get-config> RPC with a subtree filter to limit the output to information about the
TACACS+ server to verify the configuration.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="914" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get-config>
<source>
<running/>
</source>
<filter type="subtree">
<tacacs-server xmlns="urn:brocade.com:mgmt:brocade-aaa">
<host>
<hostname>fec0:60:69bc:94:211:25ff:fec4:6010</hostname>
</host>
</tacacs-server>
</filter>
</get-config>
</rpc>
<rpc-reply message-id="914" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<tacacs-server xmlns="urn:brocade.com:mgmt:brocade-aaa">
<host>
<hostname>fec0:60:69bc:94:211:25ff:fec4:6010</hostname>
<port>49</port>
<protocol>chap</protocol>
<key>new#hercules*secret</key>
<retries>5</retries>