iControl 101 - #13 - Data Groups
Hey guys, I am trying to write power shell to add string and value to data group...
i wrote that one with no luck: Initialize- -Hostname 172.16.100.227 -Username admin -Password admin
pull out the names from the string class;
$StringClassA = (Get-;) ); $ValuesAofA = (Get-($StringClassA);
Print out the results
Write-Host "Data Group DNS-DB" Write-Host "IP's:" $StringClassA[0].members Write-Host "Countris" $ValuesAofA[0] $Class = (Get- $StringClass = New-Object -typename iControl.LocalLBClassStringClass $StringClass.name = "Test" $StringClass.members = (".idscs", ".bsmds") $Class.add_string_class_member((,$StringClass)) $ValueClass = New-Object -typename iControl.LocalLBClassValueClass $ValueClass.name = "Test" $ValueClass.members = ("2", "1") $Class.add_Value_class_member((,$ValueClass)) $Class.get_value_class_list()
Can you asist please? Thanks