Forum Discussion
Jay_Austad_7258
Nimbostratus
Aug 03, 2006how to make a simple perl script to enable/disable nodes?
I have one for version 4.5 that does a ton of other stuff also, but I only really need the functionality to enable and disable nodes. The current script is called like this:
BigIPControl.pl -B 10.4.0.1:443 -S 10.4.0.200:80 -O Disable
-B specifies the BigIP, and -S specifies the node.
Are there any sample scripts written for version 9 iControl that I can take a look at? The online iControl API reference on this site keeps giving me a 404 not found.
2 Replies
- Did you check out the iControl CodeShare? There are samples for toggling the state of pool members and of Nodes.
Keep in mind, that in BIG-IP v9, there is not longer the concept of a "node server" (ie. addr:port) at a global level. There are now only node objects (addr) or pool members (addr:port within the context of a pool).
So, to disable a addr:port combination, it will have to be in the context of a pool. You can still disable a node address, and it will disable all pool members of that same address.
Look for:
[perl - 9.x] Toggle a pool member on a BIG-IP
[perl - 9.x] Toggle a node on a BIG-IP
http://devcentral.f5.com/Default.aspx?tabid=38
Click here
BTW, where did you find a link to an online iControl API reference? I didn't know that existed and if so I'd like to get it removed.
-Joe - Jay_Austad_7258
Nimbostratus
I did not see the codeshare, I will look through that.
The reference I found was when I put my old 4.5 script through the migration tool. It then shows you the version 9 methods, but when you click on them, it gives you a 404. The 4.5 methods are there though.
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
