SBC factory reset from ssh or console

To do a factory reset from ssh session or console port, you can follow these steps.

Please remember: These commands have to be run under the root user.

Following these steps will save your license and network setting:

 

  1. To ensure you have this file      sng-factory-reset-image.tgz,run the following command in ssh session or console:

     ls  /usr/local/nsc/archive/sng-factory-reset-image.tgz 
     

  2. Then run this command, it will change system to factory setting and will keep your license:

    /bin/tar -xpsvzf /usr/local/nsc/archive/sng-factory-reset-image.tgz  -C / --exclude='usr/local/nsc/conf/license'
     

  3. To restore network information, run this command  

    /usr/local/nsc/hooks/network.restore.post --mode=update

  4. Type in 

    reboot 

 

Return to Documentation Home I Return to Sangoma Support