Forum Discussion
Klaus_Gerthein1
Nimbostratus
Jul 20, 2011Problem with b64decode lindex in Version 10.2.1
Hello,
I would like to send a sorry page when all pool members are down.
I found a solution contributed by citizen_elah .
1. Generate base64 encoded file from a screen shot ....
hoolio
Cirrostratus
Jul 20, 2011Hi Klaus,
For 9.4.4+, you'll want to remove the $:: prefix to preserve CMP compatibility:
http://devcentral.f5.com/wiki/default.aspx/iRules/CMPCompatibility.html
For 10.x you can't use the $:: prefix--it returns the datagroup name instead of the contents. In v10, if you want to get the contents of a datagroup as a TCL list you can use class get. However, it's simpler to use class element:
http://devcentral.f5.com/wiki/default.aspx/iRules/class.html
HTTP::respond 200 content [b64decode [class element -value 0 sorrypage_class]] "Content-Type" "image/png"
I think that update to the class wiki page was from Jason in this post:
http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/50/aft/18521/showtab/groupforums/Default.aspx
Aaron
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