summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: af137e0)
raw | patch | inline | side by side (parent: af137e0)
author | David Lide <a0216552@gtudci01.(none)> | |
Fri, 15 Aug 2014 14:38:43 +0000 (10:38 -0400) | ||
committer | David Lide <a0216552@gtudci01.(none)> | |
Fri, 15 Aug 2014 14:38:43 +0000 (10:38 -0400) |
ti/runtime/netapi/demo/demo_setup_files/dpicgi4.sh | patch | blob | history | |
ti/runtime/netapi/demo/demo_setup_files/dpicgi5.sh | [new file with mode: 0755] | patch | blob |
ti/runtime/netapi/demo/demo_setup_files/index.html | patch | blob | history | |
ti/runtime/netapi/demo/demo_setup_files/stats1.awk | patch | blob | history | |
ti/runtime/netapi/demo/demo_setup_files/stats2.awk | patch | blob | history | |
ti/runtime/netapi/demo/demo_setup_files/tilogo.gif | [new file with mode: 0644] | patch | blob |
ti/runtime/netapi/demo/demo_setup_files/titagline.gif | [new file with mode: 0644] | patch | blob |
diff --git a/ti/runtime/netapi/demo/demo_setup_files/dpicgi4.sh b/ti/runtime/netapi/demo/demo_setup_files/dpicgi4.sh
index 51ebca4ee823f64002b84a5eb91bc46348d23927..1e258c49e0412980cc7b5072cb3387c2637451e8 100755 (executable)
echo
echo
#dump mem stat
-awk -f ../stats3.awk ../stats1.txt
-#dpidemo stats | awk -f ../stats3.awk
\ No newline at end of file
+echo "<HTML>"
+echo "<HEAD>"
+echo "</HEAD>"
+echo "<BODY>"
+echo "<H2> DPI Memory Useage Stats.. Coming Soon.. </H2>"
+echo "<A href=\"\index.html\"> <p><u>RETURN</u></p> </A>"
+echo "</BODY>"
+echo "</HTML>"
+
+#dpidemo stats | awk -f ../stats3.awk
diff --git a/ti/runtime/netapi/demo/demo_setup_files/dpicgi5.sh b/ti/runtime/netapi/demo/demo_setup_files/dpicgi5.sh
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash
+echo Content-type: text/html
+echo
+echo
+#dump bridge stats
+/usr/bin/transport_dpi_demo stats | awk -f ../stats4.awk
diff --git a/ti/runtime/netapi/demo/demo_setup_files/index.html b/ti/runtime/netapi/demo/demo_setup_files/index.html
index 9440abc0212867c9574cf301ecfeb629c0e09d7f..f7e6f79cdcd30990c001ed4bfaccb21b03758747 100644 (file)
<A href="cgi-bin/dpicgi2.sh"> <p>Protocols Seen</p> </A>
<A href="cgi-bin/dpicgi3.sh"> <p>Cycles by Protocol</p> </A>
<A href="cgi-bin/dpicgi4.sh"> <p>Memory Usage</p> </A>
-</body>
\ No newline at end of file
+<img src="titagline.gif">
+</body>
+</html>
+
diff --git a/ti/runtime/netapi/demo/demo_setup_files/stats1.awk b/ti/runtime/netapi/demo/demo_setup_files/stats1.awk
index 5fd71d84fcb67a9831a1758435f1f1a65d7c1f20..e21232fabcba1204f40db2e0da8637b1fff5aaa1 100644 (file)
BEGIN { state=0;
+ thread=1;
printf("<HTML>\n");
printf("</HEAD>\n");
printf("<BODY>\n");
printf("<H2> DPI Protocol Statistics </H2>\n");
-
+
}
$0 ~ "NAVL DPI stats" {
if (state==0)
{
state=1;
+ printf("<p><b> DPI Thread %d: </b> </p>\n", thread);
printf("<table>\n");
printf("<tr>\n");
# printf("<th> colspan="6" <b>Results</b> </th> </tr> \n");
}
}
/--------/ { if (state==1) state=2}
-/packets captured/ {if (state==2) {state=3; printf("</table>\n");}}
+/packets captured/ {if (state==2) {state=0; thread+=1; printf("</table>\n"); printf("%s\n\n",$0);}}
printf("</HTML>\n");
-}
\ No newline at end of file
+}
diff --git a/ti/runtime/netapi/demo/demo_setup_files/stats2.awk b/ti/runtime/netapi/demo/demo_setup_files/stats2.awk
index a3431ef34c70bc83d64fc15a2eaa5f240f5240cf..9c9266b2bf07ae2f6702270e0f9a773775596695 100644 (file)
BEGIN { state=0;
+ thread=1;
printf("<HTML>\n");
printf("</HEAD>\n");
printf("<BODY>\n");
printf("<H2> DPI Cycle Statistics by Protocol </H2>\n");
-
+
}
$0 ~ "NAVL DPI stats" {
if (state==0)
{
state=1;
+ printf("<p><b> DPI Thread %d: </b> </p>\n", thread);
printf("<table>\n");
printf("<tr>\n");
# printf("<th> colspan="6" <b>Results</b> </th> </tr> \n");
}
}
/--------/ { if (state==1) state=2}
-/packets captured/ {if (state==2) {state=3; printf("</table>\n");}}
+/packets captured/ {if (state==2) {state=0; thread+=1; printf("</table>\n");}}
printf("<A href=\"\\index.html\"> <p><u> RETURN </u> </p> </A>\n");
printf("</BODY>\n");
printf("</HTML>\n");
-}
\ No newline at end of file
+
+
+}
diff --git a/ti/runtime/netapi/demo/demo_setup_files/tilogo.gif b/ti/runtime/netapi/demo/demo_setup_files/tilogo.gif
new file mode 100644 (file)
index 0000000..f2fab2d
Binary files /dev/null and b/ti/runtime/netapi/demo/demo_setup_files/tilogo.gif differ
index 0000000..f2fab2d
Binary files /dev/null and b/ti/runtime/netapi/demo/demo_setup_files/tilogo.gif differ
diff --git a/ti/runtime/netapi/demo/demo_setup_files/titagline.gif b/ti/runtime/netapi/demo/demo_setup_files/titagline.gif
new file mode 100644 (file)
index 0000000..743a024
Binary files /dev/null and b/ti/runtime/netapi/demo/demo_setup_files/titagline.gif differ
index 0000000..743a024
Binary files /dev/null and b/ti/runtime/netapi/demo/demo_setup_files/titagline.gif differ