Forum Discussion

smp_86112's avatar
smp_86112
Icon for Cirrostratus rankCirrostratus
Sep 04, 2012

list all virtuals with cookie persistence profile applied

Can someone help me with the command to list all Virtual Servers with a specific (Cookie) persistence profile applied?

 

 

 

  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus

    Assuming that your VS don't include ' cookie ' anywhere else... You can do

    
    [root@mini-me-ltm:Active] config  tmsh list ltm virtual one-line  | grep ' cookie '
    ltm virtual vs-test { description "Test Virtual Server" destination 10.81.8.1:http ip-protocol tcp mask 255.255.255.255 persist { cookie { default yes } } pool vs-test-pool profiles { analytics { } http { } request-log { } tcp { } } vlans-disabled }
    [root@mini-me-ltm:Active] config  
    

    H

  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus
    Sorry, that command didn't come out very well in the code section... It;s

     

     

    tmsh list ltm virtual one-line | grep 'persist { cookie '

     

     

    H