Forum Discussion
Finding All Objects Associated with Another Object
What is the easiest way to locate all objects associated with other configurations? For example - If I wanted to see everything that is associated with the node "NODE-1" to like virtual servers and pools how could I do that?
I would like to be able to easily verify that something is not being used by other places in the configuration before I go deleting it.
2 Replies
- JRahm
Admin
The findconf tmsh script in the codeshare is a good place to start. You can refine from there if necessary.
- Hannes_Rapp
Nimbostratus
Another great way of doing it is by using Bash tools in conjunction with TMSH argument 'one-line' which substitutes new-line occurrences in output with spaces. I was mad at myself of not being aware of the one-line argument. Eventually, I discovered it by accident but that didn't happen before having worked with temp proxy files for years
So if I wanted to print out names of all LTM Pools associated with 10.255.255.1 IP node, I would do as follows:
(bash) tmsh list ltm pool one-line | grep 10.255.255.1 | awk '{print $3}' pool_something_443 pool_something_else_443
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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