Forum Discussion
ringoseagull_77
Nimbostratus
Nov 21, 2013Bulk add entries to Data Group List
I need to add a new data group for Office365. The admin has given me a list of 150 allowed IP addresses and networks to add, but the GUI only seems to allow one entry to be added at a time.
I ha...
Kevin_Stewart
Employee
Nov 21, 2013Try this:
With address list like this (address-list.txt):
10.10.10.0/24
10.10.20.0/24
10.10.30.0/24
10.10.40.0/24
10.10.50.0/24
10.10.60.0/24
10.10.70.0/24
10.10.80.0/24
10.10.90.0/24
and a simple Bash script like this:
!/bin/bash
while read p
do
tmsh modify / ltm data-group internal private_net_test records add { $p }
done < address-list.txt
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
