The configSnapshotManagerP policy manages the transfer of configuration snapshot archives between a controller and a configured remote location.
-
Upload mode transfers a snapshot from the controller to a remote location.
-
Download mode transfers a remotely stored export archive to the controller as a snapshot.
-
The configRsRemotePath relation identifies the remote location for the transfer.
-
You can manage snapshot transfers by using the NX-OS-style CLI, GUI, or REST API.
Snapshot Manager Policy Behavior
The snapshot manager policy requires a policy name, a snapshot file name, a transfer mode, and a remote-path relation. To run the transfer, set the adminSt property to triggered.
Note
Recurring snapshots are available at .
NX-OS-Style CLI Snapshot Transfer Example
The following example uploads a snapshot from the controller to a remote location:
apic1(config)# snapshot upload policy-name
apic1(config-upload)# file snapshot-file-name
apic1(config-upload)# remote path remote-path-name
apic1(config-upload)# exit
apic1# trigger snapshot upload policy-name
Use show snapshot files to identify a snapshot file on the controller.
apic1(config)# snapshot download policy-name
apic1(config-download)# file remote-file-name
apic1(config-download)# remote path remote-path-name
apic1(config-download)# exit
apic1# trigger snapshot download policy-name
GUI Snapshot Transfer Example
To upload a snapshot to a remote location, complete the following actions:
-
In the Config Rollbacks pane, right-click the snapshot file and choose Upload to Remote Location.
The Upload Snapshot to Remote Location dialog box appears.
-
Configure the remote-location information, and click Submit.
To download a remotely stored export archive as a snapshot, complete the following actions:
-
Click the Import icon.
The Import Remotely Stored Export Archive to Snapshot dialog box appears.
-
In the File Name field, enter the name of the remote archive.
-
From the Import Source drop-down list, choose a remote location. To configure a remote location, select Or create a new one.
-
Click Submit.
REST API Snapshot Transfer Example
The following example creates and triggers a snapshot upload or download policy:
<configSnapshotManagerP name="policy-name"
fileName="snapshot-file-name" mode="upload|download"
adminSt="triggered">
<configRsRemotePath
tnFileRemotePathName="remote-path-name"/>
</configSnapshotManagerP>