Forum Discussion
jaikumar_f5
Mar 16, 2018MVP
Edit: Updated to capture the persist none's too.
Hope this helps,
tmsh list ltm virtual all all-properties one-line |awk '{for(i=0;i<=NF;i++)if($i=="persist"){p=$(i+1);q=$(i+2);break}; print $3,p,q}' | sed -e "s/{//g" -e "s/policies//g" > vip_with_persistence.csv
You'll get the output saved in the vip_with_persistence.csv file, this will be comma separated file, so you'll be easy to filter & make the changes on the required one's alone.