Forum Discussion
Jeremy_Bridges_
Nimbostratus
Dec 05, 2009SCOM F5 Objects Not Consistent with Objects on F5
We have been working with the F5 management pack for a while in our DEV environment and have just set it up in QA. In both environments, we have noticed that the objects that are discovered in SCOM a...
You can add classless subnets using networks and subnet masks:
10.1.2.1 / 255.255.255.192 for example
Aaron
- Oct 17, 2007Try adding comma before the variable and surround it by parenthesis.
$testActiveF5.LocalLBVirtualServer.create(@($Definition), @($WildMask), @($Resources), (,$Profile))
- Mike_Schnorr_64Oct 17, 2007
Nimbostratus
No luck. Here is the whole chunk of code I am using as well as the error message in case it helps anyone.$Definition $Definition = New-Object -TypeName icontrol.CommonVirtualServerDefinition $Definition.address = "192.168.1.1" $Definition.name = "IControlTest" $Definition.port = 80 $Definition.protocol = "PROTOCOL_TCP" $WildMask = "255.255.255.255" $Resources = New-Object -typeName iControl.LocalLBVirtualServerVirtualServerResource $Resources.default_pool_name = "TestPool" $Resources.type = "RESOURCE_TYPE_POOL" $Profile = New-Object -typename iControl.LocalLBVirtualServerVirtualServerProfile $Profile.profile_name = "http" $Profile.profile_context = "PROFILE_CONTEXT_TYPE_ALL" $testActiveF5.LocalLBVirtualServer.create(@($Definition), @($WildMask), @($Resources), (,$Profile))
- Mike_Schnorr_64Oct 17, 2007
Nimbostratus
Looks like this works. There is probably a prettier (more PowerShelly) way to do this, but I am going this route for now.$profileArray = new-object "iControl.LocalLBVirtualServerVirtualServerProfile[][]" 1,1 $profileArray[0][0] = $Profile
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