Forum Discussion
JQUINONES82NB
Nimbostratus
Jan 11, 2019LTM script modification
Was wondering if a SED Guru could help me but looking to transform a certain lines of configs in my f5 configuration using bash. i will have another file with an ip address mapping to do modificatio...
JQUINONES82NB
Nimbostratus
Jan 11, 2019cat test.txt | sed 's/1.1.1.1/4.4.4.4/g' | sed 's/}.*/}}}/' | sed 's/members/members add/g' | sed 's/ltm pool/tmsh modify ltm pool/g'
tmsh modify ltm pool test_pool { members add { 4.4.4.4:8004 { address 4.4.4.4 session user-disabled state user-down }}}
This will add the host into the pool
I will have to check out how I will do it with two ips on the same line now.
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
