Forum Discussion

Seckin_149390's avatar
Seckin_149390
Icon for Nimbostratus rankNimbostratus
May 26, 2014

Virtual Server Search Using Profile on it

Hi,

 

I have 50 virtual servers on the system and i am using web acceleration profile some of them (virtual servers).

 

I want to learn that which virtual server uses web acceleration profile among them ? Is there any CLI command about this ?

 

Kind Regards.

 

5 Replies

  • just an example. it may not be the best way to do it anyway.

     there are 3 virtual servers
    
    [root@ve11a:Active:In Sync] config  tmsh list ltm virtual
    ltm virtual bar {
        destination 172.28.24.10:443
        ip-protocol tcp
        mask 255.255.255.255
        pool foo
        profiles {
            clientssl {
                context clientside
            }
            http { }
            tcp { }
        }
        rules {
            qux
        }
        source 0.0.0.0/0
        source-address-translation {
            type automap
        }
        vs-index 32
    }
    ltm virtual bar3868 {
        destination 172.28.24.10:3868
        ip-protocol tcp
        mask 255.255.255.255
        pool foo3868
        profiles {
            diameter { }
            tcp { }
        }
        source 0.0.0.0/0
        source-address-translation {
            type automap
        }
        vs-index 20
    }
    ltm virtual fwd {
        destination any:0
        ip-forward
        mask any
        profiles {
            fastL4 { }
        }
        source 0.0.0.0/0
        source-address-translation {
            type automap
        }
        translate-address disabled
        translate-port disabled
        vlans {
            internal
        }
        vlans-enabled
        vs-index 3
    }
    
     filter virtual server which has http profile
    
    [root@ve11a:Active:In Sync] config  tmsh list ltm virtual all one-line | grep http | awk '{ print $3 }'
    bar
    
    
  • Hi nitass,

     

    With that way, Can we filter virtual server which has web acceleration profile,

     

    tmsh list ltm virtual all one-line | grep " web acceleration " | awk '{ print $3 }'

     

    Thanks.

     

  • With that way, Can we filter virtual server which has web acceleration profile

     

    in my example, http is profile name (not profile type). what it does is simple - list virtual server configuration in one line (tmsh ...), filter only line containing profile name (grep ...) and then display only virtual server name (awk ...).

     

  • Thanks nitass,

     

    Actually, i don't want to learn specific virtual server associated with the web accelaration profile.

     

    I want to learn which virtual servers use this web acceleration profile on the configuration. I think your CLI command will work for me,

     

    Thanks again.

     

  • i don't want to learn specific virtual server associated with the web accelaration profile.

     

    the tmsh command list all virtual servers (i.e. not specific virtual server). in short, output will be virtual server names which use the profile name you specify.