annotate adsl.html @ 6:671e66da2cb9

Fix check for modem being connected. Fix cut & paste error making the line rates 1/10th what they should be.
author Daniel O'Connor <darius@dons.net.au>
date Sat, 08 Feb 2014 09:19:20 +1030
parents 98fe11ea4c82
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
1 <html>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
2 <head>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
3 <meta http-equiv="content-type" content="text/html; charset=utf-8">
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
4 <META http-equiv="Pragma" content="no-cache">
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
5 <META http-equiv="Expires" content="-1">
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
6 <link rel="stylesheet" type="text/css" href="default.css">
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
7 <SCRIPT language="javascript">
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
8 function SetChannelOptions(index) {
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
9 var form=document.adsl;
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
10 var default_annex='A';
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
11 a = new Array(7);
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
12 a[0] = new Option("Auto", "0");
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
13 a[1] = new Option("ADSL Multimode", "1");
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
14 a[2] = new Option("ADSL2", "2");
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
15 a[3] = new Option("ADSL2+", "3");
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
16 a[4] = new Option("G.Lite", "4");
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
17 a[5] = new Option("T1.413", "5");
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
18 a[6] = new Option("G.DMT", "6");
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
19
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
20 for(var i = form.ADSLRATE.length - 1; i > 0; i--) {
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
21 form.ADSLRATE.options[i] = null;
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
22 }
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
23 for(var i = form.ADSLMODE.length - 1; i > 0; i--) {
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
24 form.ADSLMODE.options[i] = null;
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
25 }
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
26 if (default_annex == 'A'){
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
27 b = new Array(4);
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
28 b[0] = new Option("Open Annex Type and Follow DSLAM's Setting", "0");
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
29 b[1] = new Option("Annex A", "1");
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
30 b[2] = new Option("Annex L", "2");
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
31 b[3] = new Option("Annex M", "3");
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
32 b[4] = new Option("Annex J", "4");
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
33 form.ADSLMODE.options[0] = b[0];
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
34 form.ADSLMODE.options[1] = b[1];
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
35 form.ADSLMODE.options[2] = b[2];
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
36 form.ADSLMODE.options[3] = b[3];
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
37 form.ADSLMODE.options[4] = b[4];
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
38 form.ADSLMODE.selectedIndex = index;
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
39 }else{
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
40 b = new Array(1);
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
41 b[0] = new Option("Annex B", "1");
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
42 form.ADSLMODE.options[0] = b[0];
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
43 form.ADSLMODE.selectedIndex = index-1;
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
44 }
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
45
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
46 if (index == 0 || index==1 ){
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
47 form.ADSLRATE.options[0] = a[0];
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
48 form.ADSLRATE.options[1] = a[1];
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
49 form.ADSLRATE.options[2] = a[2];
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
50 form.ADSLRATE.options[3] = a[3];
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
51 form.ADSLRATE.options[4] = a[4];
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
52 form.ADSLRATE.options[5] = a[5];
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
53 form.ADSLRATE.options[6] = a[6];
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
54 }else{
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
55 form.ADSLRATE.options[0] = a[2];
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
56 form.ADSLRATE.options[1] = a[3];
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
57 }
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
58 }
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
59
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
60
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
61 function load_adsl(){
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
62 var form = document.adsl;
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
63 var ADSL_MODE_VALUE= form.ADSL_MODE.value;
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
64 SetChannelOptions(form.ADSL_MODE.value);
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
65 if (ADSL_MODE_VALUE==0 || ADSL_MODE_VALUE==1)
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
66 form.ADSLRATE.selectedIndex = form.ADSL_RATE.value;
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
67 else
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
68 form.ADSLRATE.selectedIndex = form.ADSL_RATE.value-2;
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
69 }
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
70 function verifyform() {
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
71 var form=document.adsl;
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
72 form.apply.disabled=true;
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
73 form.reset.disabled=true;
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
74 form.submit();
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
75 return true;
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
76 }
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
77 </SCRIPT>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
78 </head>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
79 <body class="main" link="#3300cc" alink="#ff0000" vlink="#990066" onload="load_adsl();">
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
80 <table border="1" cellpadding="0" cellspacing="0" scrolling="no" style="border-collapse: collapse" bordercolor="#FFFFFF" width="80%">
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
81 <FORM name=adsl method="post" ACTION="/goform/adsl">
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
82 <tr><td class="headline" colspan=2>ADSL</td></tr>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
83 <tr><td colspan="2" class="header"><nobr>Parameters</nobr></td></tr>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
84 <tr><td class="title" width=35%><nobr>ADSL Mode</nobr></td>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
85 <td><nobr>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
86 <INPUT type=hidden name="ADSL_MODE" value="0">
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
87 <SELECT name=ADSLMODE onchange="SetChannelOptions(this.selectedIndex);">
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
88 <tr><td class="title" width=35%><nobr>Modulator</nobr></td>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
89 <td><nobr>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
90 <INPUT type=hidden name="ADSL_RATE" value="0">
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
91 <SELECT name=ADSLRATE>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
92 <tr><td class="title" width=35%><nobr>DSP FirmwareVersion</nobr></td>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
93 <td><nobr>DMT FwVer: 3.7.6.98_A_TC, HwVer:T14F7_1.0
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
94
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
95 <tr><td class="title" width=35%><nobr>DMT Status</nobr></td>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
96 <td><nobr>Up
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
97 <tr><td class="title" width=35%><nobr>Operational Mode</nobr></td>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
98 <td><nobr>ADSL2
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
99 <tr><td class="title" width=35%><nobr>Upstream</nobr></td>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
100 <td><nobr>1001 kbps
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
101 <tr><td class="title" width=35%><nobr>Downstream</nobr></td>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
102 <td><nobr>6094 kbps
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
103 <tr><td class="title" width=35%><nobr>Noise Margin (Upstream)</nobr></td>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
104 <td><nobr>6.3 db
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
105 <tr><td class="title" width=35%><nobr>Noise Margin (Downstream)</nobr></td>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
106 <td><nobr>6.2 db
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
107 <tr><td class="title" width=35%><nobr>Attenuation (Upstream)</nobr></td>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
108 <td><nobr>35.2 db
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
109 <tr><td class="title" width=35%><nobr>Attenuation (Downstream)</nobr></td>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
110 <td><nobr>46.0 db
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
111 <tr>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
112 <td class=headline colspan=2>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
113 <br>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
114 <INPUT type="button" name=apply value="Apply" onclick="verifyform();">&nbsp;
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
115 <INPUT type="button" name=reset value="Refresh" onClick="location.reload();">
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
116 </td>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
117 </tr></FORM>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
118 </table>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
119 </body>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
120 </html>
98fe11ea4c82 Initial commit of Billion ADSL stats monitor using RRD.
darius@Inchoate
parents:
diff changeset
121