![Digi TransPort LR54-AA401 User Manual Download Page 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