Forum Discussion

Thiyagu's avatar
Thiyagu
Icon for Cirrus rankCirrus
Aug 25, 2019

LTM command to get the list of VIPs and it is associated SSL profile from all partition

Hello All,

I'm looking for a LTM command which would help to get the list of VIPs and it is associated SSL profile from all partition.

 

Could you please suggest me on this?

 

Regards,

Thiyagu

  • Hi Thiyagu,

    I tried to filter it with grep:

    tmsh
    cd ..
    list ltm virtual recursive | grep -B 1 -E "ltm virtual|context clientside|context serverside"

    If you want to see all-properties:

    tmsh
    cd ..
    list ltm virtual recursive one-line | grep -E "context clientside|context serverside"
  • You can use this

    tmsh list auth partition | grep auth | awk '{print $3}' | xargs -I [] tmsh list ltm virtual /[]/* profiles { $(tmsh list ltm profile client-ssl | grep profile | awk '{ print $4}' | tr '\n' ' ') $(tmsh list ltm profile server-ssl | grep profile | awk '{ print $4}' | tr '\n' ' ') }

    KR,

    Dario.

    • Dario_Garrido's avatar
      Dario_Garrido
      Icon for Noctilucent rankNoctilucent

      Or even better

      tmsh -q -c "cd / ; list ltm virtual recursive profiles { $(tmsh -q -c "cd / ; list ltm profile recursive client-ssl" | grep profile | awk '{ print $4}' | tr '\n' ' ') $(tmsh -q -c "cd / ; list ltm profile recursive server-ssl" | grep profile | awk '{ print $4}' | tr '\n' ' ') }"

      KR,

      Dario.

    • Dario_Garrido's avatar
      Dario_Garrido
      Icon for Noctilucent rankNoctilucent

      You are welcome Thiyagu!

      Please, don't forget to rate our responses 😉