21-Nov-2019
06:42
- last edited on
05-Jun-2023
03:12
by
JimmyPackets
Hi,
I have find a command to extract the configuration of my virtual server on Big Ip
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
21-Nov-2019
07:48
- last edited on
05-Jun-2023
03:12
by
JimmyPackets
You can do something like:
tmsh -c 'cd /YourPartitionNameHere; list ltm virtual {pool destination}'
21-Nov-2019 08:14
Thanks ! It's work