aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/bash
diff options
context:
space:
mode:
authorMatej Klotton <mklotton@cisco.com>2016-03-03 17:49:13 +0100
committerGerrit Code Review <gerrit@fd.io>2016-03-11 12:22:05 +0000
commit05eba892c7d2a778e78a950966fb1a6e0d68aa60 (patch)
tree70deac23c37148021dce43b8277ee079b6ea0e81 /resources/libraries/bash
parent5fbbffd70f3b03b1778d31173065d86bfcc9a975 (diff)
Update VPP version downloaded from Nexus.
Change-Id: Iae2ee6d576347262d9f3f9a9e9b9cc65dbc5bf5e Signed-off-by: Matej Klotton <mklotton@cisco.com>
Diffstat (limited to 'resources/libraries/bash')
-rw-r--r--resources/libraries/bash/dut_setup.sh33
1 files changed, 25 insertions, 8 deletions
diff --git a/resources/libraries/bash/dut_setup.sh b/resources/libraries/bash/dut_setup.sh
index 077fdcc8c9..c6bd0fbbe2 100644
--- a/resources/libraries/bash/dut_setup.sh
+++ b/resources/libraries/bash/dut_setup.sh
@@ -13,32 +13,49 @@
# limitations under the License.
echo
-echo Restart VPP
+echo List vpp packages
echo
-sudo -S service vpp restart
+dpkg -l vpp\*
echo
-echo List vpp packages
+echo See vpp process
echo
-dpkg -l vpp\*
+ps aux | grep vpp
echo
-echo List /proc/meminfo
+echo See /etc/vpp/startup.conf
echo
-cat /proc/meminfo
+cat /etc/vpp/startup.conf
echo
-echo See vpp process
+echo Restart VPP
echo
-ps aux | grep vpp
+sudo -S service vpp restart
+
+echo
+echo List /proc/meminfo
+echo
+cat /proc/meminfo
echo
echo See free memory
echo
free -m
+echo
+echo See vpp process
+echo
+ps aux | grep vpp
+
echo UUID
sudo dmidecode | grep UUID
echo Add dpdk-input trace
sudo vpp_api_test <<< "exec trace add dpdk-input 100"
+RESULT=$?
+if [ $RESULT -ne 0 ]; then
+ echo
+ echo See /var/log/syslog
+ sudo tail -n 200 /var/log/syslog
+ exit $RESULT
+fi