www.usr.com/support/gpl/USR9113_release1.0.tar.gz
[bcm963xx.git] / userapps / broadcom / cfm / html / statsifc.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--
3         (c) 2005 U.S. Robotics Corporation
4 -->
5 <html>
6 <head>
7         <title>LAN Statistics &laquo; Status</title>
8
9         <link href="usr_layout.css" type="text/css" rel="stylesheet" /><script src="usr_layout.js" type="text/javascript"></script>
10         <link href="usr_menus_dropdown.css" rel="stylesheet" type="text/css"><script src="usr_menus_dropdown.js" type="text/javascript"></script><script src="usr_menus_build.js" type="text/javascript"></script>
11         <link href="usr_device.css" type="text/css" rel="stylesheet" /><script src="usr_device.js" type="text/javascript"></script><link href="usr_91xx.css" type="text/css" rel="stylesheet" /><script src="usr_91xx.js" type="text/javascript"></script><script src="usr_resources.js" type="text/javascript"></script>
12         <script src="portName.js" type="text/javascript"></script>
13
14         <meta http-equiv='Pragma' content='no-cache'>
15         <meta http-equiv="refresh" content="15">
16
17
18         <script type="text/javascript">
19 <!-- hide
20
21
22
23 function frmLoad() {
24    var updateIfc = '<%ejFncCmd(stsifcupdate)%>';
25 }
26
27 function resetClick() {
28    var loc = 'statsifcreset.html';
29
30    var code = 'location = "' + loc + '"';
31    eval(code);
32 }
33
34 // done hiding -->
35 </script>
36    </head>
37    <body onload="initMenu(); frmLoad();">
38
39 <script type="text/javascript">
40         writeHeader("Status");
41 </script>
42
43 <h3>LAN Statistics</h3>
44
45 <table border="1" cellpadding="2" cellspacing="0">
46    <tr>
47       <th>Interface</th>
48       <th colspan="4">Received</th>
49       <th colspan="4">Transmitted</th>
50    </tr>
51    <tr>
52       <th>&nbsp;</th>
53       <th>Bytes</th>
54       <th>Packets</th>
55       <th>Errors</th>
56       <th>Drops</th>
57       <th>Bytes</th>
58       <th>Packets</th>
59       <th>Errors</th>
60       <th>Drops</th>
61    </tr>
62 <script type="text/javascript">
63 <!-- hide
64
65 var numEnet = '<%ejGetJS(numEnet)%>';
66 var brdId = '<%ejGetJS(boardID)%>';
67 var dispName = ' ';
68
69 if ( numEnet == '2' ) {
70    dispName = getUNameByLName(brdId + '|eth1');
71    document.writeln("               <tr>");
72    document.writeln("                  <th>Ethernet " + dispName + "</th>");
73    document.writeln("                  <td><%ejGetOther(stsifcget, 3, 0)%></td>");
74    document.writeln("                  <td><%ejGetOther(stsifcget, 3, 1)%></td>");
75    document.writeln("                  <td><%ejGetOther(stsifcget, 3, 2)%></td>");
76    document.writeln("                  <td><%ejGetOther(stsifcget, 3, 3)%></td>");
77    document.writeln("                  <td><%ejGetOther(stsifcget, 3, 4)%></td>");
78    document.writeln("                  <td><%ejGetOther(stsifcget, 3, 5)%></td>");
79    document.writeln("                  <td><%ejGetOther(stsifcget, 3, 6)%></td>");
80    document.writeln("                  <td><%ejGetOther(stsifcget, 3, 7)%></td>");
81    document.writeln("               </tr>");
82    dispName = getUNameByLName(brdId + '|eth0');
83    document.writeln("               <tr>");
84    document.writeln("                  <th>Ethernet " + dispName + "</th>");
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 else {
96    document.writeln("               <tr>");
97    document.writeln("                  <th>Ethernet</th>");
98    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 0)%></td>");
99    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 1)%></td>");
100    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 2)%></td>");
101    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 3)%></td>");
102    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 4)%></td>");
103    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 5)%></td>");
104    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 6)%></td>");
105    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 7)%></td>");
106    document.writeln("               </tr>");
107 }
108
109 var enblUsb = '<%ejGetJS(enblUsb)%>';
110
111 if ( enblUsb == '1' ) {
112    document.writeln("               <tr>");
113    document.writeln("                  <th>USB</th>");
114    document.writeln("                  <td><%ejGetOther(stsifcget, 1, 0)%></td>");
115    document.writeln("                  <td><%ejGetOther(stsifcget, 1, 1)%></td>");
116    document.writeln("                  <td><%ejGetOther(stsifcget, 1, 2)%></td>");
117    document.writeln("                  <td><%ejGetOther(stsifcget, 1, 3)%></td>");
118    document.writeln("                  <td><%ejGetOther(stsifcget, 1, 4)%></td>");
119    document.writeln("                  <td><%ejGetOther(stsifcget, 1, 5)%></td>");
120    document.writeln("                  <td><%ejGetOther(stsifcget, 1, 6)%></td>");
121    document.writeln("                  <td><%ejGetOther(stsifcget, 1, 7)%></td>");
122    document.writeln("               </tr>");
123 }
124
125 var ifc = '<%ejGetWlJS(wlInterface)%>';
126
127 if ( ifc == '1' ) {
128    document.writeln("  <tr>");
129    document.writeln("    <th>Wireless</th>");
130    document.writeln("    <td><%ejGetOther(stsifcget, 2, 0)%></td>");
131    document.writeln("    <td><%ejGetOther(stsifcget, 2, 1)%></td>");
132    document.writeln("    <td><%ejGetOther(stsifcget, 2, 2)%></td>");
133    document.writeln("    <td><%ejGetOther(stsifcget, 2, 3)%></td>");
134    document.writeln("    <td><%ejGetOther(stsifcget, 2, 4)%></td>");
135    document.writeln("    <td><%ejGetOther(stsifcget, 2, 5)%></td>");
136    document.writeln("    <td><%ejGetOther(stsifcget, 2, 6)%></td>");
137    document.writeln("    <td><%ejGetOther(stsifcget, 2, 7)%></td>");
138    document.writeln("  </tr>");
139 }
140 // done hiding -->
141 </script>
142 </table>
143
144 <p><input type='button' onClick='resetClick()' value='Reset Statistics'></p>
145
146 <script type="text/javascript">
147         writeFooter();
148 </script>
149
150 </body>
151 </html>