All of lore.kernel.org
 help / color / mirror / Atom feed
* phosphor logging
@ 2019-11-27  2:40 Jeff Chan
  2019-11-27  2:49 ` CS20 CHLi30
  2019-11-27  5:08 ` phosphor logging Devender Rao
  0 siblings, 2 replies; 5+ messages in thread
From: Jeff Chan @ 2019-11-27  2:40 UTC (permalink / raw)
  To: openbmc

[-- Attachment #1: Type: text/plain, Size: 893 bytes --]

Dear openbmc developer,

I'm debugging chassis power on issue, and found that I can't use journalctl
to display debug information, for example:

in chassis_state_manager.cpp
Chassis::Transition Chassis::requestedPowerTransition(Transition value)
{

log<level::INFO>("Change to Chassis Requested Power State",
entry("CHASSIS_REQUESTED_POWER_STATE=%s",
convertForMessage(value).c_str()));
executeTransition(value);
return server::Chassis::requestedPowerTransition(value);
}

but journalctl only display "Change to Chassis Requested Power State", the
"CHASSIS_REQUESTED_POWER_STATE=%s" part is missed, can someone tell me how
to get it back? I tried google but can't find the answer.

And that will be great if someone can guide me how to port and debug power
control, I tried "obmutil chassison" in debug console but doesn't work. I
can't find detailed document about porting.

Thank you!

Jeff

[-- Attachment #2: Type: text/html, Size: 3680 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: phosphor logging
  2019-11-27  2:40 phosphor logging Jeff Chan
@ 2019-11-27  2:49 ` CS20 CHLi30
  2019-11-27  3:27   ` 回覆:phosphor logging ‪‪‪‪Jeff Chan‬‬‬‬
  2019-11-27  5:08 ` phosphor logging Devender Rao
  1 sibling, 1 reply; 5+ messages in thread
From: CS20 CHLi30 @ 2019-11-27  2:49 UTC (permalink / raw)
  To: Jeff Chan, openbmc

[-- Attachment #1: Type: text/plain, Size: 2070 bytes --]

Hi Jeff,
You need to use “-o verbose” when you using journalctl command as below:
journalctl --system --no-pager -o verbose

Best regards,
Tim

From: openbmc [mailto:openbmc-bounces+chli30=nuvoton.com@lists.ozlabs.org] On Behalf Of Jeff Chan
Sent: Wednesday, November 27, 2019 10:40 AM
To: openbmc@lists.ozlabs.org
Subject: phosphor logging

Dear openbmc developer,

I'm debugging chassis power on issue, and found that I can't use journalctl to display debug information, for example:

in chassis_state_manager.cpp
Chassis::Transition Chassis::requestedPowerTransition(Transition value)
{

    log<level::INFO>("Change to Chassis Requested Power State",
                     entry("CHASSIS_REQUESTED_POWER_STATE=%s",
                           convertForMessage(value).c_str()));
    executeTransition(value);
    return server::Chassis::requestedPowerTransition(value);
}

but journalctl only display "Change to Chassis Requested Power State", the "CHASSIS_REQUESTED_POWER_STATE=%s" part is missed, can someone tell me how to get it back? I tried google but can't find the answer.

And that will be great if someone can guide me how to port and debug power control, I tried "obmutil chassison" in debug console but doesn't work. I can't find detailed document about porting.

Thank you!

Jeff




________________________________
The privileged confidential information contained in this email is intended for use only by the addressees as indicated by the original sender of this email. If you are not the addressee indicated in this email or are not responsible for delivery of the email to such a person, please kindly reply to the sender indicating this fact and delete all copies of it from your computer and network server immediately. Your cooperation is highly appreciated. It is advised that any unauthorized use of confidential information of Nuvoton is strictly prohibited; and any information in this email irrelevant to the official business of Nuvoton shall be deemed as neither given nor endorsed by Nuvoton.

[-- Attachment #2: Type: text/html, Size: 12712 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* 回覆:phosphor logging
  2019-11-27  2:49 ` CS20 CHLi30
@ 2019-11-27  3:27   ` ‪‪‪‪Jeff Chan‬‬‬‬
  0 siblings, 0 replies; 5+ messages in thread
From: ‪‪‪‪Jeff Chan‬‬‬‬ @ 2019-11-27  3:27 UTC (permalink / raw)
  To: CS20 CHLi30, openbmc

[-- Attachment #1: Type: text/html, Size: 8625 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re:  phosphor logging
  2019-11-27  2:40 phosphor logging Jeff Chan
  2019-11-27  2:49 ` CS20 CHLi30
@ 2019-11-27  5:08 ` Devender Rao
  2019-12-04 20:57   ` Vernon Mauery
  1 sibling, 1 reply; 5+ messages in thread
From: Devender Rao @ 2019-11-27  5:08 UTC (permalink / raw)
  To: ckimchan17; +Cc: openbmc

[-- Attachment #1: Type: text/html, Size: 5321 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: phosphor logging
  2019-11-27  5:08 ` phosphor logging Devender Rao
@ 2019-12-04 20:57   ` Vernon Mauery
  0 siblings, 0 replies; 5+ messages in thread
From: Vernon Mauery @ 2019-12-04 20:57 UTC (permalink / raw)
  To: Devender Rao; +Cc: ckimchan17, openbmc

On 27-Nov-2019 05:08 AM, Devender Rao wrote:
>try "journalctl -o json-pretty > /tmp/logfile" and in the log file search for "
>HASSIS_REQUESTED_POWER_STATE"

I created a little script because I wanted to see all the stuff getting 
logged in ipmi land. This could be generalized, but maybe not automated 
for any set of repos.

This script creates a script that can then be run on the BMC, and only 
prints the fields you care about rather than all the fields from 
verbose printing.

--Vernon

======================8<----------------------
#!/bin/sh

cat <<EOF
#!/bin/sh
F=MESSAGE,SYSLOG_IDENTIFIER
EOF
for P in phosphor-host-ipmid phosphor-net-ipmid kcsbridge; do
        (
                cd $P
                # find entry("<F>") and split them out
                git grep '\<entry("' | sed 's/\(\<entry("[^)]*\)/\1\n/g' |
                        grep 'entry' | sed 's/.*entry("\([-_A-Z0-9]*\).*/F=$F,\1/ig'
        )
done | sort | uniq
cat <<EOF
T="-t ipmid"
T="\$T -t netipmid -t netipmid-eth0 -t netipmid-eth1"
T="\$T -t kcsbridged -t kcsbridged-ipmi-kcs3 -t kcsbridged-ipmi-kcs4"

journalctl -f -o verbose -p 7 \$T --output-fields=\$F | \\
        sed 's/\(^[^\s].*UTC\).*/\1/'
EOF

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-12-04 20:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-27  2:40 phosphor logging Jeff Chan
2019-11-27  2:49 ` CS20 CHLi30
2019-11-27  3:27   ` 回覆:phosphor logging ‪‪‪‪Jeff Chan‬‬‬‬
2019-11-27  5:08 ` phosphor logging Devender Rao
2019-12-04 20:57   ` Vernon Mauery

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.