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

496
Network OS NETCONF Operations Guide
53-1003231-02
Configuring ingress SPAN, egress SPAN, or bidirectional SPAN
32
1. Issue the <edit-config> RPC to configure the <monitor> node in the
urn:brocade.com:mgmt:brocade-span namespace.
2. Under the <monitor> node, include the <session> node element.
3. Under the <session> node, include the following leaf elements.
a. In the <session-number> field, identify the session with a unique session number.
b. Optional: In the <description> field, provide a descriptive text for the session.
4. Under the <session> node, include the <span-command> node element.
5. Under the <span-command> node, include the following leaf elements.
a. In the <source> element, specify “source” to designate subsequent parameters as
pertaining to the source port.
b. In the <src-tengigabitethernet> element, specify “tengigabitethernet”,
“fortygigabitethernet”, or “gigabitethernet”, depending on the source port type.
c. In the <src-tengigabitethernet-val> element, specify the source port in
[rbridge-id/]slot/port format.
d. In the <destination> element, specify “destination” to designate subsequent parameters
as pertaining to the destination port.
e. In the <dest-tengigabitethernet> element, specify “tengigabitethernet”,
“fortygigabitethernet”, or “gigabitethernet”, depending on the destination port type.
f.
In the <dest-tengigabitethernet-val> element, specify the destination port in
[rbridge-id/]slot/port format.
g. In the <direction> element, specify “rx” to configure ingress SPAN, “tx” to configure egress
SPAN, or “both” to configure bidirectional SPAN.
The following example configures an ingress SPAN session. It designates 1/0/15 as the source
port and 1/0/18 as the destination port.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="2800" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<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
</dest-tengigabitethernet>
<dest-tengigabitethernet-val>1/0/18
</dest-tengigabitethernet-val>
<direction>rx</direction>
</span-command>