Pool Sync from DNS
Problem this snippet solves:
This is an iApp that collects some information from the user with the intent of keeping the members of a GTM or LTM pool object synchronized against the result of a DNS lookup. Users provide:
- name of the pool
- type: gtm or ltm
- if gtm, what datacenter it should be in
- what nameserver to query
- how often to query
- what hostnames to lookup
- what port to use when creating the pool members
This creates a periodic handler that runs at the specified interval, using the results of "dig" against the specified nameserver for the hostnames to create/modify the specified pool.
Note: For the sake of keeping the demo simple, the script doesn't handle error/empty/timeout responses from the nameserver.
How to use this snippet:
This iCall script requires v11.4 or higher.