Run; Figure 48: The 'Log' Command - Advantech FWA-T011 Getting Started Manual

Quickstart linux image
Hide thumbs Also See for FWA-T011:
Table of Contents

Advertisement

| 09:22:48 07/16/2018 | Report Name: cpu_ver
| 09:22:48 07/16/2018 | File Name: /var/log/dui_01_03_20180716_092248304.log
| 09:22:48 07/16/2018 | Sub Tests: cpu_ver
| 09:22:48 07/16/2018 | Failed Sub Tests:
| 09:22:48 07/16/2018 | Start Time: 2018-07-16 09:22:48
| 09:22:48 07/16/2018 | End Time: 2018-07-16 09:22:48
| 09:22:48 07/16/2018 | Board Manufacturer: Advantech
| 09:22:48 07/16/2018 | Board Name: ACPI6-B

Figure 48: The 'log' Command

All DUI log files are saved under the /var/log directory as the file named
dui_<service ID>_<function ID>_<date>_<time>.log.

3.10.3.12 run

The 'run' command is used to execute a Tcl script which may comprise several DUI
commands to run specific diagnostic or update functions at user's requirement or
preference:
cli > run <script name>
An example of DUI Tcl script and the execution result are provided here for reference. It
executes the cpu_ver diagnostic function (see Sections 3.10.3.3 and 3.10.3.10) with specific
parameter values, waits for the execution ends then prints the test log:
# vim test.tcl
puts stdout "Run DUI functions from Tcl script!"
dui start 1 3 cpu_id="GenuineIntel" cpu_model="N4200" frequency=1.10 core_count=4
dui wait 1 3
dui log 1 3
cli> run test.tcl
Run script: test.tcl
Run DUI functions from Tcl script!
cmd: start 1 3 cpu_id="GenuineIntel" cpu_model="N4200" frequency=1.10 core_count=4
start the function 3 of service 1 ...
start function OK.
cmd: wait 1 3
wait function completed.
wait function OK.
| 10:20:10 07/16/2018 | [INFO] | service name: CPU
| 10:20:10 07/16/2018 | [INFO] | function name: cpu_ver
| 10:20:10 07/16/2018 | [INFO] | cpu_id : GenuineIntel
| 10:20:10 07/16/2018 | [INFO] | cpu_model : N4200
| 10:20:10 07/16/2018 | [INFO] | frequency : 1.10
| 10:20:10 07/16/2018 | [INFO] | core_count: 4
Page 61
Copyright 2017. All rights reserved. Advantech Co. Ltd.

Advertisement

Table of Contents
loading

Table of Contents