Forum Discussion

Greg_Black's avatar
Greg_Black
Icon for Altostratus rankAltostratus
Mar 16, 2018

Need to run a report for "Persistence Profile" selection

I have a couple of F5s in a fail-over configuration running running 12.1.3... I have about 9 pages of VIPs configured, and I need to ensure I have "cookie" selected for the persistence profile. I have run across a couple of VIPs that do not have the cookie selected. Is it possible to review the BIGIP.conf file to run a report and see which VIPs need to be updated, or is there an easier way of grabbing a report?

 

Thanks!

 

1 Reply

  • 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.