Forum Discussion
Sergei_Genchev_
Jan 24, 2015Nimbostratus
How to efficiently delete a node from LTM?
Hi,
I am trying to delete a node from F5 LTM as part of our decommission process. I cannot delete a node until I remove all pool members that refer to it. The only way I know how to get pool mem...
Michael_Jenkins
Jan 25, 2015Cirrostratus
If you wanted to find out what pools are using a specific node (through name or ip address) with iControlREST and wanted to user PowerShell, you could use this script...
Get the credentials for the BIG-IP
$cred = Get-Credential;
iControlREST url for pools (expand sub references)
$url = "https://example.com/mgmt/tm/ltm/pool?expandSubcollections=true"
Get the pools
$pools = Invoke-RestMethod -Method GET -URI $url -Credential $cred;
Specify which node you're looking for (name or ip)
$node = "1.1.1.1";
Filter the pools based on containing the specified node (wildcard search on name and ip)
$poolsF = @($pools.items | ?{$_.membersReference.items | ?{ $_.name -like "*$($node)*" -or $_.address -like "*$($node)*" } };)
Get an array of the pool names containg the node
$poolNames = $poolsF | Select -ExpandProperty name;
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