Mailing List Archive

Telnet BRK, logging, conserver rocks, etc.
Hello,

Just wanted to say thanks for making/maintaining wonderful software.
I went through some problems to be able to SEND break signal to some Sun
machines through conserver + piped telnet + a Cisco 2511 access server,
but finally solved it. Thought I'd share my solution. In conserver.cf,
put:

BREAK3=^]send brk\n

The ^] needs to be HEX 0A (in vi: control + alt gr + 9 on my Sun). Of
course, one can always send control + alt gr + 9 on the keyboard
directly and type send brk, but I prefer to have everything set up to be
available through ^ec<foo> which is described by the help that is showed
when running console.

I also need to log some more stuff (like which users attaches/deattaches
from consoles, the time they do this (when attaching/deattaching)), but
I suppose I'll figure that out. If anyone has some patches/tips in
regards to logging more than the default, let me know.

Regards,

--
Anders.
Re: Telnet BRK, logging, conserver rocks, etc. [ In reply to ]
On Tue, Apr 09, 2002 at 02:46:22PM +0200, Anders Nordby wrote:
> I also need to log some more stuff (like which users attaches/deattaches
> from consoles, the time they do this (when attaching/deattaching)), but
> I suppose I'll figure that out. If anyone has some patches/tips in
> regards to logging more than the default, let me know.

Add the "a" option to TIMESTAMP in conserver.cf. Check out the
conserver.cf manpage for the explaination.

Todd
Re: Telnet BRK, logging, conserver rocks, etc. [ In reply to ]
hi there,

a quick note and question. first, instead of having to type an escape, you
should be able to use

BREAK3=\esend break\n

if i remember right, anyway. the man page should say for sure (i can't check
it right now), but i'm pretty sure \e will translate to an escape.

as for the question, are you using something like:

con:|telnet cisco 2002:::

or something like

con:!cisco:2002::

in your conserver.cf file? if you're using the first, conserver is going to
fork off a telnet process (and associtate a pseudo-tty for each telnet) to
communicate with each console. in the second form, conserver creates a tcp
connection to the port just like telnet will. that will allow you to use the
^ecl1 sequence to send a break. it's still good for folks to know how to set
up the '\esend brk\n' thing ('cause, who knows, some cases may need it), but
it's a lot less of an impact on your system if conserver can create the sockets
itself.

anyway, the conserver.cf manpage should explain how to set this stuff up. just
wanted to make folks aware of the system impact.

Bryan

Quoting Anders Nordby <anders@fix.no>:
> Hello,
>
> Just wanted to say thanks for making/maintaining wonderful software.
> I went through some problems to be able to SEND break signal to some
> Sun
> machines through conserver + piped telnet + a Cisco 2511 access
> server,
> but finally solved it. Thought I'd share my solution. In conserver.cf,
> put:
>
> BREAK3=^]send brk\n
>
> The ^] needs to be HEX 0A (in vi: control + alt gr + 9 on my Sun). Of
> course, one can always send control + alt gr + 9 on the keyboard
> directly and type send brk, but I prefer to have everything set up to
> be
> available through ^ec<foo> which is described by the help that is
> showed
> when running console.