http://downloads.netgear.com/files/GPL/DM111PSP_v3.61d_GPL.tar.gz
[bcm963xx.git] / userapps / broadcom / cfm / html / statsifc.html
1 <html>
2    <head>
3       <meta http-equiv='Pragma' content='no-cache'>
4       <meta http-equiv="refresh" content="15">
5       <link rel="stylesheet" href='stylemain.css' type='text/css'>
6          <link rel="stylesheet" href='colors.css' type='text/css'>
7           <script language="javascript" src="portName.js"></script>
8             <script language="javascript">
9 <!-- hide
10
11 function frmLoad() {
12    var updateIfc = '<%ejFncCmd(stsifcupdate)%>';
13 }
14
15 function resetClick() {
16    var loc = 'statsifcreset.html';
17
18    var code = 'location="' + loc + '"';
19    eval(code);
20 }
21
22 // done hiding -->
23 </script>
24    </head>
25    <body onLoad='frmLoad()'>
26       <blockquote>
27          <form>
28             <b>Statistics -- LAN</b><br>
29             <br>
30             <table border="1" cellpadding="2" cellspacing="0">
31                <tr>
32                   <td class='hd'>Interface</td>
33                   <td class='hd' colspan="4"><center>Received</center>
34                   </td>
35                   <td class='hd' colspan="4"><center>Transmitted</center>
36                   </td>
37                </tr>
38                <tr>
39                   <td class='hd'>&nbsp</td>
40                   <td class='hd'>Bytes</td>
41                   <td class='hd'>Pkts</td>
42                   <td class='hd'>Errs</td>
43                   <td class='hd'>Drops</td>
44                   <td class='hd'>Bytes</td>
45                   <td class='hd'>Pkts</td>
46                   <td class='hd'>Errs</td>
47                   <td class='hd'>Drops</td>
48                </tr>
49 <script language="javascript">
50 <!-- hide
51
52 var numEnet = '<%ejGet(numEnet)%>';
53 var brdId = '<%ejGet(boardID)%>';
54 var dispName = ' ';
55
56 if ( numEnet == '2' ) {
57    dispName = getUNameByLName(brdId + '|eth1');
58    document.writeln("               <tr>");
59    document.writeln("                  <td class='hd'>Ethernet " + dispName + "</td>");
60    document.writeln("                  <td><%ejGetOther(stsifcget, 3, 0)%></td>");
61    document.writeln("                  <td><%ejGetOther(stsifcget, 3, 1)%></td>");
62    document.writeln("                  <td><%ejGetOther(stsifcget, 3, 2)%></td>");
63    document.writeln("                  <td><%ejGetOther(stsifcget, 3, 3)%></td>");
64    document.writeln("                  <td><%ejGetOther(stsifcget, 3, 4)%></td>");
65    document.writeln("                  <td><%ejGetOther(stsifcget, 3, 5)%></td>");
66    document.writeln("                  <td><%ejGetOther(stsifcget, 3, 6)%></td>");
67    document.writeln("                  <td><%ejGetOther(stsifcget, 3, 7)%></td>");
68    document.writeln("               </tr>");
69    dispName = getUNameByLName(brdId + '|eth0');
70    document.writeln("               <tr>");
71    document.writeln("                  <td class='hd'>Ethernet " + dispName + "</td>");
72    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 0)%></td>");
73    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 1)%></td>");
74    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 2)%></td>");
75    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 3)%></td>");
76    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 4)%></td>");
77    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 5)%></td>");
78    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 6)%></td>");
79    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 7)%></td>");
80    document.writeln("              </tr>");
81 }
82 else {
83    document.writeln("               <tr>");
84    document.writeln("                  <td class='hd'>Ethernet</td>");
85    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 0)%></td>");
86    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 1)%></td>");
87    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 2)%></td>");
88    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 3)%></td>");
89    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 4)%></td>");
90    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 5)%></td>");
91    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 6)%></td>");
92    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 7)%></td>");
93    document.writeln("               </tr>");
94 }
95
96 var enblUsb = '<%ejGet(enblUsb)%>';
97
98 if ( enblUsb == '1' ) {
99    document.writeln("               <tr>");
100    document.writeln("                  <td class='hd'>USB</td>");
101    document.writeln("                  <td><%ejGetOther(stsifcget, 1, 0)%></td>");
102    document.writeln("                  <td><%ejGetOther(stsifcget, 1, 1)%></td>");
103    document.writeln("                  <td><%ejGetOther(stsifcget, 1, 2)%></td>");
104    document.writeln("                  <td><%ejGetOther(stsifcget, 1, 3)%></td>");
105    document.writeln("                  <td><%ejGetOther(stsifcget, 1, 4)%></td>");
106    document.writeln("                  <td><%ejGetOther(stsifcget, 1, 5)%></td>");
107    document.writeln("                  <td><%ejGetOther(stsifcget, 1, 6)%></td>");
108    document.writeln("                  <td><%ejGetOther(stsifcget, 1, 7)%></td>");
109    document.writeln("               </tr>");
110 }
111
112 var ifc = '<%ejGetWl(wlInterface)%>';
113
114 if ( ifc == '1' ) {
115    document.writeln("  <tr>");
116    document.writeln("    <td class='hd'>Wireless</td>");
117    document.writeln("    <td><%ejGetOther(stsifcget, 2, 0)%></td>");
118    document.writeln("    <td><%ejGetOther(stsifcget, 2, 1)%></td>");
119    document.writeln("    <td><%ejGetOther(stsifcget, 2, 2)%></td>");
120    document.writeln("    <td><%ejGetOther(stsifcget, 2, 3)%></td>");
121    document.writeln("    <td><%ejGetOther(stsifcget, 2, 4)%></td>");
122    document.writeln("    <td><%ejGetOther(stsifcget, 2, 5)%></td>");
123    document.writeln("    <td><%ejGetOther(stsifcget, 2, 6)%></td>");
124    document.writeln("    <td><%ejGetOther(stsifcget, 2, 7)%></td>");
125    document.writeln("  </tr>");
126 }
127 // done hiding -->
128 </script>
129             </table>
130             <br>
131             <br>
132             <input type='button' onClick='resetClick()' value='Reset Statistics'>
133          </form>
134       </blockquote>
135    </body>
136 </html>