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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 622
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 158
Network OS NETCONF Operations Guide 127
53-1003231-02
Zone configuration management
10
1. Empty the transaction buffer by either committing the transaction to nonvolatile memory or
aborting the transaction.
To save the defined configuration to nonvolatile memory, issue the <edit-config> RPC to
configure the <zoning>/<enabled-configuration> node in the
urn:brocade.com:mgmt:brocade-zone namespace and set the value of the <cfg-action>
element to “cfg-save”.
To remove all uncommitted operations from the database, issue an <edit-config> RPC to
configure the <zoning>/<enabled-configuration> node in the
urn:brocade.com:mgmt:brocade-zone namespace and, in the <cfg-action> element,
specify “cfg-transaction-abort”.
2. Issue the <bna-config-cmd> RPC to copy the running configuration to a specified destination
file.
The following example commits the zoning transaction and saves the defined configuration to a
remote file.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="626" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<zoning xmlns="urn:brocade.com:mgmt:brocade-zone">
<enabled-configuration>
<cfg-action>cfg-save</cfg-action>
</enabled-configuration>
</zoning>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="626" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="212">
<bna-config-cmd xmlns="urn:brocade.com:mgmt:brocade-ras">
<src>running-config</src>
<dest>https://[email protected]:passphrase/cfg/archiveMay7.txt</dest>
</bna-config-cmd>
</rpc>
<rpc-reply message-id="212" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<session-id xmlns="urn:brocade.com:mgmt:brocade-ras">6</session-id>
<status xmlns="urn:brocade.com:mgmt:brocade-ras">in-progress</status>
</rpc-reply>
Restoring a configuration from backup
When you restore a saved configuration to the running configuration, the zone configuration
identified in the copied file as the enabled configuration becomes the new enabled configuration.
This operation updates the defined configuration in RAM.
Przeglądanie stron 158
1 2 ... 154 155 156 157 158 159 160 161 162 163 164 ... 621 622

Komentarze do niniejszej Instrukcji

Brak uwag