Forum Discussion

Jean_Mamène's avatar
Nov 21, 2019

Help specific partition in command line

Hi,

I have find a command to extract the configuration of my virtual server on Big Ip

https://devcentral.f5.com/s/question/0D51T00006i7ZZS/export-f5-ltm-virtual-servers-and-pool-members-to-excel-or-csv

But on my Big IP i have 3 partitions, /Common, /HorsProd, /Production

When I use this command I extract only for the Common partition.

tmsh list ltm virtual {pool destination} | awk '/virtual/{printf "%s,",$3}/destination/{printf "%s,",$2}/pool/{printf "%s,",$2; system("tmsh list ltm "$0" {members} | awk '\''/:/{gsub(/ /, \"\", $0);gsub(/{/, \",\", $0);printf $s,$1}'\''");printf "\n"}' > /tmp/virtuals.csv

I want to specify the partition on my command.. How I can do that ?

Regards