From 87dba93ca3044a5758ba910e60def80896229e35 Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Thu, 28 Sep 2023 10:35:10 +0800 Subject: [PATCH] trace --- config/etc/schema/pdml2html.xsl | 221 ++++++++++++++++++++++++++++++++ data2html/data2html.go | 2 +- 2 files changed, 222 insertions(+), 1 deletion(-) create mode 100644 config/etc/schema/pdml2html.xsl diff --git a/config/etc/schema/pdml2html.xsl b/config/etc/schema/pdml2html.xsl new file mode 100644 index 00000000..37f70e21 --- /dev/null +++ b/config/etc/schema/pdml2html.xsl @@ -0,0 +1,221 @@ + + + + + + + + + +     + + + + +
+
+ +
+
+
+ + +
+ + + + + + + + + + +
+ + Frame : + + , + + [X] +
+ + + + + + +
+ + + Capture Filename: + PDML created: + + + + + + + + + + poor man's Wireshark + + + + + + + + + +
diff --git a/data2html/data2html.go b/data2html/data2html.go index 5a12feeb..c903d8d0 100644 --- a/data2html/data2html.go +++ b/data2html/data2html.go @@ -78,7 +78,7 @@ func execTshark(html string, filename string, proto string, port int) { // fmt.Println("write html failed") //}else { //xsltproc pdml2html.xsl ngap.pdml > /home/agtuser/ngap.html - command := fmt.Sprintf("xsltproc /usr/lib64/pdml2html.xsl %s > %s", pdmlFile, html) + command := fmt.Sprintf("xsltproc /usr/local/omc/etc/schema/pdml2html.xsl %s > %s", pdmlFile, html) dest := exec.Command("sh", "-c", command) _, err2 := dest.Output() if err2 != nil {