All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stewart Smith <stewart@linux.ibm.com>
To: Ed Tanous <ed.tanous@intel.com>, openbmc@lists.ozlabs.org
Subject: Re: SOL Logging
Date: Mon, 10 Sep 2018 16:52:46 +1000	[thread overview]
Message-ID: <87r2i1u9mp.fsf@linux.vnet.ibm.com> (raw)
In-Reply-To: <3d11886a-a3c7-37a0-f836-1f1eb64b1a46@intel.com>

Ed Tanous <ed.tanous@intel.com> writes:
> On 09/04/2018 05:07 PM, Emily Shaffer wrote:
>> I wonder if there's a different and more useful way we can provide the 
>> console scrollback. Thinking about this, it's not just a GUI issue, 
>> right - we deliver our console over TCP to a client elsewhere and would 
>> have the same dedupe issues if we needed to start providing backlog.  
>
> Correct, this isn't _just_ a webui issue.  It happens on all the 
> available interfaces (SSH, HTML5, and obmc-console-client)
>
>> Speaking with almost no experience implementing server-side sockets, is 
>> it possible for us to keep that ring buffer in the console socket as well?
>
> obmc-console already keeps a ring-buffer style log of all the previous 
> characters.  The easiest to implement answer, which is probably good 
> enough for most cases, would be to simply make obmc-console barf up the 
> saved console log ring buffer when any new client connects.  This will 
> have problems if your control characters have run off the end of the 
> buffer, and the console would appear to quickly replay your last X 
> characters worth of interactions, which isn't desired.
>
> I could also imagine a case where this isn't the desired behavior if 
> you're using automation to interact with SSH/SOL, so it might need to be 
> selectable by the client or have some kind of reasonable workaround.

Yeah, if we got some random amount of previous console text over IPMI
SoL or SSH host console, I can imagine that all my CI scripts would
pretty spectacularly blow up.

For the Web UI though, I can see that keeping something like a tmux
session would be good though.
-- 
Stewart Smith
OPAL Architect, IBM.

  parent reply	other threads:[~2018-09-10  6:52 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-24 21:02 SOL Logging Tanous, Ed
2018-08-25  0:32 ` Sai Dasari
2018-08-27 12:48 ` Andrew Geissler
2018-08-27 14:21   ` Rebecca Broekhuis
2018-08-27 17:00 ` Jeremy Kerr
2018-08-28 21:16   ` Rebecca Broekhuis
2018-08-28 23:00     ` Tanous, Ed
2018-08-29  2:13     ` Jeremy Kerr
2018-08-29 11:37 ` Alexander Amelkin
2018-08-29 20:08   ` Rebecca Broekhuis
2018-09-05  0:07     ` Emily Shaffer
2018-09-05  0:30       ` Ed Tanous
2018-09-05 18:23         ` Rebecca Broekhuis
2018-09-10  6:52         ` Stewart Smith [this message]
2018-09-14  2:58         ` Jeremy Kerr

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=87r2i1u9mp.fsf@linux.vnet.ibm.com \
    --to=stewart@linux.ibm.com \
    --cc=ed.tanous@intel.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.