Forum Discussion
danielc
Cirrus
Jul 11, 2022Mass input/create "Data group list" ?
Hello, Would you please let me know if there is any way to input/create data group in bigup not via the GUI? I am going to create 300+ data group list Thanks
- Jul 14, 2022
Thanks, I already solved this problem by myself and I have already created 300+ data groups.
I just wonder why nobody let me know I can create data group by tmsh command....
create /ltm data-group internal d1051_ip_dc type ip records add { 172.2.3.1/32 {} 172.2.3.2/32 {} }With this command I just able to use excel to lookup the IP address and automatically generate 300+ tmsh commands in one go....then hola....solved.
TMaCEvans_92750
Nimbostratus
Aug 25, 2011I've managed to get all the rules working accept for this one
category archive page: match url="^Archive/([A-Za-z\-0-9.]+)/([0-9]+)/([0-9]+)(/)" url="archive.aspx?cat_id={R:2}&pg={R:3}
} elseif { [scan [HTTP::uri] {/Archive/%[A-Za-z\-0-9.]/%[0-9]/%[0-9]} s1 s2 s3] == 3 } {
scan [HTTP::uri] {/Archive/%[A-Za-z\-0-9.]/%[0-9]/%[0-9]} s1 s2 s3
log -noname local0. "$s1 $s2 $s3"
HTTP::respond 301 Location "http://[HTTP::host]/archive.aspx?cat_id=$s2&pg=$s3"
I'm not sure how to simulate the (+) as when i try add it in i get the following error on the f5
Aug 25 11:15:12 local/tmm err tmm[5040]: 01220001:3: TCL error: NewsRegex - bad scan conversion character "(" while executing "scan [HTTP::uri] {/Archive/%([A-Za-z\-0-9]+)/%([0-9]+)/%[0-9]} s1 s2 s3"
- Jason_NanceMay 24, 2018
Nimbostratus
You almost had it!
pool = mgmt.tm.ltm.pools.pool.load(partition='Common', name='mypool') pool.members_s.members.create(partition='Common', name='mynodename:80')
The secret sauce is in the overloaded
argument - it is really "node_name:service_port".name
The above adds an existing node called "mynodename" to the pool and sets its service port to 80.
- dani_martinez_2May 25, 2018
Nimbostratus
OK! That's right I forgot the port, Thanks!!