Commit 4f2a98a4 authored by Binh Nguyen's avatar Binh Nguyen

Start ospf monitors on routers

parent dbe74e95
#!/bin/bash
hn=$(hostname)
domain=$(echo $hn | awk -F'.' '{print $2"."$3"."$4"."$5}')
for i in 2 3 4
do
echo -e "\n========================="
echo "Start OSPF monitor on node $i ..."
#ssh node$i.$domain "cd ~/sripv6-linux/ospf_monitor/; nohup sudo ./start_monitor.sh 2>&1 &"
ssh node$i.$domain "cd ~/sripv6-linux/ospf_monitor/; sudo screen -S ospf_monitor -d -m ./start_monitor.sh"
done
echo "DONE starting OSPF monitors on all nodes!"
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment