Forum Discussion
CLI command for VIPs without any pools
Hello All,
We are doing a housekeeping activity in our DC and i need a CLI command that can retrieve the list of Virtual IPs that are not associated with any pool.
It would be better if we can get the output as an excel file in /var/tmp folder.
Please help.
Thanks in Advance
[root@LABBIGIP1:Active:Changes Pending] log # tmsh list ltm virtual pool ltm virtual gre_vs1 { pool gre_vs1 } ltm virtual vs_without_pool { pool none } [root@LABBIGIP1:Active:Changes Pending] log # tmsh list ltm virtual pool | grep "pool none" -B1 | grep ltm | awk '{print $3}' vs_without_pool [root@LABBIGIP1:Active:Changes Pending] log # tmsh list ltm virtual pool | grep "pool none" -B1 | grep ltm | awk '{print $3}' > /var/tmp/vs.list [root@LABBIGIP1:Active:Changes Pending] log # cat /var/tmp/vs.list vs_without_pool [root@LABBIGIP1:Active:Changes Pending] log #
- Leonardo_Souza
Cirrocumulus
[root@LABBIGIP1:Active:Changes Pending] log # tmsh list ltm virtual pool ltm virtual gre_vs1 { pool gre_vs1 } ltm virtual vs_without_pool { pool none } [root@LABBIGIP1:Active:Changes Pending] log # tmsh list ltm virtual pool | grep "pool none" -B1 | grep ltm | awk '{print $3}' vs_without_pool [root@LABBIGIP1:Active:Changes Pending] log # tmsh list ltm virtual pool | grep "pool none" -B1 | grep ltm | awk '{print $3}' > /var/tmp/vs.list [root@LABBIGIP1:Active:Changes Pending] log # cat /var/tmp/vs.list vs_without_pool [root@LABBIGIP1:Active:Changes Pending] log #
- SivaYenduri
Cirrus
Thanks a lot. The first command worked. However it is not working when i try to export the output to a file. The file is not getting created.
and 'awk' is not supported anymore. I had to replace it with grep.
- M_2
Altocumulus
You can also upload qkview to ihealth , that shows all the orphan objects.
- SivaYenduri
Cirrus
Thank you
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