Containers
Schedule a script to run in the container
TX54 User Guide
849
5. (Optional) For
Label
, type
container_script
.
6. For
Run mode
, select
Interval
.
7. For
Interval
, type
10s
.
8. For
Commands
, type the following:
lxc
container_name
/bin/ping -c 1 IP_address
For example:
lxc test_lxc /bin/ping -c 1 192.168.1.146
9. Click to disable
Sandbox
. Sandbox restrictions are not necessary when a container is used.
10. Click
Apply
to save the configuration and apply the change.
Command line
1. Log into the TX54 command line as a user with full Admin access rights.
Depending on your device configuration, you may be presented with an
Access selection
menu
. Type
admin
to access the Admin CLI.
2. At the command line, type
config
to enter configuration mode:
> config
(config)>
3. Add a script:
(config)> add system schedule script end
(config system schedule script 0)>
4. Provide a label for the script, for example:
(config system schedule script 0)> label test_lxc
(config system schedule script 0)>
Содержание TX54
Страница 1: ...TX54 User Guide Firmware version 22 2 ...
Страница 190: ...Interfaces Bridging TX54 User Guide 190 ...
Страница 293: ...Hotspot Hotspot configuration TX54 User Guide 293 ...
Страница 332: ...Hotspot Show hotspot status and statistics TX54 User Guide 332 ...
Страница 584: ...Services Simple Network Management Protocol SNMP TX54 User Guide 584 4 Click Download ...
Страница 1069: ...Command line interface Command line reference TX54 User Guide 1069 reboot Reboot the system Parameters None ...