Forum Discussion
AJ_102868
Nimbostratus
Jun 05, 2013Get actual IP address from a poolmember in Powershell
I'm using powershell to query pool members. I'm able to pull the address and port form get_member_v2, but address is not actually IP address, but Node Name. How can I get the actual IP address for a ...
AJ_2559
Nimbostratus
Jun 06, 2013Thanks!. Here's what I ended up doing. I made a function called Get-PoolMemberIP:
function Get-PoolMemberIP()
{
param(
$Member = $null
);
$MemberIP = (Get-F5.iControl).LocalLBNodeAddressV2.get_address( @($Member) );
$MemberIP;
}
Then I call that and set it to a variable in my foreach members loop
foreach ($member in $members) {
$memberipadd = Get-PoolMemberIP -Member $member.address;
$stream.WriteLine($pool+","+$member.address+","+$memberipadd+","+$member.port);
}
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