Remote reinstall..... Ideas..
Hello I know you can do a rm -R / and completely remove everything on the hard drive remotely and the system will stay up until reboot because i have done this a few times.. Just curious though if its possible to remote reinstall asterisk from the scripts that dial uses? Example dial installation script etc and data etc.. idk just thinking about situations where i might need a hard reset of everything and it would be nice to be able to send some dtmf and do complete restore remotely or ssh in and do a complete restore etc.. Of course i would have to modify things a bit to keep my vpns and stuff in the system but it might be worth a shot.. Just thinking.. *************************************************** CONFIDENTIALITY NOTICE: Confidential information, such as identifiable patient health information or business information, is subject to protection under state and federal law. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. **************************************************
Install a fresh Copy of dial to another filesystem and then, once you're done, tell the bootloader to boot to the new filesystem and remove the old one Bryan VO1MXZ Sent from my iPhone
On Nov 4, 2017, at 3:42 PM, Loren Tedford <loren@lorentedford.com> wrote:
Hello I know you can do a rm -R / and completely remove everything on the hard drive remotely and the system will stay up until reboot because i have done this a few times.. Just curious though if its possible to remote reinstall asterisk from the scripts that dial uses? Example dial installation script etc and data etc.. idk just thinking about situations where i might need a hard reset of everything and it would be nice to be able to send some dtmf and do complete restore remotely or ssh in and do a complete restore etc.. Of course i would have to modify things a bit to keep my vpns and stuff in the system but it might be worth a shot..
Just thinking..
*************************************************** CONFIDENTIALITY NOTICE: Confidential information, such as identifiable patient health information or business information, is subject to protection under state and federal law. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. ************************************************** _______________________________________________ App_rpt-users mailing list App_rpt-users@lists.allstarlink.org http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://lists.allstarlink.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.
Or have a usb key on the machine with a live system on it that have an image of the system in a known good state Now the only problem is that you need to boot that device at boot, and that can be done by s svript that change the grub config then it issue a reboot. Now on the live usb system make a script that will DD the good image to the main hard disk, then change grub back to boot the fresh system and rebbot. Your new system is as fresh as when created.. Le dim. 5 nov. 2017 à 21:38, Bryan Taylor <overnite@me.com> a écrit :
Install a fresh Copy of dial to another filesystem and then, once you're done, tell the bootloader to boot to the new filesystem and remove the old one
Bryan VO1MXZ Sent from my iPhone
On Nov 4, 2017, at 3:42 PM, Loren Tedford <loren@lorentedford.com> wrote:
Hello I know you can do a rm -R / and completely remove everything on the hard drive remotely and the system will stay up until reboot because i have done this a few times.. Just curious though if its possible to remote reinstall asterisk from the scripts that dial uses? Example dial installation script etc and data etc.. idk just thinking about situations where i might need a hard reset of everything and it would be nice to be able to send some dtmf and do complete restore remotely or ssh in and do a complete restore etc.. Of course i would have to modify things a bit to keep my vpns and stuff in the system but it might be worth a shot..
Just thinking..
*************************************************** CONFIDENTIALITY NOTICE: Confidential information, such as identifiable patient health information or business information, is subject to protection under state and federal law. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. ************************************************** _______________________________________________ App_rpt-users mailing list App_rpt-users@lists.allstarlink.org http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://lists.allstarlink.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.
App_rpt-users mailing list App_rpt-users@lists.allstarlink.org http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://lists.allstarlink.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.
On 11/04/2017 11:12 AM, Loren Tedford wrote:
Hello I know you can do a rm -R / and completely remove everything on the hard drive remotely and the system will stay up until reboot because i have done this a few times.. Just curious though if its possible to remote reinstall asterisk from the scripts that dial uses? Example dial installation script etc and data etc.. idk just thinking about situations where i might need a hard reset of everything and it would be nice to be able to send some dtmf and do complete restore remotely or ssh in and do a complete restore etc.. Of course i would have to modify things a bit to keep my vpns and stuff in the system but it might be worth a shot..
If you have a disk image of the replacement system handy, you can try some fun with DD over SSH: dd if=<local disk image/drive> | ssh user@remote dd of=<remote drive> Example using asterisk.img as an image to write to remote disk /dev/sda: dd if=asterisk.img | ssh user@remote dd of=/dev/sda For a status display you can pipe dd through pv. (You can also try an alternative to dd like dc3dd): dd if=<local disk image/drive> | pv | ssh user@remote dd of=<remote drive> Just note that once this completes, you will have a system in a state totally different from what it booted with and things may not play well doing a normal shutdown. -Stacy KG7QIN
participants (4)
-
Bryan Taylor -
Loren Tedford -
Pierre Martel -
Stacy