Forum Discussion
Jean_Mamène
Nov 21, 2019Cirrus
Help specific partition in command line
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
- gersbahCirrostratus
You can do something like:
tmsh -c 'cd /YourPartitionNameHere; list ltm virtual {pool destination}'
- Jean_MamèneCirrus
Thanks ! It's work
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects