Forum Discussion
Zdenda
Cirrus
Oct 21, 2013Show members of Datagroup - PowerShell
Hi, I can't find the way to display members of Address datagroup. I am trying command like this:
$Class = (Get-F5.iControl).LocalLBClass
$Class.get_address_class_member($Class.get_address_class((,...
Zdenda
Cirrus
Nov 05, 2013I tuned the code a bit and this one shows the expected results, finally :-):-)
$DataGroup = "my_group"
$ClassInfo = (Get-F5.iControl).LocalLBClass.get_address_class($DataGroup);
$name = $ClassInfo[0].name;
Write-Host "Class: $name";
$members = $ClassInfo[0].members
foreach($member in $members) {
$a = $member.address
Write-Host " $a";
}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