Forum Discussion
rezilient_76720
Feb 28, 2014Nimbostratus
Find a node using LocalLBNodeAddressV2 based on IP address (not name)
Hello.
We have some iControl PowerShell scripts that we're using with our Private Cloud (IaaS) platform to add/remove VIPs, Pools and Nodes. Previously we were using LTM v10 so we couldn't set a f...
Mar 01, 2014
Hi mate!
I'd do something like this:
Cache the nodelist and address list
$Global:nodelist = $f5.LocalLBNodeAddressV2.get_list()
$Global:nodeaddresses = $f5.LocalLBNodeAddressV2.get_address($nodelist)
function ip2name($ip){
$indexofip = 0..($Global:nodeaddresses.Count - 1) | Where { $Global:nodeaddresses[$_] -eq $ip }
$Global:nodelist[$indexofip] <---- name of the node you want to delete
}
$f5.LocalLBNodeAddressV2.delete_node_address(ip2name(""))
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