Forum Discussion
Scott_Jarboe_31
Nimbostratus
Aug 07, 2017PowerShell: Duplicate Virtual Server with destination changed
Afternoon,
I'm a PowerShell person looking to do some work on our F5. Specifically, we are being forced to change our public IP's due to a change by our hosting provider. What I want to do is d...
Satoshi_Toyosa1
Sep 04, 2017Ret. Employee
If you just want to change the destination IP address of a virtual, you can use curl from DOS prompt. The example below modifies the destination IP address of the virtual "vs" to 10.0.0.1:80.
curl -sku admin: https://192.168.0.1/mgmt/tm/ltm/virtual/vs -X PATCH -H "Content-type: application/json" -d "{\"destination\":\"10.0.0.1:80\"}"
where 192.168.0.1 is the BIG-IP's management port IP adddress. This is equivalent to
tmsh modify ltm virtual vs destination 10.0.0.1:80.
If you want to do the same for multiple virutals, you can use
for (dos command). e.g., for %vs in (vs1 vs2 vs3) do curl ......
See Download page for the windows version curl.
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
