213 lines
8.7 KiB
HTML
213 lines
8.7 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 4.0//EN">
|
|
<html>
|
|
<head>
|
|
<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. -->
|
|
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
|
<title>Windows Server installation advisor--Point to point virtual ethernet LAN between Windows and i5/OS</title>
|
|
<script language="Javascript" type="text/javascript" src="rzahqadvcommon.js"></script>
|
|
<script type="text/javascript" language="javascript">
|
|
<!-- // Hide script from older browsers
|
|
|
|
var errMess = "You entered an unallowed IP address. The segments of an IP address must be numbers from 0 to 255.";
|
|
var errMess1 = "Enter a Windows IP address or select to generate the IP addresses.";
|
|
var errMess2 = "Enter an OS/400 IP address or select to generate the IP addresses.";
|
|
var errMess3 = "Enter a valid name of the network server host adapter. The characters must be letters (A-Z) or digits (0-9).";
|
|
|
|
//START NON-TRANSLATABLE
|
|
//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 checkFrame() {
|
|
//Is the hidden frame already loaded with the correct html?
|
|
if (parentUrl != "rzahqadvisor1.htm") {
|
|
window.location = "rzahqadvisor1.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 != "rzahqadvhidden.htm") {
|
|
//Correct HTML not loaded, load it
|
|
parent.hidden.window.location = "rzahqadvhidden.htm";
|
|
} else { //already loaded
|
|
getData();
|
|
}
|
|
}
|
|
}
|
|
|
|
function getData() {
|
|
if (!isEmpty(parent.hidden.v1[54])) {
|
|
if (parseInt(parent.hidden.v1[54]) == 2) {
|
|
document.form1.rad[1].checked = true;
|
|
if (!isEmpty(parent.hidden.v1[55])) {
|
|
var seg = parent.hidden.v1[55].split(".");
|
|
document.form1.a1.value = seg[0];
|
|
document.form1.a2.value = seg[1];
|
|
document.form1.a3.value = seg[2];
|
|
document.form1.a4.value = seg[3];
|
|
}
|
|
if (!isEmpty(parent.hidden.v1[56])) {
|
|
var seg = parent.hidden.v1[56].split(".");
|
|
document.form1.b1.value = seg[0];
|
|
document.form1.b2.value = seg[1];
|
|
document.form1.b3.value = seg[2];
|
|
document.form1.b4.value = seg[3];
|
|
}
|
|
}
|
|
}
|
|
if (parent.hidden.v1[3] == "iSCSI") {
|
|
if (!isEmpty(parent.hidden.v1[159])) {
|
|
document.form1.nwsh.value = parent.hidden.v1[159];
|
|
}
|
|
}
|
|
}
|
|
|
|
function onNext() {
|
|
parent.hidden.v1[55] = "";
|
|
parent.hidden.v1[56] = "";
|
|
p1 = ".";
|
|
ip1 = document.form1.a1.value + p1 + document.form1.a2.value + p1 + document.form1.a3.value + p1 + document.form1.a4.value;
|
|
ip2 = document.form1.b1.value + p1 + document.form1.b2.value + p1 + document.form1.b3.value + p1 + document.form1.b4.value;
|
|
|
|
//Save data
|
|
if (document.form1.rad[0].checked == true) {
|
|
parent.hidden.v1[54] = "1";
|
|
} else {
|
|
parent.hidden.v1[54] = "2";
|
|
//Check ip addresses
|
|
if (!isEmpty(document.form1.a1.value) || !isEmpty(document.form1.a2.value) || !isEmpty(document.form1.a3.value) || !isEmpty(document.form1.a4.value)) {
|
|
//Must have valid data in ip
|
|
if (isInteger(document.form1.a1.value) && isInteger(document.form1.a2.value) && isInteger(document.form1.a3.value) && isInteger(document.form1.a4.value)) {
|
|
if (!isValidIPAddress(ip1)) {
|
|
alert(errMess);
|
|
document.form1.a1.select();
|
|
document.form1.a1.focus();
|
|
return;
|
|
}
|
|
} else {
|
|
//One of the segments is not a number
|
|
alert(errMess);
|
|
document.form1.a1.select();
|
|
document.form1.a1.focus();
|
|
return;
|
|
}
|
|
} else {
|
|
alert(errMess1);
|
|
return;
|
|
}
|
|
if (!isEmpty(document.form1.b1.value) || !isEmpty(document.form1.b2.value) || !isEmpty(document.form1.b3.value) || !isEmpty(document.form1.b4.value)) {
|
|
//Must have valid data in ip
|
|
if (isInteger(document.form1.b1.value) && isInteger(document.form1.b2.value) && isInteger(document.form1.b3.value) && isInteger(document.form1.b4.value)) {
|
|
if (!isValidIPAddress(ip2)) {
|
|
alert(errMess);
|
|
document.form1.b1.select();
|
|
document.form1.b1.focus();
|
|
return;
|
|
}
|
|
} else {
|
|
//One of the segments is not a number
|
|
alert(errMess);
|
|
document.form1.b1.select();
|
|
document.form1.b1.focus();
|
|
return;
|
|
}
|
|
} else {
|
|
alert(errMess2);
|
|
return;
|
|
}
|
|
parent.hidden.v1[55] = ip1;
|
|
parent.hidden.v1[56] = ip2;
|
|
}
|
|
|
|
if (parent.hidden.v1[3] == "iSCSI") {
|
|
if (isEmpty(document.form1.nwsh.value) || !isAlphanumeric(document.form1.nwsh.value)) {
|
|
alert(errMess3);
|
|
return;
|
|
} else {
|
|
parent.hidden.v1[159] = document.form1.nwsh.value;
|
|
}
|
|
} else {
|
|
parent.hidden.v1[159] = "";
|
|
}
|
|
|
|
//Next page
|
|
if (parent.hidden.v1[3] == "2689" || parent.hidden.v1[3] == "iSCSI") { //hardware type is 2689 or iSCSI
|
|
window.location = "rzahqadvisor28.htm";
|
|
} else {
|
|
window.location = "rzahqadvisor26.htm";
|
|
}
|
|
}
|
|
|
|
function onBack() {
|
|
if (parseInt(parent.hidden.v1[5],10) == 1 && (parent.hidden.v1[3] == "2689" || parent.hidden.v1[3] == "iSCSI")) { //basic install and hardware type is 2689 or iSCSI
|
|
window.location = "rzahqadvisor18.htm";
|
|
} else {
|
|
window.location = "rzahqadvisor27.htm";
|
|
}
|
|
}
|
|
|
|
//END NON-TRANSLATABLE
|
|
////////// -->
|
|
</script>
|
|
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
|
</head>
|
|
|
|
<body onLoad="checkFrame()">
|
|
<h2>Windows Server installation advisor</h2>
|
|
<strong>Point to point virtual Ethernet LAN between Windows and i5/OS</strong>
|
|
<p>What IP addresses do you want to use for private communications between i5/OS and this Windows server?
|
|
A subnet mask of 255.255.255.0 is used for the point to point virtual Ethernet LAN.</p>
|
|
<form name="form1">
|
|
<input type="radio" name="rad" value="genip" id="genip" checked><label for="genip">Use generated IP addresses</label>
|
|
<br><input type="radio" name="rad" value="specip" id="specip"><label for="specip">Specify IP addresses</label>
|
|
<table>
|
|
<tr>
|
|
<td> </td>
|
|
<td><label for="winip">Windows IP address:</label></td>
|
|
<td><input type="text" size="3" maxlength="3" name="a1" id="winip" onKeyPress="selectRadio(1)">
|
|
. <input type="text" size="3" maxlength="3" name="a2" id="winip" onKeyPress="selectRadio(1)">
|
|
. <input type="text" size="3" maxlength="3" name="a3" id="winip" onKeyPress="selectRadio(1)">
|
|
. <input type="text" size="3" maxlength="3" name="a4" id="winip" onKeyPress="selectRadio(1)">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td> </td>
|
|
<td><label for="osip">i5/OS IP address:</label></td>
|
|
<td><input type="text" size="3" maxlength="3" name="b1" id="osip" onKeyPress="selectRadio(1)">
|
|
. <input type="text" size="3" maxlength="3" name="b2" id="osip" onKeyPress="selectRadio(1)">
|
|
. <input type="text" size="3" maxlength="3" name="b3" id="osip" onKeyPress="selectRadio(1)">
|
|
. <input type="text" size="3" maxlength="3" name="b4" id="osip" onKeyPress="selectRadio(1)">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br><br>
|
|
|
|
<script type="text/javascript" language="javascript">
|
|
<!-- // Hide script from older browsers
|
|
|
|
var text1 = "<p>The network server host adapter (NWSH) defines which iSCSI host bus adapter is used for the point to point virtual Ethernet communications.<\/p>";
|
|
text1 += "<p>What NWSH do you want to use for the point to point virtual Ethernet?<\/p>";
|
|
text1 += "<blockquote><label for='nwsh'>Network server host adapter:<\/label> <input type='text' name='nwsh' id='nwsh' maxlength='10'><\/blockquote>";
|
|
//START NON-TRANSLATABLE
|
|
|
|
if (parent.hidden.v1[3] == "iSCSI")
|
|
document.writeln(text1);
|
|
|
|
//END NON-TRANSLATABLE
|
|
////////// -->
|
|
</script>
|
|
<center>
|
|
<input type="button" value="<< Back" onClick="onBack()">
|
|
<input type="button" value="Next >>" onClick="onNext()">
|
|
</center>
|
|
</form>
|
|
</body>
|
|
</html>
|