Copyright 2017. All rights reserved. Advantech Co. Ltd.
Page 68
# 1. CPU check
dui start 1 3 cpu_id=GenuineIntel cpu_model=N4200 frequency=1.10 core_count=4
# 2. Ethernet check
dui start 4 1
# 3. Storage check
dui start 5 2
# 4. RTC check
dui start 9 1
# Wait for all test done
dui wait 1 3
dui wait 4 1
dui wait 5 2
dui wait 9 1
# Get result respectively
dui log 1 3
dui log 4 1
dui log 5 2
dui log 9 1
puts stdout "End of running Tcl script!"
Figure 53: An Example of DUI Batch Test Script
This batch test script had been optimized with the shortest testing time required. Users can
use the ‘run’ command (c.f.
Section 3.10.3.12
) to perform a batch test based on the
diagnostic functions and testing procedures defined in the script. After the testing is done,
an overall summarized test log will be generated at the end of console output or users can
use any text editor to examine the log named dui_<service>_<function>_<date>_<time>.log
in the
/var/log
directory. Additionally, users can check individual testing log per diagnostic
function via the ‘log’ command (
cf. Section 3.10.3.11
). The console output is provided here
for reference:
cli> run run_tcl.tcl
Run script: run_tcl.tcl