When running with debug on in hierarchy mode and Perl, openbmc commands do not display debug output. But if no hierarchy mode and Perl, openbmc commands do display debug output.
Hierarchy and Perl - no debug output from service node :
[root@boston02 ~]# lstree -s
Service Node: sn02
|__mid08tor03cn01
|__mid08tor03cn26
[root@boston02 ~]#
[root@boston02 ~]# chdef -t site clustersite xcatdebugmode=1
1 object definitions have been created or modified.
[root@boston02 ~]#
[root@boston02 ~]# time rvitals mid08tor03cn01 voltage -V
Thu Apr 25 14:04:10 2019 OpenBMC: [boston02]: [openbmc_debug_perl]
[sn02]: Running command in Perl
[sn02]: mid08tor03cn01: Ps0 Input Voltage: 206 Volts
[sn02]: mid08tor03cn01: Ps0 Output Voltage: 12.343 Volts
[sn02]: mid08tor03cn01: Ps1 Input Voltage: 204.5 Volts
[sn02]: mid08tor03cn01: Ps1 Output Voltage: 12.218 Volts
real 0m9.165s
user 0m0.143s
sys 0m0.011s
[root@boston02 ~]#
Hierarchy and Python - debug output from service node:
[root@boston02 ~]# lstree -s
Service Node: sn02
|__mid08tor03cn01
|__mid08tor03cn26
[root@boston02 ~]#
[root@boston02 ~]# chdef -t site clustersite xcatdebugmode=1
1 object definitions have been created or modified.
[root@boston02 ~]#
[root@boston02 ~]# chdef -t site clustersite openbmcperl=
1 object definitions have been created or modified.
[root@boston02 ~]#
[root@boston02 ~]# time rvitals mid08tor03cn01 voltage -V
[boston02]: Running command in Python
[sn02]: Thu Apr 25 14:05:37 2019 mid08tor03cn01: [openbmc_debug] login curl -k -c cjar -b cjar -X POST -H "Content-Type: application/json" https://172.21.226.1/login -d '{"data": ["root", "xxxxxx"]}'
[sn02]: Thu Apr 25 14:05:37 2019 mid08tor03cn01: [openbmc_debug] login 200 OK
[sn02]: Thu Apr 25 14:05:37 2019 mid08tor03cn01: [openbmc_debug] get_sensor_info curl -k -c cjar -b cjar -X GET -H "Content-Type: application/json" https://172.21.226.1/xyz/openbmc_project/sensors/enumerate
[sn02]: Thu Apr 25 14:05:42 2019 mid08tor03cn01: [openbmc_debug] get_sensor_info 200 OK
[sn02]: mid08tor03cn01: Ps0 Input Voltage: 206 Volts
[sn02]: mid08tor03cn01: Ps0 Output Voltage: 12.343 Volts
[sn02]: mid08tor03cn01: Ps1 Input Voltage: 205 Volts
[sn02]: mid08tor03cn01: Ps1 Output Voltage: 12.218 Volts
real 0m6.172s
user 0m0.152s
sys 0m0.000s
[root@boston02 ~]#
No hierarchy and Python - debug output from service node:
[root@boston02 ~]# lstree -s
Service Node: sn02
|__mid08tor03cn26
[root@boston02 ~]#
[root@boston02 ~]# chdef -t site clustersite xcatdebugmode=1
1 object definitions have been created or modified.
[root@boston02 ~]#
[root@boston02 ~]# time rvitals mid08tor03cn01 voltage -V
[boston02]: Running command in Python
[boston02]: Thu Apr 25 14:15:00 2019 mid08tor03cn01: [openbmc_debug] login curl -k -c cjar -b cjar -X POST -H "Content-Type: application/json" https://172.21.226.1/login -d '{"data": ["root", "xxxxxx"]}'
[boston02]: Thu Apr 25 14:15:01 2019 mid08tor03cn01: [openbmc_debug] login 200 OK
[boston02]: Thu Apr 25 14:15:01 2019 mid08tor03cn01: [openbmc_debug] get_sensor_info curl -k -c cjar -b cjar -X GET -H "Content-Type: application/json" https://172.21.226.1/xyz/openbmc_project/sensors/enumerate
[boston02]: Thu Apr 25 14:15:07 2019 mid08tor03cn01: [openbmc_debug] get_sensor_info 200 OK
[boston02]: mid08tor03cn01: Ps0 Input Voltage: 205.5 Volts
[boston02]: mid08tor03cn01: Ps0 Output Voltage: 12.343 Volts
[boston02]: mid08tor03cn01: Ps1 Input Voltage: 205 Volts
[boston02]: mid08tor03cn01: Ps1 Output Voltage: 12.218 Volts
real 0m6.800s
user 0m0.149s
sys 0m0.010s
[root@boston02 ~]#
No hierarchy and Perl - debug output from service node:
[root@boston02 ~]# lstree -s
Service Node: sn02
|__mid08tor03cn26
[root@boston02 ~]#
[root@boston02 ~]# chdef -t site clustersite xcatdebugmode=1
1 object definitions have been created or modified.
[root@boston02 ~]#
[root@boston02 ~]# chdef -t site clustersite openbmcperl=rvitals
1 object definitions have been created or modified.
[root@boston02 ~]#
[root@boston02 ~]# time rvitals mid08tor03cn01 voltage -V
Thu Apr 25 14:16:22 2019 OpenBMC: [boston02]: [openbmc_debug_perl]
[boston02]: Running command in Perl
Thu Apr 25 14:16:23 2019 mid08tor03cn01: [boston02]: [openbmc_debug_perl] curl -k -c cjar -H "Content-Type: application/json" -d '{ "data": ["root", "xxxxxx"] }' https://172.21.226.1/login
Thu Apr 25 14:16:23 2019 mid08tor03cn01: [boston02]: [openbmc_debug_perl] login_response 200 OK
Thu Apr 25 14:16:23 2019 mid08tor03cn01: [boston02]: [openbmc_debug_perl] curl -k -b cjar -X GET -H "Content-Type: application/json" https://172.21.226.1/xyz/openbmc_project/sensors/enumerate
Thu Apr 25 14:16:29 2019 mid08tor03cn01: [boston02]: [openbmc_debug_perl] rvitals_response 200 OK
[boston02]: mid08tor03cn01: Ps0 Input Voltage: 205.5 Volts
[boston02]: mid08tor03cn01: Ps0 Output Voltage: 12.343 Volts
[boston02]: mid08tor03cn01: Ps1 Input Voltage: 205 Volts
[boston02]: mid08tor03cn01: Ps1 Output Voltage: 12.218 Volts
real 0m6.986s
user 0m0.151s
sys 0m0.002s
[root@boston02 ~]#
When running with debug on in hierarchy mode and Perl, openbmc commands do not display debug output. But if no hierarchy mode and Perl, openbmc commands do display debug output.
Hierarchy and Perl - no debug output from service node :
Hierarchy and Python - debug output from service node:
No hierarchy and Python - debug output from service node:
No hierarchy and Perl - debug output from service node: