Forum Discussion
How does this cmdlet work? add-f5.ltmvirtualserverrule
Hi,
I'm trying to discover the F5 Icontrol powershell Snapin. But I've no idea how to use it. When I type
ps> add-f5.ltmvirtualserverrule
I get this message:
Add-F5.LTMVirtualServerRule : You must specify either the VirtualServer or VirtualServerItem parameter At line:1 char:28 + add-f5.ltmvirtualserverrule <<<< + CategoryInfo : PermissionDenied: (Input Validation Error:String) [Add-F5.LTMVirtualServerRule], Excepti on + FullyQualifiedErrorId : 2,iControlSnapIn.CmdLet.LTM.VirtualServer.AddLTMVirtualServerRule
Add-F5.LTMVirtualServerRule : You must specify either the VirtualServer or VirtualServerItem parameter At line:1 char:28 + add-f5.ltmvirtualserverrule <<<< + CategoryInfo : PermissionDenied: (Input Validation Error:String) [Add-F5.LTMVirtualServerRule], Excepti on + FullyQualifiedErrorId : 2,iControlSnapIn.CmdLet.LTM.VirtualServer.AddLTMVirtualServerRule
So it looks like some additional parameters are needed.
Since this is a ready to use cmdlet is there some info available how to make this thing work? I'd like to use this to automate a maintenance page on a lot of virtual servers.
4 Replies
- heskez_36146
Nimbostratus
Can someone please reply?
- heskez_36146
Nimbostratus
I'm still enjoying the silence here... - heskez_36146
Nimbostratus
Nevermind, I've found a solution
If you are looking for the arguments, after you type the cmdlet name, hit the tab key and it should cycle through the available arguments. I'll have to test that one out again to find the format for you.
With that said, the majority of those cmdlets were developed for a fixed set of use cases and they don't cover all of the iControl API. To get the broadest coverage, I'd suggest you look at the Get-F5.iControl cmdlet to get an object for the entire iControl API set. Over the years, I've written a lot of articles and samples on how to use the PowerShell library. A good starting point is on the PowerShell Page in the iControl Wiki.
Hope this helps...
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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