diff options
Diffstat (limited to 'resources/libraries/bash')
-rw-r--r-- | resources/libraries/bash/dut_setup.sh | 33 |
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 |