4 # Copyright 2015 Telefonica Investigacion y Desarrollo, S.A.U.
5 # This file is part of openmano
8 # Licensed under the Apache License, Version 2.0 (the "License"); you may
9 # not use this file except in compliance with the License. You may obtain
10 # a copy of the License at
12 # http://www.apache.org/licenses/LICENSE-2.0
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
17 # License for the specific language governing permissions and limitations
20 # For those usages not covered by the Apache License, Version 2.0 please
21 # contact with: nfvlabs@tid.es
24 #It generates a report for debugging
26 DIRNAME=$(readlink -f ${BASH_SOURCE[0]})
27 DIRNAME=$(dirname $DIRNAME )
30 #get screen log files at the beginning
32 echo "-------------------------------"
34 echo "-------------------------------"
35 echo "-------------------------------"
37 echo "-------------------------------"
38 echo "cat /var/log/osm/openmano.log*"
39 cat /var/log/osm/openmano.log*
41 echo "-------------------------------"
46 echo "-------------------------------"
48 echo "-------------------------------"
49 echo "-------------------------------"
51 echo "-------------------------------"
52 echo "openmanod --version"
55 echo "-------------------------------"
58 #get configuration files
59 echo "-------------------------------"
60 echo "Configuration files"
61 echo "-------------------------------"
62 echo "-------------------------------"
64 echo "-------------------------------"
65 echo "cat /etc/osm/openmanod.cfg"
66 cat /etc/osm/openmanod.cfg
67 echo "-------------------------------"
71 for verbose in "" "-vvv"
73 echo "-------------------------------"
74 echo "OPENMANO$verbose"
75 echo "-------------------------------"
76 echo "$OMCLIENT config $verbose"
78 echo "-------------------------------"
79 echo "$OMCLIENT tenant-list $verbose"
80 $OMCLIENT tenant-list $verbose
81 echo "-------------------------------"
82 echo "$OMCLIENT datacenter-list --all"
83 $OMCLIENT datacenter-list --all
84 echo "-------------------------------"
85 echo "$OMCLIENT datacenter-list $verbose"
86 $OMCLIENT datacenter-list $verbose
87 echo "-------------------------------"
88 dclist=`$OMCLIENT datacenter-list |awk '{print $1}'`
90 echo "$OMCLIENT datacenter-net-list $dc $verbose"
91 $OMCLIENT datacenter-net-list $dc $verbose
92 echo "-------------------------------"
94 echo "$OMCLIENT vnf-list $verbose"
95 $OMCLIENT vnf-list $verbose
96 echo "-------------------------------"
97 vnflist=`$OMCLIENT vnf-list |awk '$1!="No" {print $1}'`
98 for vnf in $vnflist; do
99 echo "$OMCLIENT vnf-list $vnf $verbose"
100 $OMCLIENT vnf-list $vnf $verbose
101 echo "-------------------------------"
103 echo "$OMCLIENT scenario-list $verbose"
104 $OMCLIENT scenario-list $verbose
105 echo "-------------------------------"
106 scenariolist=`$OMCLIENT scenario-list |awk '$1!="No" {print $1}'`
107 for sce in $scenariolist; do
108 echo "$OMCLIENT scenario-list $sce $verbose"
109 $OMCLIENT scenario-list $sce $verbose
110 echo "-------------------------------"
112 echo "$OMCLIENT instance-scenario-list $verbose"
113 $OMCLIENT instance-scenario-list $verbose
114 echo "-------------------------------"
115 instancelist=`$OMCLIENT instance-scenario-list |awk '$1!="No" {print $1}'`
116 for i in $instancelist; do
117 echo "$OMCLIENT instance-scenario-list $i $verbose"
118 $OMCLIENT instance-scenario-list $i $verbose
119 echo "-------------------------------"