summaryrefslogtreecommitdiff
path: root/testscripts/dltinfo.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testscripts/dltinfo.sh')
-rwxr-xr-xtestscripts/dltinfo.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/testscripts/dltinfo.sh b/testscripts/dltinfo.sh
new file mode 100755
index 0000000..3e70ab5
--- /dev/null
+++ b/testscripts/dltinfo.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+clear
+processname="dlt-daemon"
+pidofdlt=`pidof $processname`
+
+if [ $pidofdlt ]
+ then
+ echo "DLT Deamon is running with PID:$pidofdlt"
+ else
+ echo "DLT Daemon is NOT running"
+fi
+
+if [ -f /var/log/messages ]
+ then
+echo "------- messages ----------------"
+cat /var/log/messages | grep -a DLT | tail
+fi
+
+if [ -f /var/log/syslog ]
+ then
+ echo "------- SYSLOG -------------------"
+ cat /var/log/syslog | grep -a DLT | tail
+fi
+