Creating a snapshot of an OS image
A job with the Snapshot OS Image action copies the active OS image on a device (which may be one or more files) to the OS image library. After the image is in the library, it can be used on future Deploy OS Image actions. If a device's current OS image already exists in the library, the Snapshot OS Image action is skipped for that device.
When a group or realm is selected as the network span, you have the option to run the Snapshot OS Image action in serial or parallel. If the selected devices only have a few different OS image versions, run the Snapshot OS Image action in serial for best performance. Otherwise, BMC Network Automation copies the same image multiple times from each device to BMC Network Automation. If the selected devices have several different OS image versions, run the Snapshot OS Image action in parallel for best performance.
The best performance is achieved when each device in the group has a different OS image version. You might want to create a static group of devices that represent the different OS image versions running in the network and run the action in parallel. This approach stores all production images into the OS Image Library in one request.
For more information about job creation, see Creating a job.
To run a Snapshot OS Image action
- On the Add Job page, select Add Action > Span Actions > Snapshot OS Image.
Enter information in the following fields:
(Optional) Assign an annotation to the action.
Select a realm, group, multiple devices, or a single device for the Snapshot OS Image action. When the Network Span is Realm or Group, you can use Filter Devices to select which devices to include in the action.
When the action is triggered in an event-based Policy, additional options include: Same as Triggering Realm, Same as Triggering Group, Same as Triggering Device.
Select any of the following options:
Run in Parallel
For improved efficiency, BMC Network Automation can execute the Snapshot OS Image action for multiple devices in the network span concurrently. By default, BMC Network Automation runs up to 20 span actions concurrently. Contact your system administrator if you want to change this default.
Use Auxiliary Interface
When the selected network span is a device, this option selects the auxiliary interface for connecting to the device. When this option is not selected or when the span is not a device, the primary interface is used.
Use Remote Image File Server This option appears if remote file servers are defined. Choose this option to copy the image files to the remote file server associated with each device (instead of copying the files into the system's local database). You must also choose a value for Remote File Transfer Mode to specify how the files are to be copied from the device to the remote image file servers. The remote image file servers must be running the appropriate file transfer service.
- Click OK to add the action to the job.