Chapter 4:
GUI
& CLI Tools
55
v3.3-a 12/07/2022
4.4.2 Applying changes online
If a parameter is writeable, this means that it can be directly applied by using the following syntax:
gpa_ctrl <module_name> <param_path> <new_value>
For example, to disable the alert for the right power supply the user must execute:
gpa_ctrl hald pws/pwsr/disable_alert Yes
If the command returns without any errors, this mean that the changes have been properly
applied. This can be checked by reading back the output of
gpa_ctrl hald pws/pwsr/
4.4.3 Other functionalities
To improve legibility, the parameters can be displayed in a tree view by adding the
–
t flag:
root@zen-425:~#
gpa_ctrl
-t
hald
pws
0
hald
LEGEND:
dir
writable
readable
expert
0.9100
pws
0.9110
├──
pwsl
0.9110.1
│
├──
status
(OK)
0.9110.2
│
├──
temperature
(40C)
0.9110.3
│
├──
v_in
(235.500000V)
0.9110.4
│
├──
v_out
(11.968750V)
0.9110.5
│
├──
power_in
(29.000000W)
0.9110.6
│
├──
power_out
(23.000000W)
0.9110.7
│
└──
disable_alert
(Yes)
0.9120
└──
pwsr
0.9120.1
├──
status
(NOT
DETECTED)
0.9120.2
├──
temperature
(0C)
0.9120.3
├──
v_in
(0.000000V)
0.9120.4
├──
v_out
(0.000000V)
0.9120.5
├──
power_in
(0.000000W)
0.9120.6
├──
power_out
(0.000000W)
0.9120.7 └──
disable_alert
(Yes)
The user can get more information about the parameters by using the verbose flag -v:
root@zen-425:~#
gpa_ctrl
-v
hald
pws/pwsr
--- hald ---------------------------------------------------------|
---
---
desc:
The
Hardware
Abstraction
Layer
Daemon
(HALD)
---
status:
Running
(0)
---
nparams:
Warning:0
,
Critical:0
,
Out-of-sync:0
---
0.9120.1 pws/pwsr/status : NOT DETECTED range:[0,65535]
Содержание WR-Z16
Страница 2: ...Chapter 1 Introduction 2 v3 3 a 12 07 2022 ...
Страница 10: ...Chapter 1 Introduction 10 v3 3 a 12 07 2022 ...
Страница 72: ...Chapter 5 Timing 72 v3 3 a 12 07 2022 ...
Страница 148: ...Chapter 8 Device Maintenance 148 v3 3 a 12 07 2022 ...
Страница 159: ...Chapter 9 Troubleshooting 159 v3 3 a 12 07 2022 Severity info local0 rsyslog server1 IP local0 rsyslog server2 IP ...