2 ##############################################################################
3 # Copyright (c) 2015 Ericsson AB and others.
4 # stefan.k.berg@ericsson.com
5 # jonas.bjurel@ericsson.com
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
20 echo "Syntax: `basename $0` deafile"
25 echo "No such DEA file: $1"
33 topdir=$(dirname $(readlink -f $BASH_SOURCE))
34 . $topdir/functions/common.sh
35 . $topdir/functions/dea-api.sh $1
37 echo "API version: `dea getApiVersion`"
39 #echo "Cluster node id for node 1 is: `dea getClusterNodeId 1`"
42 echo "Verifying that expected functions are present..."
51 dea_convertMacToShortMac \
53 dea_getClusterNodeId \
56 if type $function &>/dev/null; then
59 echo "$function: Missing!"
64 if [ $err -eq 0 ]; then
68 echo "API functions OK."
72 echo "Fuel IP address: `dea getFuelIp`"
73 echo "Fuel netmask: `dea getFuelNetmask`"
74 echo "Fuel gateway: `dea getFuelGateway`"
75 echo "Fuel hostname: `dea getFuelHostname`"
76 echo "Fuel DNS: `dea getFuelDns`"
77 echo "Short MAC of 11:22:33:44:55:66: `dea convertMacToShortMac 11:22:33:44:55:66`"