| #!/bin/bash |
| |
| ## |
| # Copyright 2015 Telefonica Investigacion y Desarrollo, S.A.U. |
| # This file is part of openmano |
| # All Rights Reserved. |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| # not use this file except in compliance with the License. You may obtain |
| # a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| # License for the specific language governing permissions and limitations |
| # under the License. |
| # |
| # For those usages not covered by the Apache License, Version 2.0 please |
| # contact with: nfvlabs@tid.es |
| ## |
| |
| #It generates a report for debugging |
| |
| DIRNAME=$(readlink -f ${BASH_SOURCE[0]}) |
| DIRNAME=$(dirname $DIRNAME ) |
| OMCLIENT=openmano |
| |
| #get screen log files at the beginning |
| echo |
| echo "-------------------------------" |
| echo "log files" |
| echo "-------------------------------" |
| echo "-------------------------------" |
| echo "OPENMANO" |
| echo "-------------------------------" |
| echo "cat /var/log/osm/openmano.log*" |
| cat /var/log/osm/openmano.log* |
| echo |
| echo "-------------------------------" |
| echo |
| |
| #get version |
| echo |
| echo "-------------------------------" |
| echo "version" |
| echo "-------------------------------" |
| echo "-------------------------------" |
| echo "OPENMANO" |
| echo "-------------------------------" |
| echo "openmanod --version" |
| openmanod --version |
| echo |
| echo "-------------------------------" |
| echo |
| |
| #get configuration files |
| echo "-------------------------------" |
| echo "Configuration files" |
| echo "-------------------------------" |
| echo "-------------------------------" |
| echo "OPENMANO" |
| echo "-------------------------------" |
| echo "cat /etc/osm/openmanod.cfg" |
| cat /etc/osm/openmanod.cfg |
| echo "-------------------------------" |
| echo |
| |
| #get list of items |
| for verbose in "" "-vvv" |
| do |
| echo "-------------------------------" |
| echo "OPENMANO$verbose" |
| echo "-------------------------------" |
| echo "$OMCLIENT config $verbose" |
| $OMCLIENT config |
| echo "-------------------------------" |
| echo "$OMCLIENT tenant-list $verbose" |
| $OMCLIENT tenant-list $verbose |
| echo "-------------------------------" |
| echo "$OMCLIENT datacenter-list --all" |
| $OMCLIENT datacenter-list --all |
| echo "-------------------------------" |
| echo "$OMCLIENT datacenter-list $verbose" |
| $OMCLIENT datacenter-list $verbose |
| echo "-------------------------------" |
| dclist=`$OMCLIENT datacenter-list |awk '{print $1}'` |
| for dc in $dclist; do |
| echo "$OMCLIENT datacenter-net-list $dc $verbose" |
| $OMCLIENT datacenter-net-list $dc $verbose |
| echo "-------------------------------" |
| done |
| echo "$OMCLIENT vnf-list $verbose" |
| $OMCLIENT vnf-list $verbose |
| echo "-------------------------------" |
| vnflist=`$OMCLIENT vnf-list |awk '$1!="No" {print $1}'` |
| for vnf in $vnflist; do |
| echo "$OMCLIENT vnf-list $vnf $verbose" |
| $OMCLIENT vnf-list $vnf $verbose |
| echo "-------------------------------" |
| done |
| echo "$OMCLIENT scenario-list $verbose" |
| $OMCLIENT scenario-list $verbose |
| echo "-------------------------------" |
| scenariolist=`$OMCLIENT scenario-list |awk '$1!="No" {print $1}'` |
| for sce in $scenariolist; do |
| echo "$OMCLIENT scenario-list $sce $verbose" |
| $OMCLIENT scenario-list $sce $verbose |
| echo "-------------------------------" |
| done |
| echo "$OMCLIENT instance-scenario-list $verbose" |
| $OMCLIENT instance-scenario-list $verbose |
| echo "-------------------------------" |
| instancelist=`$OMCLIENT instance-scenario-list |awk '$1!="No" {print $1}'` |
| for i in $instancelist; do |
| echo "$OMCLIENT instance-scenario-list $i $verbose" |
| $OMCLIENT instance-scenario-list $i $verbose |
| echo "-------------------------------" |
| done |
| echo |
| |
| done |
| echo |