Forum Discussion

raytapay_75679's avatar
raytapay_75679
Icon for Nimbostratus rankNimbostratus
May 18, 2016
Solved

Input File Containing VIPs for Deletion int TCL Script

I have a long list of VIPs to delete and looking at the sample scripts on Dev Central I only see that the scripts pull the whole list of VIPs and then the operations are done on them. Preferably, I w...
  • Hannes_Rapp_162's avatar
    May 18, 2016

    I think that a basic bash script that invokes tmsh commands would be better for your task

    For a preparation, format your file as follows with a list of valid tmsh commands (vi search & replace can help with preparation):

    tmsh delete ltm virtual vsname1
    tmsh delete ltm virtual vsname2
    tmsh delete ltm virtual vsname3
    tmsh delete ltm virtual vsnameX
    

    Save it as 'deletevs.sh' file

    • Execute the file as bash script
      bash deletevs.sh -x
      , and wait until the labour is done