Brocade Network OS NETCONF Operations Guide v4.1.1 Manuel d'utilisateur Page 45

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 622
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 44
Network OS NETCONF Operations Guide 13
53-1003231-02
Retrieving configuration data
2
<source>
<running/>
</source>
<filter type="subtree">
<interface xmlns="urn:brocade.com:mgmt:brocade-interface">
<fc-port>
<name>8/0/1</name>
</fc-port>
</interface>
</filter>
</get-config>
</rpc>
If all you want to know is the setting of one specific Fibre Channel port attribute, such as the
configured speed, use a filter such as the following. In this case, <fc-speed-cfg> suppresses the
inclusion of all its sibling nodes. It is termed a selection node.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="203" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get-config>
<source>
<running/>
</source>
<filter type="subtree">
<interface xmlns="urn:brocade.com:mgmt:brocade-interface">
<fc-port>
<name>8/0/1</name>
<fc-speed-cfg/>
</fc-port>
</interface>
</filter>
</get-config>
</rpc>
The following example retrieves the configuration for the Fibre Channel port 1 on routing bridge 8.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="204" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get-config>
<source>
<running/>
</source>
<filter type="subtree">
<interface xmlns="urn:brocade.com:mgmt:brocade-interface">
<fc-port>
<name>8/0/1</name>
</fc-port>
</interface>
</filter>
</get-config>
</rpc>
<rpc-reply message-id="204" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<interface xmlns="urn:brocade.com:mgmt:brocade-interface">
<fc-port>
<name>8/0/1</name>
<ifindex>1</ifindex>
<fc-speed-cfg>8gbps</fc-speed-cfg>
<long-distance>ld</long-distance>
<vc-link-init>arb</vc-link-init>
<desire-distance>0</desire-distance>
Vue de la page 44
1 2 ... 40 41 42 43 44 45 46 47 48 49 50 ... 621 622

Commentaires sur ces manuels

Pas de commentaire