Forum Discussion
Jason_40769
Nimbostratus
Nov 14, 2014Editing Virtual server IPs via script
Hey guys! I have a BIG-IP LTM running version 11.6. I need to create a one time script that I can change all the IP addresses of my Virtual servers quickly. We are changing our IP Block and want t...
shaggy
Nimbostratus
Nov 14, 2014The TMSH command to modify a virtual server's IP address is:
modify ltm virtual vs-name destination 1.2.3.4:80
This might help you generate the commands (run in bash):
tmsh list ltm virtual destination | tr '\n' ' ' \
| sed 's/ \+/ /g;s/ltm virtual/\ntmsh modify ltm virtual/g;s/nation 1\.1\.1/nation 2.2.2/g';echo
where 1.1.1 are the old octets being replaced with 2.2.2
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