remote re-boot via RF
Aloha, I have a node with repeater about 15 miles away and I would like to be able to re-boot/warm boot the node when I have issues with it via RF. It is at my work location on their system and the have limited internet access to it. I was reading and saw =cop,1 ;warm boot Can I put this in my rpt.conf and add a number to the front of the = that has not been used for something else then initiate a *XXX command from the DTMF keypad and reboot the node? Just for reference the repeater is a MTR2000 with a wireliine card with no controller. I'm interfacing it with a DMK URI to an Asus eeePc running Acid. Aloha Jim NH6HI
I use a PL decoder set to an oddball tone that is hooked to the repeater receiver. I simply key up my radio on that tone for 5 seconds and the decoders output grounds the power switch then I simply key up again for 1 second and it turns the PC back on. The decoder is completely separate from the node system. I wait for it to boot and register, then I connect it to the network. If I'm not in range, I simply get an internet connection and putty into it and reboot it that way. Only problem with this method is that if the PC is locked up, (which has never happened) then my only method is the PL method described above. 73 Jim W7RY -----Original Message----- From: James R. Pilgram Sent: Wednesday, July 23, 2014 1:25 PM To: app_rpt mailing list Subject: [App_rpt-users] remote re-boot via RF Aloha, I have a node with repeater about 15 miles away and I would like to be able to re-boot/warm boot the node when I have issues with it via RF. It is at my work location on their system and the have limited internet access to it. I was reading and saw =cop,1 ;warm boot Can I put this in my rpt.conf and add a number to the front of the = that has not been used for something else then initiate a *XXX command from the DTMF keypad and reboot the node? Just for reference the repeater is a MTR2000 with a wireliine card with no controller. I'm interfacing it with a DMK URI to an Asus eeePc running Acid. Aloha Jim NH6HI _______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button" You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.
Doing it via the COP,1 only restarts Asterisk. Which can be useful To restart the machine I'd do this : XXXXXX = cmd,/path/to/script/restart.sh In the restart.sh script, do whatever housekeeping you want, and then reboot. FWIW... I have the startup macro call a function that uses localplay to have a distinctive sound file play on the air. (In my case the Doctor's TARDIS landing) I've had Asterisk crash/restart if there's a problem at the site. Hearing the sound notifies me it restarted for some reason. If you use the COP,1 it would give you a confirmation that it did in fact restart.
Just some added thoughts In the script that you are using for the re-boot, make sure that you execute ³sync² a few times, this will flush out all pending writes to the disk. Many commands have it built in, but it pays to be safe. A more brute force approach, can be implemented by using Ethernet accessed AC power controller. An outstanding product is available from http://digital-loggers.com. We run a few of them at our site. When everything else fails, this unit gets the job done. Keith On 7/23/14 5:20 PM, "Robert A. Poff WB3AWJ" <wb3awj@comcast.net> wrote:
Doing it via the COP,1 only restarts Asterisk. Which can be useful
To restart the machine I'd do this : XXXXXX = cmd,/path/to/script/restart.sh In the restart.sh script, do whatever housekeeping you want, and then reboot.
FWIW... I have the startup macro call a function that uses localplay to have a distinctive sound file play on the air. (In my case the Doctor's TARDIS landing) I've had Asterisk crash/restart if there's a problem at the site. Hearing the sound notifies me it restarted for some reason. If you use the COP,1 it would give you a confirmation that it did in fact restart.
_______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button" You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.
-- keith@goobie.org Keith Goobie Richmond Hill, ON, CANADA
The Digital Loggers DIN Relay controls up to 8 devices. It also has the ability to send 'Wake on LAN' magic packets to wake the controlling computer after power failures or other types of computer lock up. The scripting facility took a little while to get used to but the price point and overall feature functionality fit our club budget. Our problem was when power went off the computer would restart but not reboot to enable SSH access. We needed a way to enable Wake on LAN. Once we can communicate with the computer we use regular scripts to enable linking, PL tones, status reporting and everything else available with Asterisk / apt_rpt. The scripts can be accessed by a web page or DTMF or command line. Craig AC2FE Sent from my iPhone
On Jul 23, 2014, at 8:10 PM, Keith Goobie <keith@goobie.org> wrote:
Just some added thoughts
In the script that you are using for the re-boot, make sure that you execute “sync” a few times, this will flush out all pending writes to the disk. Many commands have it built in, but it pays to be safe.
A more brute force approach, can be implemented by using Ethernet accessed AC power controller. An outstanding product is available from http://digital-loggers.com. We run a few of them at our site. When everything else fails, this unit gets the job done.
Keith
On 7/23/14 5:20 PM, "Robert A. Poff WB3AWJ" <wb3awj@comcast.net> wrote:
Doing it via the COP,1 only restarts Asterisk. Which can be useful
To restart the machine I'd do this : XXXXXX = cmd,/path/to/script/restart.sh In the restart.sh script, do whatever housekeeping you want, and then reboot.
FWIW... I have the startup macro call a function that uses localplay to have a distinctive sound file play on the air. (In my case the Doctor's TARDIS landing) I've had Asterisk crash/restart if there's a problem at the site. Hearing the sound notifies me it restarted for some reason. If you use the COP,1 it would give you a confirmation that it did in fact restart.
_______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button" You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.
-- keith@goobie.org Keith Goobie Richmond Hill, ON, CANADA _______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button" You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.
participants (5)
-
Craig Saums -
James R. Pilgram -
Jim -
Keith Goobie -
Robert A. Poff WB3AWJ