Hi,
Part of Current script :-
------------------------------
set -A TELNET_HOST_ARR ${telnet_host_str}
where ${telnet_host_str} contains list of hostnames.
Like telnet_host_str="alden biddy groucho"
echo ${telnet_host_str} | grep $target_system > /dev/null
where target_system="groucho"<---hostname of one machine
==============================================
Enhance script to be done is:-
---------------------------------------
set -A TELNET_HOST_ARR ${telnet_host_str}
where ${telnet_host_str} contains list of hostnames (or) ipaddress.
Like telnet_host_str="15.146.230.65 biddy 15.146.230.119"
Please have a look at my proposed solution below and let me know your valuable review comments.
Solution:
=======
ipaddress=$(nslookup ${target_system} |grep -p ${target_system} | grep Addre
ss | awk '{print $2}')
echo ${telnet_host_str} || (grep $target_system && grep $ipaddress) > /dev/n
ull
Thanks in Advance,
Shammer.