Forum Discussion
AndyC_86542
Nimbostratus
Feb 02, 2009Restoring from Archive
I've had a problem with archives (.ucs files) that won't restore (error: bad command "when LB_SELECTED {"). I've managed to restore an older archive and then compare the .im files in the recent and ol...
AndyC_86542
Nimbostratus
Feb 04, 2009I was restoring the UCS onto the same F5 that generated it. There were no firmware upgrades between generation and attempted restore.
The iRule starts like this (the bold bit is what appeared in the restore error):
rule persistence-test {
when RULE_INIT {
set ::asm_bypass 0
set ::cookieName "wibble"
set ::paramName "wibble"
}
when CLIENT_ACCEPTED {
log local0. "[IP::client_addr]:[TCP::client_port]:[persist lookup source_addr {"172.22.20.221" pool pool-name}], new connection"
}
when LB_SELECTED {
log local0. "[IP::client_addr]:[TCP::client_port] LB persist:[LB::persist], node selected"
log local0. "[IP::client_addr]:[TCP::client_port] LB decision:[LB::server], node selected"
}
when HTTP_REQUEST {
...
I suspect that the problem was the [LB::persist] for no other reason than the iRule editor doesn't recognise it properly as a keyword (although it saved and ran fine).
Cheers
Andy
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