Restore Config: Difference between revisions

From Phobos Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Martem Telem-GWx devices keep previous GWS config files in memory.  
Martem Telem-GWx devices keep previous GWS config files in memory.
The path to the configuration files:
In order to load a previous config, it is necessary to reach the command line interface. This can be done via
<pre> /usr/local/etc/telem/ </pre>
#GWS built-in SSH connection (GWS Setup window -> Set> Open remote terminal)
 
#Other SSH connection to the Telem-GWx device
First of all, it is necessary to reach the command line interface. This can be done via
#GWS built-in remote terminal (GWS Setup window -> Set> Open remote terminal)
#Telem-GW console port (mini-USB connector on the front panel)
#Telem-GW console port (mini-USB connector on the front panel)
#SSH connection to the Telem-GWx device


To list all the previous configs available, log in as root and execute the command "/etc/init.d/S11telem-config list-old". The output will display all the available previous configs:
To list all the previous configs available, log in as root and execute the command "/etc/init.d/S11telem-config list-old". The output will display all the available previous configs:

Revision as of 10:58, 26 February 2015

Martem Telem-GWx devices keep previous GWS config files in memory. In order to load a previous config, it is necessary to reach the command line interface. This can be done via

  1. GWS built-in SSH connection (GWS Setup window -> Set> Open remote terminal)
  2. Other SSH connection to the Telem-GWx device
  3. Telem-GW console port (mini-USB connector on the front panel)

To list all the previous configs available, log in as root and execute the command "/etc/init.d/S11telem-config list-old". The output will display all the available previous configs:

martem@telem-gwm ~ $ su
Password:
root@telem-gwm /home/martem $ /etc/init.d/S11telem-config list-old
Existing previous setups:
/usr/local/etc/telem/setup.tar.xz.0
/usr/local/etc/telem/setup.tar.xz.1
/usr/local/etc/telem/setup.tar.xz.2
/usr/local/etc/telem/setup.tar.xz.3
/usr/local/etc/telem/setup.tar.xz.4
root@telem-gwm /home/martem $

setup.tar.xz is the current config
setup.tar.xz.0 is the latest previous config
setup.tar.xz.4 is the oldest previous config available

To reload previous config named setup.tar.xz.0, type the command "/etc/init.d/S11telem-config old 0"

root@telem-gwm2 /home/martem $ /etc/init.d/S11telem-config old 0
/etc/init.d/S11telem-config: Old 'setup.tar.xz.0' setup exists...
/etc/init.d/S11telem-config: Starting telem-config extractor
Files /usr/local/etc/telem/setup.new.tar.xz and /usr/local/etc/telem/setup.tar.xz differ
/etc/init.d/S11telem-config: Rebooting before taking new setup
root@telem-gwm2 /home/martem $

Now, the device will be rebooted. After reboot, the device has loaded the previous config.

Note that after doing a default setup, old configurations are still available. If the device is to be handed over to third parties, make sure you manually remove all the previous configs containing sensitive data (VPN certificates, pre-shared keys, user authentication etc.)

root@telem-gwm /home/martem $ rm /usr/local/etc/telem/setup.tar.xz.*