Retrieving spanning tree-related information – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 387

Network OS NETCONF Operations Guide
355
53-1003231-02
Retrieving spanning tree-related information
24
<rpc-reply message-id="2024" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
Retrieving spanning tree-related information
Use the <get-stp-brief-info> custom RPC to display STP, RSTP, MSTP, PVST, or Rapid-PVST-related
information.
Issue the <get-stp-brief-info> custom RPC located in the urn:brocade.com:mgmt:brocade-xstp-ext
namespace without any input parameters to retrieve the first spanning tree instance. If multiple
spanning tree instances exist, the <has-more> element in the output returns “true”. If the
<has-more> element returns true, you can retrieve the next spanning tree instance by specifying
the value returned in the <instance-id> element of the output as an input parameter in the
<,last-rcvd-instance>/<instance-d> field of the next invocation of the <get-stp-brief-info> RPC.
<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2025">
<get-stp-brief-info xmlns="urn:brocade.com:mgmt:brocade-xstp-ext"/>
</rpc>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2025">
<get-stp-brief-info xmlns="urn:brocade.com:mgmt:brocade-xstp-ext">
<spanning-tree-info>
<stp-mode>STP</stp-mode>
<stp>
<route-bridge>
<priority>32768<priority>
<bridge-id>22<bridge-id>
<hello-time>2<hello-time>
<max-age>20</max-age>
<forward-delay>15</forward-delay>
</route-bidge>
<bridge>
<priority>32768</priority>
<bridge-id>22</bridge-id>
<hello-time>2<hello-time>
<max-age>20</max-age>
<forward-delay>15</forward-delay>
<transmit-hold-count>6</transit-hold-count>
<migrate-time>3</migrate-time>
<port>
<interface-type>Tengigabitethernet</interface-type>
<interface-name>22/0/1</interface-name>
<spanningtree-enabled>true<spanningtree-enabled>
(output truncated)
</spanning-tree-info>
<has-more>true</has-more>
<last-instance>
<instance-id>91</instance-id>
</last-instance>
</get-stp-brief-info>
</rpc-reply>