Restore Config: Difference between revisions

From Phobos Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:
#SSH connection to the Telem-GWx device
#SSH connection to the Telem-GWx device


To list all the previous configs available, you need to 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:
<pre>
<pre>
martem@telem-gwm ~ $ su
martem@telem-gwm ~ $ su

Revision as of 10:42, 26 February 2015

Martem Telem-GWx devices keep previous GWS config files in memory. The path to the configuration files:

 /usr/local/etc/telem/ 

First of all, it is necessary to reach the command line interface. This can be done via

  1. GWS built-in remote terminal (GWS Setup window -> Set> Open remote terminal)
  2. Telem-GW console port (mini-USB connector on the front panel)
  3. 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:

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.