Forum Discussion
Martin_B__246_r
Nimbostratus
Sep 13, 2016list applied Irules for a specified VIP
Hi,
Is there a way to list applied Irules for a specified VIP with Powershell?
Michael_Jenkins
Cirrostratus
Sep 14, 2016In that case, you could use Putty's
Plink.exe to execute the necessary tmsh command, like this:
$f5Host = "f5.example.com";
$f5Cred = (Get-Credential);
$plinkPath = 'c:\PATH\TO\plink.exe';
$vip = "MY_VIP_NAME"; Or blank for all VIPs
$tCmd = "tmsh list ltm virtual $vip rules";
$command = "& `"$plinkPath`" -l ""{0}"" -pw ""{1}"" {2} ""{3}""" -f @($f5Cred.Username, $f5Cred.GetNetworkCredential().Password, $f5Host, $tCmd);
$response = Invoke-Expression $command;
$response;
You'll will have to parse the response to get the data in a more usable format, however.
You could also use the older SOAP based iControl, but I don't have an example for that one.
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