Retrieving fibre channel interface information – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 172

140
Network OS NETCONF Operations Guide
53-1003231-02
Retrieving Fibre Channel interface information
11
This element is defined with type empty. To enable the trunking feature, you simply specify
the element.
The following example configures the link attached to port 4 on routing bridge 8 to be part of a
trunk group.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="1305" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<interface>
<fc-port>
<name>8/0/1</name>
<trunk-enable/>
</fc-port>
</interface>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="1305" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
Retrieving Fibre Channel interface information
To retrieve information about a fibre channel interface, issue the
<show-fibrechannel-interface-info> custom RPC located in the
urn:brocade.com:mgmt:brocade-fabric-service namespace. Using this RPC, you can obtain the port
index of the routing bridge, port type (E-port/F-port/U-port), port interface, port address, port WWN,
remote port WWN, remote node WWN, port state, port status, port status message, port health,
trunk details, licence details, and so on.
NOTE
If you retrieve the <port-index> leaf on a slot without a line card, the value returned is 4294967295,
which is actually -1. This leaf is an unsigned integer, and returns -1 when no card is found.
<rpc message-id="502" xmlns="urn:ietf:params:xml:ns:NETCONF:base:1.0">
<show-fibrechannel-interface-info
xmlns="urn:brocade.com:mgmt:brocade-fabric-service">
<all/>
</show-fibrechannel-interface-info>
</rpc>
<rpc-reply message-id="502" xmlns="urn:ietf:params:xml:ns:NETCONF:base:1.0">
<show-fibrechennel-interface
xmlns="urn:brocade.com:mgmt:brocade-fabric-service">
<portsgroup-rbridgeid>24</portsgroup-rbridgid>
<show-fibrechannel-info>
<port-interface>24/0/1</port-interface>
<port-index>1</port-index>
<port-type>E-Port</port-type
<port-wwn>20:79:00:05:33:67:26:78</port-wwn>
<remote-port-wwn>20:79:00:05:22:58:26:73</remote-port-wwn>