Restore Config
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
- GWS built-in SSH connection (GWS Setup window -> Set> Open remote terminal)
- Other SSH connection to the Telem-GWx device
- 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 to manually remove all the previous configs in case they contain sensitive data (VPN certificates, pre-shared keys, user authentication etc.)
root@telem-gwm /home/martem $ rm /usr/local/etc/telem/setup.tar.xz.*