Readback A Specific Parameter; Applying Changes Online - Safran WR-Z16 User Manual

Table of Contents

Advertisement

4.5  CLI Monitoring
1. The state of the parameters. In this example only the status of the right
2. The OID of the parameter.
3. The path of the parameter inside the module.
4. The value of the parameter.
5. The unit of the parameter (if relevant).
The user can also list only the parameters related to the right power supply by
executing:
gpa_ctrl hald pws/pwsr/
4.5.1.1

Readback a specific parameter

It might also be interesting to only readback a specific parameter. To only get the
status of the left and right power supplies the user should execute:
root@z16- 006:~#
OK
0
root@z16- 006:~#
Warning:
NOT
204
4.5.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
50
power supply (0.9120.1) is in a critical state (C).
gpa_ ctrl
gpa_ ctrl
Note:
Return code and stdout/stderr: The gpa_ ctrl print parameters to
stdout/stderr according to their status such that an advanced user
can easily filter them. It also returns specific error code depending on
the status. For more information please read carefully gpa_ctrl –h.
hald
pws/pwsl/status;
hald
pws/pwsr/status;
C
CHAPTER
4
echo
echo
pws/pwsr/status
DETECTED
WR-Z16 User Manual Rev. v5.0
$?
$?

Advertisement

Table of Contents
loading

Table of Contents