Brocade Network OS NETCONF Operations Guide v4.1.1 Instrukcja Użytkownika Strona 161

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 622
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 160
Network OS NETCONF Operations Guide 129
53-1003231-02
Zone configuration scenario
10
The following example creates the zone configuration shown in Figure 3. The example assumes
that two hosts need access to the same storage device, while each host needs private storage of
its own. You create two zones: Zone A contains Host 1, its private storage device, and the shared
storage device; Zone B contains Host 2, its private storage device, and the shared storage device.
In addition, you create two zone configurations: cfg1 in which only Zone A is effective; cfg2, in
which both zones are effective.
This example follows these steps.
1. Connect to any switch on the Brocade VCS Fabric using Secure Shell (SSH).
2. Issue the <name-server> custom action with the <detail> option to retrieve the available
WWNs.
3. Use the <edit-config> RPC on the <zoning> node to create the following defined configuration:
ZoneA containing WWNs 20:00:00:05:1e:ed:95:38, 50:05:07:61:00:09:20:b4, and
50:05:07:61:00:1b:62:ed
ZoneB containing WWNs 20:00:00:05:1e:ed:18:c3, 50:05:07:61:00:22:18:9b, and
50:05:07:61:00:1b:62:ed
Cfg1 containing ZoneA only
Cfg2 containing ZoneA and ZoneB
4. Use the <get-config> RPC on the <zoning>/<defined-configuration> node to retrieve and verify
the defined configuration.
5. Use the <edit-config> RPC on the <zoning>/<enabled-configuration> node to enable Cfg2.
6. Use the <get-config> RPC on the <zoning>/<enabled-configuration> node to retrieve and
verify the enabled configuration.
The following example RPC retrieves available WWNs.
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="629">
<nca:action xmlns:nca="http://tail-f.com/ns/netconf/actions/1.0">
<nca:data>
<show xmlns="urn:brocade.com:mgmt:brocade-common-def">
<name-server xmlns="urn:brocade.com:mgmt:brocade-nameserver">
<detail>
<rbridge-id>66</rbridge-id>
</detail>
</name-server>
</show>
</nca:data>
</nca:action>
</rpc>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="629">
<name-server xmlns="urn:brocade.com:mgmt:brocade-nameserver">
<nameserver-portid>016400</nameserver-portid>
<nameserver-portname>10:00:00:05:1E:ED:95:38</nameserver-portname>
<nameserver-nodename>20:00:00:05:1E:ED:95:38</nameserver-nodename>
(output truncated)
The following example RPC creates the defined configuration.
?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="630" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
Przeglądanie stron 160
1 2 ... 156 157 158 159 160 161 162 163 164 165 166 ... 621 622

Komentarze do niniejszej Instrukcji

Brak uwag