Forum Discussion

immu's avatar
immu
Icon for Altostratus rankAltostratus
Sep 21, 2017

export/extract all the VS

Hi All,

 

Can any one let me know how can I export/extract all the VS and corresponding backend pool members details in xlsx file

 

Thanks, Imran

 

1 Reply

  • Hi Imran

     

    I update the following script (Script to create csv file have VS name, VS IP, Pool name, Pool Members name => until they using iApps to create the VS and I think also will work with partition), could you please send your feedback.

     

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

     

    Thanks Ahmed