Problem this snippet solves:
These Perl iControl scripts allows for the creation and deletion of HTTP iApps. It is based on another DevCentral script of similar function, though this version is further developed as follows:
- Allows for an arbitrary number of pool members to be specified
- Allows for a small number of configuration parameters to be specified (monitor send/receive, virtual server/pool member ports)
- Saves the BIG-IP configuration to disk once the iApp has been created
- Provides a “usage” statement and utilizes Getopt to handle command line options:
Code :
Usage:
To CREATE an app:
script-name --appname <application name=""> --virtualaddress <virtual server="" address=""> \
[--virtualport <virtual server="" port="">] \
[--poolport <pool member="" port="">] --poolmembers <comma delimited="" list="" of="" pool="" members=""> \
[--monitor_send <"monitor send string">] [--monitor_receive <"monitor expect string">]
To DELETE an app:
script-name --appname <application name=""> --delete
Virtual server port and pool member port default to 80 if not specified
Monitor Send String defaults to "/" and Recieve String defaults to blank value</application></comma></pool></virtual></virtual></application>