Deleting a span session – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 530

498
Network OS NETCONF Operations Guide
53-1003231-02
Deleting a SPAN session
32
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
operation="delete">
<source>source</source>
<src-tengigabitethernet>tengigabitethernet
</src-tengigabitethernet>
<src-tengigabitethernet-val>1/0/15
</src-tengigabitethernet-val>
<destination>destination</destination>
<dest-tengigabitethernet>tengigabitethernet
</dest-tengigabitethernet>
<dest-tengigabitethernet-val>1/0/18
</dest-tengigabitethernet-val>
<direction>both</direction>
</span-command>
</session>
</monitor>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="2801" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
Deleting a SPAN session
To remove a SPAN session, perform the following steps.
1. Issue the <get-config> RPC with a subtree filter to restrict the output to the <monitor> node in
the urn:brocade.com:mgmt:brocade-span namespace.
This step returns configuration information about existing monitoring sessions.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="2802" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get-config>
<source>
<running/>
</source>
<filter type="subtree">
<monitor xmlns="urn:brocade.com:mgmt:brocade-span"/>
</filter>
</get-config>
</rpc>
<rpc-reply message-id="2802" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<monitor xmlns="urn:brocade.com:mgmt:brocade-span">
<session>
<session-number>1</session-number>
<description>Hello World</description>
<span-command>
<source>source</source>
<src-tengigabitethernet>tengigabitethernet
</src-tengigabitethernet>
<src-tengigabitethernet-val>1/0/15
</src-tengigabitethernet-val>
<destination>destination</destination>
<dest-tengigabitethernet>tengigabitethernet