#!/bin/bash

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


#IP of Assistant is taken from /etc/hosts file.
#Record is inserted into /etc/hosts file by ha
#LCOUNT=`grep "^192.168.*assistant_intl\$" /etc/hosts | wc -l`
#[ $LCOUNT -lt 1 ] && /opt/rcon/bin/as_hosts >/dev/null

grep "^192.168.*assistant_intl\$" /etc/hosts | awk '{ print $1}'
exit 0

