Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 242

Advertising
background image

210

Network OS NETCONF Operations Guide

53-1003231-02

TACACS+

16

<ok/>

</rpc-reply>

3. Issue the <get-config> RPC with a subtree filter to restrict the output to the modified TACACS+

server to verify the configuration change.

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

<rpc message-id="917" 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="917" 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>changedesc</key>

<retries>100</retries>

<timeout>5</timeout>

</host>

</tacacs-server>

</rpc>

Removing a TACACS+ server from a client’s server list

To remove a TACACS+ server from a client’s server list, follow these steps.

1. Issue the <edit-config> RPC to configure the <tacacs-server> node in the

urn:brocade.com:mgmt:brocade-aaa namespace.

2. Under the <tacacs-server> node, include the <host> node element, and include the delete

operation in the element tag.

3. Under the <host> node, include the <name> element and specify the domain name, IP

address, or IPv6 address of the TACACS+ server you want to remove.

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

<rpc message-id="918" 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 xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"

operation="delete">

<host-name>10.54.37.170</host-name>

</host>

Advertising