#!/bin/bash

# Please don't use this script
# use "getrempubIP -c assistant" instead
#


GETHINFO="/opt/bin/gethinfo"

if [ -x $GETHINFO ];then
  #Public IP address on Assistant
  exit 200
fi

#Public IP address on SOCO2 Platform
#<entry key="customer-lan.ip-address">10.6.44.6</entry>
if [ -x /opt/webservice/scripts/gethaipsetupentry.sh ];then
  IP=$(/opt/webservice/scripts/gethaipsetupentry.sh customer-lan.assistant-ip-address)
  echo $IP
else
  echo "IP_not_recognized"
  exit 216
fi

