Forum Discussion

Khaled_HA's avatar
Khaled_HA
Icon for Altocumulus rankAltocumulus
Aug 18, 2023

How to get Virtual servers associated with a specific SNAT pool

Hi Everyone, I need your help as I am trying to get the VSs that are associated with a specific SNAT pool from the command line.   Thanks!
  • JRahm's avatar
    JRahm
    Aug 21, 2023

    Hi Khaled_HA, you can use awk to print only the virtual name, so to expand on what was provided earlier:

    tmsh list ltm virtual one-line | grep "pool SNAT_POOL_NAME" | awk '{print $3}'