Network calculator
Problem this snippet solves:
The following is an example how powerful the LTM in terms of hosting web pages w/o the necessity of having a physical web server. This technique can sometimes save you from purchasing or taking up valuable resource on a production web server for hosting a webpage.
This particular iRule throws up a network calculator which was coded by Al Vonkeman (http://www.subnetmask.info./)).
NOTE: The website does initially load up slowly. Thereafter it performs quickly as the processing is client side.
Code :
when HTTP_REQUEST {
if {[HTTP::uri] eq "/calc" } {
set response {
Network Calculators
< SCRIPT type="text/javascript">
Network Calculators |
< SCRIPT type="text/javascript"> } HTTP::respond 200 content $response "Content-Type" "text/html" } }
Published Mar 18, 2015
Version 1.0The_Bhattman
Nimbostratus
Joined October 14, 2005
The_Bhattman
Nimbostratus
Joined October 14, 2005
1 Comment
- Joe_M
Nimbostratus
This doesn't work properly on 11.5.3. I haven't tested anything else. The Subnet calculator here: http://jodies.de/ipcalc works much better for my needs. If that could be converted into an iRule that would be fantastic!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)