229 lines
6.9 KiB
HTML
229 lines
6.9 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 4.0//EN">
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||
|
<title>Differentiated service applications</title>
|
||
|
<meta name="Copyright" content="Copyright (c) 2004 by IBM Corporation">
|
||
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
||
|
<!-- US Government Users Restricted Rights -->
|
||
|
<!-- Use, duplication or disclosure restricted by -->
|
||
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
||
|
|
||
|
<!--
|
||
|
----------------------------------------------------------------------------
|
||
|
START_DESCRIPTION
|
||
|
Page Function: Define applications
|
||
|
|
||
|
Stored Values:
|
||
|
[valueName](variableNameinHidden)[possible values]
|
||
|
|
||
|
Next and Back:
|
||
|
[Next]:pagename if valueName = ""
|
||
|
[Back]: rzalladvqos13.htm
|
||
|
END_DESCRIPTION
|
||
|
----------------------------------------------------------------------------
|
||
|
-->
|
||
|
|
||
|
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
||
|
<script language = "Javascript" src = "../rzahg/iccommon.js"></script>
|
||
|
<script language="Javascript" type="text/javascript">
|
||
|
|
||
|
error1 = "You must check at least one application or define your own."
|
||
|
clientNum = parent.hidden.retClientNumber()
|
||
|
customStart = parent.hidden.clientInfo[clientNum][3];
|
||
|
|
||
|
|
||
|
//START NON-TRANSLATABLE
|
||
|
var nocheck = false;
|
||
|
|
||
|
function restoreValues() {
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
function onBack() {
|
||
|
window.location = "rzalladvqos13.htm";
|
||
|
}
|
||
|
|
||
|
|
||
|
function onNext(form) {
|
||
|
|
||
|
if ( !blank() ) {
|
||
|
alert(error1);
|
||
|
}
|
||
|
else {
|
||
|
var pos = 0
|
||
|
|
||
|
num_apps = document.applications.apps.length
|
||
|
for ( var i=0; i<num_apps; i++ ) {
|
||
|
myval = ''
|
||
|
if (document.applications.apps[i].checked == true){
|
||
|
nocheck = true;
|
||
|
myval = document.applications.apps[i].value
|
||
|
start = myval.indexOf('*')
|
||
|
end = myval.lastIndexOf('*')
|
||
|
appname = myval.substring(0,start)
|
||
|
port = myval.substring(end+1)
|
||
|
parent.hidden.clientapps[clientNum][pos][0] = appname //stores app name
|
||
|
parent.hidden.clientapps[clientNum][pos][1]= port //stores port num
|
||
|
parent.hidden.clientapps[clientNum][pos][2] = 'N';
|
||
|
|
||
|
pos = pos +1
|
||
|
//if ( document.applications.other.checked ) {
|
||
|
|
||
|
parent.hidden.clientInfo[clientNum][3] = pos // stores the ending point for already known apps
|
||
|
|
||
|
// }
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
if ( document.applications.other.checked == true ) {
|
||
|
//gotta define apps
|
||
|
if ( !nocheck ) { // if nothing is checked but the custom app checkbox
|
||
|
parent.hidden.clientInfo[clientNum][3] = 0
|
||
|
|
||
|
}
|
||
|
parent.hidden.hasOutboundDiffCustom = true;
|
||
|
// alert(parent.hidden.hasOutboundDiffCustom)
|
||
|
window.location = "rzalladvqos25.htm";
|
||
|
//added coding for IE
|
||
|
|
||
|
}
|
||
|
|
||
|
else {
|
||
|
|
||
|
parent.hidden.clientInfo[clientNum][3] = pos;
|
||
|
parent.hidden.hasOutboundDiffCustom = false;
|
||
|
window.location = "rzalladvqos51.htm";}
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
function blank() {
|
||
|
var answer
|
||
|
answer= true;
|
||
|
for ( var i=0; i<document.applications.apps.length; i++ ) {
|
||
|
if ( document.applications.apps[i].checked == false && document.applications.other.checked == false ) {
|
||
|
answer = false;
|
||
|
}
|
||
|
else {
|
||
|
answer = true;
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return answer;
|
||
|
}
|
||
|
|
||
|
function checkit() {
|
||
|
|
||
|
//if ( customStart != "" && customStart != null) {
|
||
|
if ( parent.hidden.hasOutboundDiffCustom ) {
|
||
|
document.applications.other.checked = true;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
//}
|
||
|
}
|
||
|
|
||
|
function clearApps() {
|
||
|
|
||
|
parent.hidden.clearApps(clientNum)
|
||
|
|
||
|
}
|
||
|
|
||
|
//Obtain name of HTML file in parent frame.
|
||
|
var parentDir = parent.window.location.href.substring(0,location.href.lastIndexOf('/')+1);
|
||
|
var parentUrl = parent.window.location.href.substring(parentDir.length,parent.window.location.href.length+1);
|
||
|
if (parentUrl.indexOf("#") >= 0) { parentUrl = parentUrl.substring(0,parentUrl.indexOf("#"));}
|
||
|
|
||
|
function fillIn() {
|
||
|
//Is the hidden frame already loaded with the correct html?
|
||
|
if (parentUrl != "rzalladvqoswelcome.htm") {
|
||
|
window.location = "rzalladvqoswelcome.htm"; //load advisor frameset
|
||
|
return;
|
||
|
} else {
|
||
|
//Obtain name of HTML file in hidden frame.
|
||
|
var hiddenDir = parent.hidden.window.location.href.substring(0,location.href.lastIndexOf('/')+1);
|
||
|
var hiddenUrl = parent.hidden.window.location.href.substring(hiddenDir.length,parent.hidden.window.location.href.length+1);
|
||
|
if (hiddenUrl.indexOf("#") >= 0) { hiddenUrl = hiddenUrl.substring(0,hiddenUrl.indexOf("#"));}
|
||
|
if (hiddenUrl != "rzalladvqoshidden.htm") {
|
||
|
//Correct HTML not loaded, load it
|
||
|
parent.hidden.window.location = "rzalladvqoshidden.htm";
|
||
|
} else { //already loaded
|
||
|
fillIn2();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function fillIn2() {
|
||
|
|
||
|
pos = parent.hidden.endApp(clientNum);
|
||
|
|
||
|
//scan app array
|
||
|
for ( var i=0; i<pos; i++ ) {
|
||
|
appname = parent.hidden.clientapps[clientNum][i][0].toString();
|
||
|
|
||
|
for ( var j=0; j<document.applications.apps.length; j++ ) {
|
||
|
myval = document.applications.apps[j].value
|
||
|
start = myval.indexOf('*')
|
||
|
end = myval.lastIndexOf('*')
|
||
|
myappname = myval.substring(0,start).toString();
|
||
|
appname = "" + appname
|
||
|
myappname = "" + myappname
|
||
|
|
||
|
if ( appname == myappname ) {
|
||
|
document.applications.apps[j].checked = true;
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//END NON-TRANSLATABLE
|
||
|
|
||
|
|
||
|
</script>
|
||
|
|
||
|
</head>
|
||
|
<BODY onload = "fillIn();checkit();clearApps();">
|
||
|
<h2>QoS planning advisor: Differentiated service applications</h2>
|
||
|
<P>The following applications currently reside on your server. If your policy is intended to limit or expand performance for one of these applications, select to which applications this policy is intended to apply. The selected applications will be used in a differentiated service policy. If you do not see the application you need in the list below, you can define your own application. In the wizards, you can also define an application strictly by port or port range.
|
||
|
</P>
|
||
|
<p>Select the applications you want to apply to a differentiated service policy, or define your own.</p>
|
||
|
<p>
|
||
|
<form name="applications">
|
||
|
<INPUT TYPE="checkbox" NAME="apps" ID="apps1" VALUE="DNS**53"><label for="apps1">DNS</label><br>
|
||
|
<INPUT TYPE="checkbox" NAME="apps" ID="apps2" VALUE="FTP**20-21"><label for="apps2">FTP</label><br>
|
||
|
<INPUT TYPE="checkbox" NAME="apps" ID="apps3" VALUE="HTTP**80"><label for="apps3">HTTP</label><br>
|
||
|
<INPUT TYPE="checkbox" NAME="apps" ID="apps4" VALUE="POP**109-110"><label for="apps4">POP</label><br>
|
||
|
<INPUT TYPE="checkbox" NAME="apps" ID="apps5" VALUE="SMTP**225"><label for="apps5">SMTP</label><br>
|
||
|
<INPUT TYPE="checkbox" NAME="apps" ID="apps6" VALUE="SNMP**161-162"><label for="apps6">SNMP</label><br>
|
||
|
<INPUT TYPE="checkbox" NAME="apps" ID="apps7" VALUE="Telnet**23"><label for="apps7">Telnet</label><br>
|
||
|
<INPUT TYPE="checkbox" NAME="apps" ID="apps8" VALUE="TFTP**69"><label for="apps8">TFTP</label><p>
|
||
|
|
||
|
<INPUT TYPE="checkbox" NAME="other" ID="apps9" VALUE="Other"><label for="apps9">I want to define my own applications and ports</label><p>
|
||
|
|
||
|
<center><input name=submit type="button" value="<< Back " onClick="onBack()">
|
||
|
<input name=submit type="button" value=" Next >>" onClick="onNext(this.form)">
|
||
|
</center>
|
||
|
</form>
|
||
|
|
||
|
</BODY>
|
||
|
|
||
|
</html>
|
||
|
|