![Digi TransPort LR54-AA401 Скачать руководство пользователя страница 79](http://html.mh-extra.com/html/digi/transport-lr54-aa401/transport-lr54-aa401_user-manual_2496484079.webp)
System administration and management
TransPort LR User Guide
107
Use multiple configuration files to test the configuration on remote devices
You can use multiple configuration files, along with the
command, to test a new
configuration on a remote device that might result in the remote device going offline, in which case
the device cannot be remotely accessed.
To test the configuration on a remote device, create a new configuration file with desired
configuration changes to test. In addition to the desired configuration changes, the file should
contain two
commands:
n
The first
command automatically reverts the device to use the original
configuration file.
n
The second
command schedules a reboot after a period of time.
Example test configuration file
For example, suppose you creates a new test configuration file named
test.cfg
This
test.cfg
file changes the
cellular 1 apn
parameter, and executes two
commands to automatically revert the device back to use the
config.da0
configuration file and to
reboot in
5
minutes. It then saves the configuration to
test.cfg
and reboots the device.
update config test.cfg
cellular 1 apn new-apn-to-test
autorun 1 command “update config config.da0”
autorun 2 command “reboot in 5”
save config
reboot
If the TransPort LR device does not come back online, the device automatically reverts to the old
(working) configuration file,
config.da0
, and reboots after
5
minutes.
If the device comes back online after being rebooted with the configuration (that is, the device
connected with the new cellular APN), you can cancel the scheduled reboot using the
reboot cancel
command.
reboot cancel
Using the
and
commands, you can then copy the configuration
file to the final configuration file, and change the configuration file name.
copy test.cfg config.da0
update config config.da0
Related topics
Managing configuration files on page 102
Save configuration settings to a file on page 137
Switch between configuration files on page 137
Related commands
Содержание TransPort LR54-AA401
Страница 1: ...TransPort LR User Guide User Guide ...
Страница 89: ...Upload and download files TransPort LR User Guide 125 config da0 100 254 0 3KB s 00 00 sftp exit ...
Страница 101: ...Command descriptions TransPort LR User Guide 148 cpu Show CPU usage Syntax cpu Parameters ...
Страница 124: ...Command descriptions TransPort LR User Guide 171 pwd Displays the current directory name Syntax pwd Parameters ...