Forum Discussion
Big-IQ snapshot management
With the help of the f5 support team, we were able to pinpoint and successfully execute the python script we intended to accomplish this task.
For those of you that might encounter this issue (or similar) I'll post here the solution I created to run Bash commands from python script.
Basically the task was to (via python) list all the ASM snapshots, select the ones older than 90 days and the delete them.
Since the solution for listing ASM's snapshots was to use the following f5's Bash command:
#restcurl -u admin:admin /cm/asm/tasks/snapshot-config/?\$select=endDateTime,id
Of course, in a python script you cannot use the above command as it is, you need to create a command structure using subprocess library for which we figure this out:
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com