Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to re-ip about 600 servers, which is bad enough by itself, but I've automated the entire process except for one part: F5 configuration.

In all the documentation I can find, there is nothing about changing a node's IP address via the SOAP interface, it seems to be impossible. Most people suggest using sed tricks on exported config files and reimporting them, but that's much too brittle.

I'm considering doing a delete-create-re-add-to-pools dance via SOAP, but that also seems fragile. Is there a better way?

Note: I need to do this on both v10 and v11 of BigIP.

share|improve this question
    
Python and Expect? (assuming there's a telnet/ssh interface)... –  Tom O'Connor Jan 6 at 14:55
    
There is, and there's tmsh for making changes. But I also didn't find any tmsh function for changing IP addresses. –  Dennis Kaarsemaker Jan 6 at 14:57
    
How about Selenium and the web interface? :P –  Tom O'Connor Jan 6 at 15:06
1  
So how the buggering fuck are they configured in the first place? –  Tom O'Connor Jan 6 at 16:23
1  
Deleting and readding is the way to go. First you have a node, which is an IP. Then you have a service which is an IP:Port combo. Finally you assign that service to a vserver.. changing the IP and 'doing the right thing' all the way through the configuration would involve some mind-reading. This would be far more fragile than delete/readd. The IP is the important part of the node configuration, the name is just for human use. –  yoonix Jan 6 at 18:36

1 Answer 1

up vote 4 down vote accepted
+50

So, deleting and re-adding it is. And of course it's different in v11 than it is in v10. I've created a script that uses the F5 SOAP API and the python 'suds' library to do this. It will delete/recreate nodes and add them to the pools they were in. The pool ratio is also remembered, but no other setting is.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.