File with IP mappings
oldipnewip
1.1.1.12.2.2.1
1.1.1.22.2.2.2
1.1.1.32.2.2.3
1.1.1.42.2.2.4
1.1.1.52.2.2.5
1.1.1.62.2.2.6
1.1.1.72.2.2.7
1.1.1.82.2.2.8
I basically wanted to send the ltm pools a file and then loop through find the ip on the right and then switching it
ltm pool test_pool1 { members { 1.1.1.1:8004 { address 1.1.1.1 session user-disabled state user-down } 1.1.1.2:8004 { address 1.1.1.2 session monitor-enabled state up }
ltm pool test_pool2 { members { 1.1.1.3:8005 { address 1.1.1.3 session user-disabled state user-down } 1.1.1.4:8005 { address 1.1.1.4 session monitor-enabled state up }
ltm pool test_pool3 { members { 1.1.1.5:8006 { address 1.1.1.5 session user-disabled state user-down } 1.1.1.6:8006 { address 1.1.1.4 session monitor-enabled state up }
ltm pool test_pool4 { members { 1.1.1.7:8007 { address 1.1.1.6 session user-disabled state user-down } 1.1.1.8:8007 { address 1.1.1.4 session monitor-enabled state up }
essentially they are doing a datacenter shift of ips on the pool members and I was trying to use sed to construct the command line
I have already been able to sed the virtual ips and snatpools