Forum Discussion
sriramgd_111845
Nimbostratus
May 20, 2010Programmatically read Log from powershell icontrol?
Hi,
I am trying to develop a unit-tester for some of our iRules.
Is it possible to programmatically read the log (say the output of an irule log method) from powershell iControl?
The idea is to modify an iRule to add log statements to it, create this test rule on the F5, generate some traffic for test, and then read the log entries.
I have the first part of the script ready, am not able to figure out a way to read the log from my client box through iControl. Is this possible? Is there any other way.
- I've been struggling with this for a while now too as I've been trying to get log viewing in the iRule Editor. The problem is that with iControl the mechanism is to use the ConfigSync.download_file command but due to the way the method works with paging (you request chunks at a time), you may never get to the end of the file as it's ever growing. We really need a "tail" like command to get you the last "n" lines from a file but that isn't in there yet. The only option I can think of is to find a SSH client library for PowerShell and use that to remotely get the contents of the log file. Anyone have other ideas?
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