Forum Discussion
cxcal_18687
Nimbostratus
Oct 24, 2007iRules Debugging Tools ?
Is there any tools available to debug iRules during its use?
I'm new to the F5 world!
Thanks.
transmission_co
Oct 25, 2007Historic F5 Account
Welcome cxcal. I don't think so, personally I usually use log statements to debug rules. For example:
log "Running. Client: " + client_addr + " Host: " + http_host + " URI: " + http_uri
if (http_host == "daleiscool") {
log "Client " + client_addr + " sent to spool"
use pool spool
}
else {
log "Client " + client_addr + " request discarded"
discard
}Then after I hit it, I look over in /var/log/bigip and see logs like this
Oct 24 18:01:13 464-1 kernel: RULE test_rule - Running. Client: 192.168.0.69 Host: dalearecool URI: /gtmtracker/report.rb
Oct 24 18:01:13 464-1 kernel: RULE test_rule - Client 192.168.0.69 request discarded
Or this
Oct 24 18:00:59 464-1 kernel: RULE test_rule - Running. Client: 192.168.0.69 Host: daleiscool URI: /gtmtracker/report.rb
Oct 24 18:00:59 464-1 kernel: RULE test_rule - Client 192.168.0.69 sent to spool
- Dale
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
