Add --uninstall to install-db-server.sh
[osm/openvim.git] / scripts / openvim-report.sh
1 #!/bin/bash
2
3 ##
4 # Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
5 # This file is part of openvim
6 # All Rights Reserved.
7 #
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
11 #
12 # http://www.apache.org/licenses/LICENSE-2.0
13 #
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
18 # under the License.
19 #
20 # For those usages not covered by the Apache License, Version 2.0 please
21 # contact with: nfvlabs@tid.es
22 ##
23
24 #It generates a report for debugging
25
26 DIRNAME=$(readlink -f ${BASH_SOURCE[0]})
27 DIRNAME=$(dirname $DIRNAME )
28 OVCLIENT=$DIRNAME/../openvim
29
30 #get screen log files at the beginning
31 echo
32 echo "-------------------------------"
33 echo "log files"
34 echo "-------------------------------"
35 echo
36 echo "cat $DIRNAME/../logs/openvim.log*"
37 cat $DIRNAME/../logs/openvim.log*
38 echo
39 echo
40
41 #get version
42 echo
43 echo "-------------------------------"
44 echo "version"
45 echo "-------------------------------"
46 echo "cat $DIRNAME/../openvimd.py|grep ^__version__"
47 cat $DIRNAME/../openvimd.py|grep ^__version__
48 echo
49 echo
50
51 #get configuration files
52 echo "-------------------------------"
53 echo "Configuration files"
54 echo "-------------------------------"
55 echo "cat $DIRNAME/../openvimd.cfg"
56 cat $DIRNAME/../openvimd.cfg
57 echo
58
59 #get list of items
60 for verbose in "" "-vvv"
61 do
62 echo "-------------------------------"
63 echo "OPENVIM$verbose"
64 echo "-------------------------------"
65 echo "$OVCLIENT config"
66 $OVCLIENT config
67 echo "-------------------------------"
68 echo "$OVCLIENT tenant-list $verbose"
69 $OVCLIENT tenant-list $verbose
70 echo "-------------------------------"
71 echo "$OVCLIENT host-list $verbose"
72 $OVCLIENT host-list $verbose
73 echo "-------------------------------"
74 echo "$OVCLIENT net-list $verbose"
75 $OVCLIENT net-list $verbose
76 echo "-------------------------------"
77 echo "$OVCLIENT port-list $verbose"
78 $OVCLIENT port-list $verbose
79 echo "-------------------------------"
80 echo "$OVCLIENT flavor-list $verbose"
81 $OVCLIENT flavor-list $verbose
82 echo "-------------------------------"
83 echo "$OVCLIENT image-list $verbose"
84 $OVCLIENT image-list $verbose
85 echo "-------------------------------"
86 echo "$OVCLIENT vm-list $verbose"
87 $OVCLIENT vm-list $verbose
88 echo "-------------------------------"
89 echo
90
91 done
92 echo