!/bin/bash
dhistory=/root/history
cellname=rhel77
E_class=PATROL_EV
msg='patrolagent is disconnected'
function read_line_top_bottom()
{
while read line
do
a=echo $line | awk -F";" '{print $1}'
b=echo $line | awk -F";" '{print $2}'
msend -n rhel77 -a PATROL_EV -m "$msg" -b "mc_host=$a;mc_host_address=$b"
done < /root/aa.txt
}
read_line_top_bottom