Forum Discussion

Anush's avatar
Anush
Icon for Nimbostratus rankNimbostratus
Jun 01, 2015

egrep command

hi Experts,

 

wondering any egrep command out there which can grep virtual name, destination ip, Pool members and client-ssl profile name out of ltm config

 

I had tried this tmsh show ltm virtual detail | egrep -i "Virtual Server:| Destination | Ltm::Pool Memb" | grep -v Reason

 

and it works for virtual name, destination ip, Pool members but not for client-ssl profile name.

 

Thanks

 

4 Replies

  • it works for virtual name, destination ip, Pool members but not for client-ssl profile name.

    have you added clientssl in the egrep pattern?

    [root@ve11a:Active:In Sync] config   tmsh show ltm virtual detail | egrep "Virtual Server: | Destination | Ltm::Pool: | Ltm::Pool Member: | Ltm::ClientSSL Profile" | grep -v "Destination IP Bypasses"
    Ltm::Virtual Server: bar
      Destination      : 172.28.24.10:443
      | Ltm::Pool: foo
         | Ltm::Pool Member: 200.200.200.101:80
      | Ltm::ClientSSL Profile: clientssl
    Ltm::Virtual Server: fwd
      Destination      : any:any
    
    • Anush's avatar
      Anush
      Icon for Nimbostratus rankNimbostratus
      work as a charm :) I was trying following command. I forgot to put ":" after Pool Mem tmsh show ltm virtual detail | egrep -i "Virtual Server: | Destination | Ltm::Pool Mem | Ltm::ClientSSL Profile" | grep -v Reason Thanks for your help
  • it works for virtual name, destination ip, Pool members but not for client-ssl profile name.

    have you added clientssl in the egrep pattern?

    [root@ve11a:Active:In Sync] config   tmsh show ltm virtual detail | egrep "Virtual Server: | Destination | Ltm::Pool: | Ltm::Pool Member: | Ltm::ClientSSL Profile" | grep -v "Destination IP Bypasses"
    Ltm::Virtual Server: bar
      Destination      : 172.28.24.10:443
      | Ltm::Pool: foo
         | Ltm::Pool Member: 200.200.200.101:80
      | Ltm::ClientSSL Profile: clientssl
    Ltm::Virtual Server: fwd
      Destination      : any:any
    
    • Anush's avatar
      Anush
      Icon for Nimbostratus rankNimbostratus
      work as a charm :) I was trying following command. I forgot to put ":" after Pool Mem tmsh show ltm virtual detail | egrep -i "Virtual Server: | Destination | Ltm::Pool Mem | Ltm::ClientSSL Profile" | grep -v Reason Thanks for your help