Forum Discussion
Brandon_Lay_104
Nimbostratus
Jan 13, 2009How do I edit Datagroups via PowerShell
Can someone give me a clue on the method(s) to call for adding strings to datagroups?
Brandon_Lay_104
Nimbostratus
Jan 14, 2009Awesome. that answers a lot of questions. However, I'm actually trying to deal with Data Groups of type Address and thus having difficulty adding a LocalLBClassAddressEntry. I only need to add host entries, not network addresses.
I've gotten thus far...
Begin
$Class = (Get-F5.iControl).LocalLBClass
$AddressClass = New-Object -typename iControl.LocalLBClassAddressClass
$AddressClass.name = "MyAddressGroup"
Here is where I get my ToString error....
$AddressClass.members = ("10.100.100.1")
(Also) If I change it to the following, it seems to want
a network address. Not a host address.
$AddressClass.members = (10.100.100.1)
then presumably I would do this...?
$Class.add_address_class_member(,$AddressClass)
and when I do the following, it just tells me I get
the member is {iControl.LocalLBClassAddressEntry}
rather than the actual member entry
$Class.get_address_class((,"MyAddressGroup"))
End
Help!
-Brandon
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