From: Vernon Mauery <vernon.mauery@linux.intel.com>
To: Devender Rao <devenrao@in.ibm.com>
Cc: ckimchan17@gmail.com, openbmc@lists.ozlabs.org
Subject: Re: phosphor logging
Date: Wed, 4 Dec 2019 12:57:06 -0800 [thread overview]
Message-ID: <20191204205506.GA9613@mauery.jf.intel.com> (raw)
In-Reply-To: <OF0E392E90.A95260BC-ON002584BF.001C34AB-002584BF.001C44A9@notes.na.collabserv.com>
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
prev parent reply other threads:[~2019-12-04 20:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191204205506.GA9613@mauery.jf.intel.com \
--to=vernon.mauery@linux.intel.com \
--cc=ckimchan17@gmail.com \
--cc=devenrao@in.ibm.com \
--cc=openbmc@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.