Forum Discussion
Script to find virtual servers with connection mirroring enabled
Hi All,
I am working on to turn off connection mirroring on all the legacy VIPs which are causing application performance degradation. Is there a way to automate and discover virtual server with connection mirroring enabled via script? and also disable automatically?
Thanks
8 Replies
- Dario_Garrido
Noctilucent
Hello Macaron.
ā
You can use some of these commands
## Check Mirroring Enabled tmsh show sys connection type mirror tmsh show sys ha-mirrorRegards,
Dario.
- Macaron
Nimbostratus
The first command returned 1200 plus connection records for 37 VIPs in total on F5. I need to identify VIPs which has connection mirroring enabled. Is there any command for that?
- Dario_Garrido
Noctilucent
Hello Macaron.
You can check what SNAT IPs are mirroring with the next command:
tmsh list ltm snat mirrorThe same for those VS that are mirroring their connections:
tmsh list ltm virtual mirrorAnd finally, the same for those VS that are mirroring their persistence records:
tmsh list ltm virtual mirror persist { $(tmsh list ltm persistence one-line all-properties | grep "mirror enabled" | awk '{print$4}') }For disabling mirroring, you just need to modify the 'mirror' option as expected.
REF - https://support.f5.com/csp/article/K13478
Please, don't forget to mark this answer as the best to help me for this contribution.
Regards,
Dario.
- Stan_PIRON_F5
Employee
if you want to disable it on all VS :
modify ltm virtual all mirror disabled