home *** CD-ROM | disk | FTP | other *** search
/ Adephia Powerlink / AdephiaPowerlink-030102.iso / pc / Install / WorkFlow / Bin / PingTest.dll / GUI_INFO / 135 next >
Encoding:
Text File  |  2002-11-15  |  12.6 KB  |  329 lines

  1. <html>
  2. <head>
  3. <STYLE>
  4. body{
  5.     font-size : medium;
  6.     }
  7. td    {
  8.     font-size : medium;
  9.     }
  10. </STYLE>
  11. <SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
  12. <!--
  13.  
  14. Sub config_onclick
  15.     valid_input = true
  16.     
  17.     'ping values row 0    
  18.     Ping1 = document.forms(0).ping1_0.value
  19.     Ping2 = document.forms(0).ping2_0.value
  20.     Ping3 = document.forms(0).ping3_0.value
  21.     Ping4 = document.forms(0).ping4_0.value
  22.     
  23.     test_value = validate_ping_address(Ping1,Ping2,Ping3,Ping4)
  24.     
  25.     if(not(test_value))then
  26.         window.alert("Problem with ping address  0")    
  27.         valid_input = false
  28.     end if
  29.     
  30.     'ping values row 1    
  31.     Ping1 = document.forms(0).ping1_1.value
  32.     Ping2 = document.forms(0).ping2_1.value
  33.     Ping3 = document.forms(0).ping3_1.value
  34.     Ping4 = document.forms(0).ping4_1.value
  35.     
  36.     test_value = validate_ping_address(Ping1,Ping2,Ping3,Ping4)
  37.     
  38.     if(not(test_value))then
  39.         window.alert("Problem with ping address  1")    
  40.         valid_input = false
  41.     end if
  42.     
  43.     'ping values row 2    
  44.     Ping1 = document.forms(0).ping1_2.value
  45.     Ping2 = document.forms(0).ping2_2.value
  46.     Ping3 = document.forms(0).ping3_2.value
  47.     Ping4 = document.forms(0).ping4_2.value
  48.     
  49.     test_value = validate_ping_address(Ping1,Ping2,Ping3,Ping4)
  50.     
  51.     if(not(test_value))then
  52.         window.alert("Problem with ping address  2")    
  53.         valid_input = false
  54.     end if
  55.         
  56.     'ping values row 3    
  57.     Ping1 = document.forms(0).ping1_3.value
  58.     Ping2 = document.forms(0).ping2_3.value
  59.     Ping3 = document.forms(0).ping3_3.value
  60.     Ping4 = document.forms(0).ping4_3.value
  61.     
  62.     test_value = validate_ping_address(Ping1,Ping2,Ping3,Ping4)
  63.     
  64.     if(not(test_value))then
  65.         window.alert("Problem with ping address  3")    
  66.         valid_input = false
  67.     end if
  68.         
  69.     'ping values row 4    
  70.     Ping1 = document.forms(0).ping1_4.value
  71.     Ping2 = document.forms(0).ping2_4.value
  72.     Ping3 = document.forms(0).ping3_4.value
  73.     Ping4 = document.forms(0).ping4_4.value
  74.     
  75.     test_value = validate_ping_address(Ping1,Ping2,Ping3,Ping4)
  76.     
  77.     if(not(test_value))then
  78.         window.alert("Problem with ping address  4")    
  79.         valid_input = false
  80.     end if
  81.         
  82.     'ping values row 5    
  83.     Ping1 = document.forms(0).ping1_5.value
  84.     Ping2 = document.forms(0).ping2_5.value
  85.     Ping3 = document.forms(0).ping3_5.value
  86.     Ping4 = document.forms(0).ping4_5.value
  87.     
  88.     test_value = validate_ping_address(Ping1,Ping2,Ping3,Ping4)
  89.     
  90.     if(not(test_value))then
  91.         window.alert("Problem with ping address  5")    
  92.         valid_input = false
  93.     end if
  94.     
  95.     'ping values row 6    
  96.     Ping1 = document.forms(0).ping1_6.value
  97.     Ping2 = document.forms(0).ping2_6.value
  98.     Ping3 = document.forms(0).ping3_6.value
  99.     Ping4 = document.forms(0).ping4_6.value
  100.     
  101.     test_value = validate_ping_address(Ping1,Ping2,Ping3,Ping4)
  102.     
  103.     if(not(test_value))then
  104.         window.alert("Problem with ping address  6")    
  105.         valid_input = false
  106.     end if
  107.     
  108.     'ping values row 7    
  109.     Ping1 = document.forms(0).ping1_7.value
  110.     Ping2 = document.forms(0).ping2_7.value
  111.     Ping3 = document.forms(0).ping3_7.value
  112.     Ping4 = document.forms(0).ping4_7.value
  113.     
  114.     test_value = validate_ping_address(Ping1,Ping2,Ping3,Ping4)
  115.     
  116.     if(not(test_value))then
  117.         window.alert("Problem with ping address  7")    
  118.         valid_input = false
  119.     end if
  120.     
  121.     'ping values row 8    
  122.     Ping1 = document.forms(0).ping1_8.value
  123.     Ping2 = document.forms(0).ping2_8.value
  124.     Ping3 = document.forms(0).ping3_8.value
  125.     Ping4 = document.forms(0).ping4_8.value
  126.     
  127.     test_value = validate_ping_address(Ping1,Ping2,Ping3,Ping4)
  128.     
  129.     if(not(test_value))then
  130.         window.alert("Problem with ping address  8")    
  131.         valid_input = false
  132.     end if
  133.     
  134.     'ping values row 9    
  135.     Ping1 = document.forms(0).ping1_9.value
  136.     Ping2 = document.forms(0).ping2_9.value
  137.     Ping3 = document.forms(0).ping3_9.value
  138.     Ping4 = document.forms(0).ping4_9.value
  139.     
  140.     test_value = validate_ping_address(Ping1,Ping2,Ping3,Ping4)
  141.     
  142.     if(not(test_value))then
  143.         window.alert("Problem with ping address  9")    
  144.         valid_input = false
  145.     end if
  146.     
  147.     
  148.     '************************************************************
  149.     '******************* OTHER STUFF ****************************
  150.     '************************************************************
  151.     
  152.     if(document.forms(0).instance_name.value = "") then
  153.         window.alert("You must enter an instance name")
  154.         valid_input = false
  155.     end if
  156.     
  157.     if(document.forms(0).result_text_location.value = "") then
  158.         window.alert("You must enter a dictionary path")
  159.         valid_input = false
  160.     end if            
  161.     
  162.     tempValue = document.forms(0).number_retries.value
  163.     
  164.     if(tempValue = "") then
  165.         window.alert("you must enter number of retries")
  166.         valid_input = false
  167.     else 
  168.         if(not isNumeric(tempValue)) then
  169.             window.alert("number of retries must be numeric")
  170.             valid_input = false
  171.         end if
  172.     end if
  173.     
  174.     tempValue = document.forms(0).timeout.value
  175.     
  176.     if(tempValue = "") then
  177.         window.alert("Please enter a timeout value")
  178.         valid_input = false
  179.     else
  180.         if(not isNumeric(tempValue)) then
  181.             window.alert("timeout must be numeric")
  182.             valid_input = false 
  183.         end if
  184.     end if
  185.         
  186.     if(valid_input) then    
  187.         if (document.forms(0).onSubmit()) then
  188.             document.forms(0).submit
  189.         end if
  190.     end if
  191.     
  192.  
  193. End Sub
  194.  
  195.     '*******************************************************
  196.     '************** Test Ping Values ***********************
  197.     '*******************************************************
  198.  
  199. function validate_ping_address(ping1,ping2,ping3,ping4)
  200.     validate_ping_address = true
  201.     
  202.     if(not(ping1=""))then
  203.         if(not(ping2="")) then
  204.             if(not(ping3="")) then                  
  205.                 if(not(ping4="")) then
  206.                     if(isNumeric(ping1) and isNumeric(ping2) and isNumeric(ping3) and isNumeric(ping4))then                       
  207.                         if(ping1<256 and ping2<256 and ping3<256 and ping4 <256)then
  208.                             validate_ping_address = true
  209.                         else 
  210.                             validate_ping_address = false
  211.                         end if                        
  212.                     else
  213.                         validate_ping_address = false
  214.                     end if                
  215.                 else
  216.                     validate_ping_address = false
  217.                 end if
  218.             else
  219.                 validate_ping_address = false
  220.             end if
  221.         else
  222.                 validate_ping_address = false
  223.         end if        
  224.     end if
  225.  
  226. End Function
  227.  
  228. -->
  229. </SCRIPT>
  230. </head>
  231.  
  232. <body bgcolor="Silver" text="Maroon">
  233.  
  234. <h1></h1>
  235. <div align="center">Configure PingTest Worknode</div>
  236.  
  237. <!--<form method="POST"  action="http://">-->
  238. <form method="POST" name="configure" action="CALLBACKID-ConfigureWorknode">
  239. <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0">
  240. Enter the instance name:  
  241. <input type="text" name="instance_name" size=50 maxlength=80 tabindex="1">
  242.  
  243. <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"> </p>
  244.  
  245. <P style="word-spacing: 0; margin-top: 0; margin-bottom: 0" align="left">Enter a path in the global dictionary to display the ping address successfully
  246. pinged: 
  247.  
  248. <P style="word-spacing: 0; margin-top: 0; margin-bottom: 0" align="left">
  249. <input type="text" name="result_text_location" size=70 maxlength=100 tabindex="2">
  250.  
  251. <P style="word-spacing: 0; margin-top: 0; margin-bottom: 0" align="left">
  252.  <P style="word-spacing: 0; margin-top: 0; margin-bottom: 0" align="left">Enter
  253. a path in the global dicitonary to display the ping address that failed:<P style="word-spacing: 0; margin-top: 0; margin-bottom: 0" align="left">
  254. <input type="text" name="result_failed_location" size=70 maxlength=100 tabindex="2">
  255. <P style="word-spacing: 0; margin-top: 0; margin-bottom: 0" align="left"> <P style="word-spacing: 0; margin-top: 0; margin-bottom: 0" align="left">Enter
  256. a path in the global dictionary to display the complete list of ping addresses:<P style="word-spacing: 0; margin-top: 0; margin-bottom: 0" align="left">
  257. <input type="text" name="result_all_location" size=70 maxlength=100 tabindex="2">
  258. <P style="word-spacing: 0; margin-top: 0; margin-bottom: 0" align="left"> <P style="word-spacing: 0; margin-top: 0; margin-bottom: 0" align="left">Enter
  259. a path in the global dictionary to display the number of addresses that were
  260. successfully pinged:<P style="word-spacing: 0; margin-top: 0; margin-bottom: 0" align="left">
  261. <input type="text" name="result_int_location" size=70 maxlength=100 tabindex="2">
  262. <hr>
  263.  
  264. <P style="word-spacing: 0; margin-top: 0; margin-bottom: 0" align="left"> <P style="word-spacing: 0; margin-top: 0; margin-bottom: 0" align="left">Enter
  265. a path in the global dictionary to find a list of addresses to ping:<P style="word-spacing: 0; margin-top: 0; margin-bottom: 0" align="left">
  266. <input type="text" name="glob_dict_ping_address_location" size=70 maxlength=100 tabindex="2">
  267. <p style="word-spacing: 0; line-height: s; margin-top: 0; margin-bottom: 0"> 
  268. <br>
  269.  
  270. Ping Address 0:
  271. <input type="text" name="ping1_0" size=3 maxlength=3 tabindex="3">.<input type="text" name="ping2_0" size=3 maxlength=3 tabindex="4">.<input type="text" name="ping3_0" size=3 maxlength=3 tabindex="5">.<input type="text" name="ping4_0" size=3 maxlength=3 tabindex="6">
  272.  
  273. <p style="word-spacing: 0; line-height: s; margin-top: 0; margin-bottom: 0"> 
  274.  
  275. Ping Address 1: <input type="text" name="ping1_1" size=3 maxlength=3 tabindex="7">.<input type="text" name="ping2_1" size=3 maxlength=3 tabindex="8">.<input type="text" name="ping3_1" size=3 maxlength=3 tabindex="9">.<input type="text" name="ping4_1" size=3 maxlength=3 tabindex="10">
  276.  
  277. <p style="word-spacing: 0; line-height: s; margin-top: 0; margin-bottom: 0"> 
  278.  
  279. Ping Address 2: <input type="text" name="ping1_2" size=3 maxlength=3 tabindex="11">.<input type="text" name="ping2_2" size=3 maxlength=3 tabindex="12">.<input type="text" name="ping3_2" size=3 maxlength=3 tabindex="13">.<input type="text" name="ping4_2" size=3 maxlength=3 tabindex="14">
  280.  
  281. <p style="word-spacing: 0; line-height: s; margin-top: 0; margin-bottom: 0"> 
  282.  
  283. Ping Address 3: <input type="text" name="ping1_3" size=3 maxlength=3 tabindex="15">.<input type="text" name="ping2_3" size=3 maxlength=3 tabindex="16">.<input type="text" name="ping3_3" size=3 maxlength=3 tabindex="17">.<input type="text" name="ping4_3" size=3 maxlength=3 tabindex="18">
  284.  
  285. <p style="word-spacing: 0; line-height: s; margin-top: 0; margin-bottom: 0"> 
  286.  
  287. Ping Address 4: <input type="text" name="ping1_4" size=3 maxlength=3 tabindex="19">.<input type="text" name="ping2_4" size=3 maxlength=3 tabindex="20">.<input type="text" name="ping3_4" size=3 maxlength=3 tabindex="21">.<input type="text" name="ping4_4" size=3 maxlength=3 tabindex="22">
  288.  
  289. <p style="word-spacing: 0; line-height: s; margin-top: 0; margin-bottom: 0"> 
  290.  
  291. Ping Address 5: <input type="text" name="ping1_5" size=3 maxlength=3 tabindex="23">.<input type="text" name="ping2_5" size=3 maxlength=3 tabindex="24">.<input type="text" name="ping3_5" size=3 maxlength=3 tabindex="25">.<input type="text" name="ping4_5" size=3 maxlength=3 tabindex="26">
  292.  
  293. <p style="word-spacing: 0; line-height: s; margin-top: 0; margin-bottom: 0"> 
  294.  
  295. Ping Address 6: <input type="text" name="ping1_6" size=3 maxlength=3 tabindex="27">.<input type="text" name="ping2_6" size=3 maxlength=3 tabindex="28">.<input type="text" name="ping3_6" size=3 maxlength=3 tabindex="29">.<input type="text" name="ping4_6" size=3 maxlength=3 tabindex="30">
  296.  
  297. <p style="word-spacing: 0; line-height: s; margin-top: 0; margin-bottom: 0"> 
  298.  
  299. Ping Address 7: <input type="text" name="ping1_7" size=3 maxlength=3 tabindex="31">.<input type="text" name="ping2_7" size=3 maxlength=3 tabindex="32">.<input type="text" name="ping3_7" size=3 maxlength=3 tabindex="33">.<input type="text" name="ping4_7" size=3 maxlength=3 tabindex="34">
  300.  
  301. <p style="word-spacing: 0; line-height: s; margin-top: 0; margin-bottom: 0"> 
  302.  
  303. Ping Address 8: <input type="text" name="ping1_8" size=3 maxlength=3 tabindex="35">.<input type="text" name="ping2_8" size=3 maxlength=3 tabindex="36">.<input type="text" name="ping3_8" size=3 maxlength=3 tabindex="37">.<input type="text" name="ping4_8" size=3 maxlength=3 tabindex="38">
  304.  
  305. <p style="word-spacing: 0; line-height: s; margin-top: 0; margin-bottom: 0"> 
  306.  
  307. Ping Address 9: <input type="text" name="ping1_9" size=3 maxlength=3 tabindex="39">.<input type="text" name="ping2_9" size=3 maxlength=3 tabindex="40">.<input type="text" name="ping3_9" size=3 maxlength=3 tabindex="41">.<input type="text" name="ping4_9" size=3 maxlength=3 tabindex="42">
  308. <hr>
  309. <p style="word-spacing: 0; line-height: s; margin-top: 0; margin-bottom: 0">Ping
  310. Attempts (per address): <input type="text" name="number_retries" size=3 maxlength=5 tabindex="43"> 
  311. Timeout (Milliseconds): <input type="text" name="timeout" size=5 maxlength=7 tabindex="44"><p>
  312.  
  313. <input type="checkbox" name="single_pass" value="ON">
  314. Only 1 address must be successfully pinged to pass.  
  315.  
  316. <P><input type="button" name="config" value="Configure">
  317.  
  318. </form><hr>
  319.  
  320. <form method="POST" name="cancel_config" action="CALLBACKID-CancelConfigure">
  321. <P><input type="submit" name="cancel" value="Cancel">
  322. </form><hr>
  323.  
  324. <BR>
  325.  
  326. <a href="ConfigHelp.html" target="_blank">Click here for help</a>
  327.  
  328. </body>
  329. </html>