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:
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
17 echo "[Command_start_exec] '$1'"
18 echo -n "[Command_outputs] "
20 echo "[Command_done_exec] '$1'"
25 echo "[Command_desc] Starting ${0}"
29 cmd 'ps aux | grep vpp'
31 cmd 'cat /etc/vpp/startup.conf'
33 cmd 'sudo -S service vpp restart'
35 echo "[Command_desc] SLEEP for three seconds, so that VPP is up for sure"
38 cmd 'cat /proc/meminfo'
42 cmd 'ps aux | grep vpp'
44 cmd 'sudo dmidecode | grep UUID'
48 cmd 'tail -n 50 /var/log/syslog'
50 echo "[Command_desc] Adding dpdk-input trace"
51 cmd 'sudo vpp_api_test <<< "exec trace add dpdk-input 100"'