IPv6 link checker/restarter (linux)
Shadow Hawkins on Tuesday, 04 January 2005 11:14:29
i've just created a simple link checker script for linux. just add the following script to your /etc/cron.hourly
---cut-here---
POPIPv6="2001:15c0:65ff:17::1" # POP IPv6
RunIPv6="/etc/rc.d/rc.ipv6 restart" # path to your IPv6 restart script
ping6 -c 1 $POPIPv6
if [ $? -ne 0 ]
then $RunIPv6
#just uncomment following three lines to send mail notification
#mail -s 'IPv6 restart' root@localhost << EOF
#IPv6 pinging failed. Restarting ipv6 connection...
#EOF
fi
---cut-here---
this script is fully flexibile and can be updated with some sort of mailer to notify about link condition, ...
hope it helps anyone out there...
IPv6 link checker/restarter (linux)
Jeroen Massar on Wednesday, 12 January 2005 08:49:00
Why would one need to restart a tunnel? I have never had to do this in the quite long time I have been doing tunneling stuff.
IPv6 link checker/restarter (linux)
Shadow Hawkins on Sunday, 16 January 2005 10:06:51
i had a tunnel from some other provider some time ago... and the link constantly dropped, i didn't found out why... that's why i had to restart tunnel...
Posting is only allowed when you are logged in. |