Forum Discussion

bentan_12470's avatar
bentan_12470
Icon for Nimbostratus rankNimbostratus
Jan 23, 2014

LTM 100 VIPS setup

Hi,

 

Is there an easy way to setup 100 VIPS with HTTP with script on LTM? At the moment I can only do this manually one by one...

 

Ben

 

3 Replies

  • James_Deucker_2's avatar
    James_Deucker_2
    Historic F5 Account

    Depends on the version. For v11+ use iApps

     

    http://www.f5.com/products/technologies/iapp/ https://devcentral.f5.com/iapps

     

    You can use tmsh scripts in v10+ https://devcentral.f5.com/tmsh/articles

     

    or in v9 you can script "b" commands with bash.

     

  • In the Advanced shell...

    for n in {1..100}; do tmsh create /ltm virtual vs_myvirtual_${n} destination 10.10.1.${n}:80 profiles add { tcp } pool none; done
    

    This will create 100 virtual's starting at 10.10.1.1 using port 80 with no pools associated with them. If you want pools do the same kind of thing then run the command above with an updated pool name.

    • Kevin_Davies_40's avatar
      Kevin_Davies_40
      Icon for Nacreous rankNacreous
      Hi, if this solved your problem can you tick the box to the left of the post that provided the solution :-)