blob: b53243b1f68e48647fe2eb7a8c911ace66dc21e4 [file] [log] [blame]
tiernof7aa8c42016-09-06 16:43:04 +02001#!/bin/bash
2
3##
4# Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
tierno9a61c6b2016-09-08 10:57:02 +02005# This file is part of openvim
tiernof7aa8c42016-09-06 16:43:04 +02006# 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
26DIRNAME=$(readlink -f ${BASH_SOURCE[0]})
27DIRNAME=$(dirname $DIRNAME )
28OVCLIENT=$DIRNAME/../openvim
29
30#get screen log files at the beginning
31echo
32echo "-------------------------------"
33echo "log files"
34echo "-------------------------------"
35echo
36echo "cat $DIRNAME/../logs/openvim.log*"
37cat $DIRNAME/../logs/openvim.log*
38echo
39echo
40
41#get version
42echo
43echo "-------------------------------"
44echo "version"
45echo "-------------------------------"
46echo "cat $DIRNAME/../openvimd.py|grep ^__version__"
47cat $DIRNAME/../openvimd.py|grep ^__version__
48echo
49echo
50
51#get configuration files
52echo "-------------------------------"
53echo "Configuration files"
54echo "-------------------------------"
55echo "cat $DIRNAME/../openvimd.cfg"
56cat $DIRNAME/../openvimd.cfg
57echo
58
59#get list of items
60for verbose in "" "-vvv"
61do
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
91done
92echo