aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/bash/dut_setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'resources/libraries/bash/dut_setup.sh')
-rw-r--r--resources/libraries/bash/dut_setup.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/resources/libraries/bash/dut_setup.sh b/resources/libraries/bash/dut_setup.sh
index fa88978d5a..952b82bdc7 100644
--- a/resources/libraries/bash/dut_setup.sh
+++ b/resources/libraries/bash/dut_setup.sh
@@ -23,7 +23,11 @@ function cmd {
echo
echo "[Command_desc] Starting ${0}"
-cmd 'dpkg -l vpp\*'
+if [ -f "/etc/redhat-release" ]; then
+ cmd 'rpm -qai vpp*'
+else
+ cmd 'dpkg -l vpp\*'
+fi
cmd 'ps aux | grep vpp'
@@ -44,10 +48,14 @@ cmd 'sudo dmidecode | grep UUID'
cmd 'lspci -Dnn'
-cmd 'tail -n 100 /var/log/syslog'
+if [ -f "/etc/redhat-release" ]; then
+ cmd 'tail -n 100 /var/log/messages'
+else
+ cmd 'tail -n 100 /var/log/syslog'
+fi
echo "[Command_desc] Adding dpdk-input trace"
cmd 'sudo vpp_api_test <<< "exec trace add dpdk-input 100"'
echo "[Command_desc] Adding vhost-user-input trace"
-cmd 'sudo vpp_api_test <<< "exec trace add vhost-user-input 100"'
+cmd 'sudo vpp_api_test <<< "exec trace add vhost-user-input 100"' \ No newline at end of file