-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFE] collect orphaned objects #18
Comments
notes from Hyde: irules not referenced by |
User would like some visibility into what objects have been orphaned or not in use.
Since we can't rely on the system for confirming most of this, we have to define all the things we need to search
Objects to search for orphaned status
irules not referenced by
node not referenced by:
monitors not referenced by:
pools not referenced by:
files (certs/keys/iFiles/ExternalMonitors) not referenced by:
snat-pool not referenced by:
Phase-2
could look deeper for all the different profiles/reference/inheritance options.
Othere Efforts
Jon has started putting together some basic scripts that work directly with a device
Implementation
I see the following approaches:
1. Find objects not in application extraction (top down approach)
2. Tag referenced objects as part of the application extraction process
3. Filter through all the object groups for direct references (bottom up approach)
Output
The output of this would be a list of all the objects that are orphaned, but could also provide another array of commands to delete those objects... :)
The delete function/output is probably best left for the vscode-f5 extension where this data is typically presented. This delete function could also be used for the extracted applications (to delete applications being extracted and moved), so feed it a list of tmos parent objects (or object names), then return a list of commands to delete those objects. (would we need to sort and/or group the objects?)
Additional thoughts
Was talking with a customer a while back, and the approach then was to crawl the API for objects and stats, then periodically reset the stats and recollect all the information again. After a couple of iterations the information could be plotted in a dashboard and show, using stats, which object were not actually being used.
Just wanted to mention this to track the idea of confirming orphaned status with stats, but probably little bang for the processing buck when the other options fit the end goal
The text was updated successfully, but these errors were encountered: