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">
12 var updateIfc = '<%ejFncCmd(stsifcupdate)%>';
15 function resetClick() {
16 var loc = 'statsifcreset.html';
18 var code = 'location="' + loc + '"';
25 <body onLoad='frmLoad()'>
28 <b>Statistics -- LAN</b><br>
30 <table border="1" cellpadding="2" cellspacing="0">
32 <td class='hd'>Interface</td>
33 <td class='hd' colspan="4"><center>Received</center>
35 <td class='hd' colspan="4"><center>Transmitted</center>
39 <td class='hd'> </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>
49 <script language="javascript">
52 var numEnet = '<%ejGet(numEnet)%>';
53 var brdId = '<%ejGet(boardID)%>';
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>");
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>");
96 var enblUsb = '<%ejGet(enblUsb)%>';
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>");
112 var ifc = '<%ejGetWl(wlInterface)%>';
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>");
132 <input type='button' onClick='resetClick()' value='Reset Statistics'>