EasyManuals Logo

Digi IX20 User Manual

Digi IX20
1188 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #998 background imageLoading...
Page #998 background image
Containers Create a custom container
IX20 User Guide
998
4. Provide a label for the script, for example:
(config system schedule script 0)> label test_lxc
(config system schedule script 0)>
5. Set the mode to interval:
(config system schedule script 0)> when interval
(config system schedule script 0)>
6. Set the interval to ten seconds:
(config system schedule script 0)> on_interval 10s
(config system schedule script 0)>
7. Set the commandsthat will execute the script:
(config system schedule script 0)> commands "lxc script_name /bin/ping -c
1 IP_address"
(config system schedule script 0)>
For example:
(config system schedule script 0)> commands "lxc test_lxc /bin/ping -c 1
192.168.1.146"
(config system schedule script 0)>
8. Disable the sandbox. Sandbox restrictionsare not necessary when a container is used.
(config system schedule script 0)> sandbox false
(config system schedule script 0)>
9. Save the configuration and apply the change
(config)> save
Configuration saved.
>
10. Typeexit to exit the Admin CLI.
Depending on your device configuration, you may be presented with an Access selection
menu. Type quit to disconnect from the device.
Create a custom container
This example createsa simple custom container that containsa python script in the /etc directory.
In this example, we will use a simple container file named test_lxc.tgz. You can download test_lxc.tgz
from the Digi website.
At the command line of a Linux host, we will unpack the file, add a simple python script, and create a
new container file that includes the python script.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Digi IX20 and is the answer not in the manual?

Digi IX20 Specifications

General IconGeneral
CategoryWireless Router
Cellular Connectivity4G LTE
Ethernet Ports4
Wi-Fi802.11ac
SIM Slots2
WAN Ports1
LAN Ports3
Weight0.5 kg
Operating Temperature-40°C to +70°C (-40°F to +158°F)