Re: console logoff (was: System Improvement Ballot enhancements for FTP)



--- "Johnson, Tracy" <Tracy.Johnson@xxxxxxxxxx> wrote:

> So, everyone who has a console has seen the message that says
> HH:MM/#Snnnn/pin/LOGOFF ON LDEV xx ?
>
> Now, how many times has someone come up to you and asked when did so
> and so log off the system? Huh!

as we discussed last(?) week, it is quite the challenge to capture
logoffs -- given all the different ways it can be done. you could
always write a udc for 'bye' with the understanding that it's not a
complete solution.

i wrote a little something awhile ago for *logons* (since folks around
here seem to be more interested in who is on the system than not). in
my system logon udc, i have the following:

if hpjobtype = "S"
announce
endif

here's the announce script:

setvar _an_where 'unknown'

# a telnet (23) or vt connection
if hpremipaddr > ''
setvar _an_where hpremipaddr
if hplocport = 23
setvar _an_where _an_where + " (T)"
else
setvar _an_where _an_where + " (V)"
endif
elseif hpdtcportid > ''
# dtc connection
setvar _an_where hpdtcportid + " (D)"
elseif hpldevin = 20
setvar _an_where 'console (20)'
elseif hpldevin = 21
setvar _an_where 'modem (21)'
endif

tellop $$$/!hpjobname/!_an_where/!hpintrodate/!hpintrotime
deletevar _an@

this very nicely ties a session (id and number) to an ip address (in
most cases) and puts it (ultimately) into the system console logs. the
'$$$' makes searching the logs very easy.

hth - d

Donna Garverick, HP-CSA Sr. System Programmer
dgarverick -at- longs -dot- com
925-210-6631 Longs Drug Stores

Come, my friends, 'Tis not too late to seek a newer world.
Tho' much is taken, much abides; and tho'
We are not now that strength which in old days
Moved earth and heaven, that which we are, we are.
"Ulysses", A. Tennyson

>>>MY opinions, not Longs Drug Stores'<<<

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

.



Relevant Pages

  • [4/6] consoles: polling support, kgdboc
    ... polled console handling support, to access a console in an irq-less ... +#ifdef CONFIG_CONSOLE_POLL ... static const struct tty_operations uart_ops = { ...
    (Linux-Kernel)
  • [PATCH] EFI & HCDP Console auto selection
    ... The code is triggered off whether there's a console port found ... +#ifdef VERBOSE ... +static void __init ...
    (Linux-Kernel)
  • [PATCH 8/8] kgdb: kgdboc 8250 I/O module
    ... console port. ... +#ifdef CONFIG_SERIAL_POLL ... static int serial8250_startup ...
    (Linux-Kernel)
  • [PATCH 2/6] CRIS architecture update
    ... * Almost the entire ide.c is used for the rest of the Etrax ATA driver. ... +/* In debugport.c - register a console write function that uses the normal ...
    (Linux-Kernel)
  • Re: Slow Start-up. No Start-up!
    ... > Users have no print service & I cannot remote desktop to the server. ... Some icons unable to launch on console ... >>> but can now traverse logs, ... >>> currently replacing powerchute ...
    (microsoft.public.windows.server.sbs)