on
09-Mar-2015
13:50
- edited on
05-Jun-2023
22:32
by
JimmyPackets
Problem this snippet solves:
This is a utility created for the purpose of producing large numbers of virtual servers, including pools. This was created to make our testing efforts easier.
For MakeVips and DeleteVips to work, the following files need the following edits:
How to use this snippet:
Add Virtual Servers
MakeVips.rb namePrefix numberOfVIPs vipStartIP port ipsPerPool poolStartIP
This will create numberOfVIPs virtual servers on the BIG-IP. These virtual servers will have names that begin with namePrefix. Each VIP will answer on its own IP address beginning with vipStartIP and counting up. The IP addresses roll over at their boundaries. Every VIP will answer on the specified port. Every VIP will have its own unique pool containing ipsPerPool number of IP addresses as members. These nodes begin at poolStartIP IP address and count up just as the VIP IP addresses do. There will be numberOfVips multiplied by ipsPerPool number of nodes created by this utility.
Delete Virtual Servers
DeleteVips.rb namePrefix numberOfVIPs
This will delete the first numberOfVIPs virtual servers from the BIG-IP beginning with namePrefix, along with the pools associated with those virtual servers, assuming that they were created with the same utility as described above.