#!/bin/sh




#######################################################
#
# MAIN
#
#######################################################
# import common variable and functions
. /opt/rcon/bin/sshr-base

cutLog
tracef "== Start of execution (getlocintIP) [$(/bin/date)] =="
tracef "params = $@"


SYSTEMTYPE=$(detectSystem)
#echo "Current system is $SYSTEMTYPE"

HNAME=$(getValue $SYSTEMTYPE hname)
if [ $HNAME == "host_intl" ];then
  SYS_ILAN=$(getHostRecord $HNAME)
else
  SYS_ILAN=$(hostname2IP $SYSTEMTYPE $HNAME)
fi


tracef "== End of execution (getlocintIP) [$(/bin/date)] =="
tracef "."
echo $SYS_ILAN
exit 0 

