Forum Discussion
Arjan_128616
Nimbostratus
Oct 10, 2013icontrol add nodes to configuration
Is it possible to add nodes to the F5 configuration with icontrol and perl. I can not find a function to do this.
Will_Longo
Altostratus
Oct 10, 2013You're looking for perl but in what i've seen the api is close enough that perhaps this powershell code will be of use to you.
(Get-F5.iControl).LocalLBNodeAddress.create( (,'192.168.1.1'), (,0) )
(Get-F5.iControl).LocalLBNodeAddress.set_screen_name( (,'192.168.1.1'), (,'testnode' ) )
$nodeaddress = New-Object -TypeName iControl.LocalLBMonitorIP;
$nodeaddress.address_type = "ATYPE_STAR_ADDRESS"
$nodeaddress.ipaddress = '192.168.1.1'Here is the API reference I used
https://devcentral.f5.com/wiki/iControl.LocalLB__NodeAddress.ashx https://devcentral.f5.com/wiki/iControl.LocalLB__NodeAddressV2.ashx
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