Test VIRL connection.
[csit.git] / resources / libraries / bash / dut_setup.sh
1 #!/bin/bash
2 # Copyright (c) 2016 Cisco and/or its affiliates.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at:
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 echo
16 echo Restart VPP
17 echo
18 sudo -S service vpp restart
19
20 echo
21 echo List vpp packages
22 echo
23 dpkg -l vpp\*
24
25 echo
26 echo List /proc/meminfo
27 echo
28 cat /proc/meminfo
29
30 echo
31 echo See vpp process
32 echo
33 ps aux | grep vpp
34
35 echo
36 echo See free memory
37 echo
38 free -m
39
40 echo UUID
41 sudo dmidecode | grep UUID
42
43 echo Add dpdk-input trace
44 sudo vpp_api_test <<< "exec trace add dpdk-input 100"