onstat -u
Posted in 2000
Topics: Connectivity: ODBC / JDBC / .NET, Server Administration
I have a telnet user who consistently is walking out the door without
logging off. Here's how I assume I should go about killing the user, with
the problem listed below.
1. Do a who -u | grep username (identify tty port)
2. Do a onstat -u | grep username (to identify session id)
3. After verifying thread is not active, I'd do a onmode -z session id
to kill thread
4. By my reading, I should be able to do another onstat -u | grep to
check that the thread is no longer active.
5. Kill user process.
My question: I know the user is logged in, but by doing onstat -u, I don't
see anything reported back...is there a different command I can use to
identify the session id?
Thanks for the help,
Joe Robinson, SFC
System Administrator
USPFO for Oregon, Oregon Army National Guard
Email: robinsonj@or-arng.ngb.army.mil
<mailto:robinsonj@or-arng.ngb.army.mil>
Phone: (503) 945-3776 DSN 355-3776
FAX: (503) 945-3959 DSN 355-3959
I think I'd just set idleout on the OS and let informix take care of
killing the thread when it's safe to kill it.
In article <8hm70n$om9$1@news.xmission.com>,
RobinsonJ@or-arng.ngb.army.mil wrote:
>
> I have a telnet user who consistently is walking out the door without
> logging off. Here's how I assume I should go about killing the user,
with
> the problem listed below.
>
> 1. Do a who -u | grep username (identify tty port)
>
> 2. Do a onstat -u | grep username (to identify session id)
>
> 3. After verifying thread is not active, I'd do a onmode -z session
id
> to kill thread
>
> 4. By my reading, I should be able to do another onstat -u | grep
to
> check that the thread is no longer active.
>
> 5. Kill user process.
>
> My question: I know the user is logged in, but by doing onstat -u, I
don't
> see anything reported back...is there a different command I can use to
> identify the session id?
>
> Thanks for the help,
>
> Joe Robinson, SFC
> System Administrator
> USPFO for Oregon, Oregon Army National Guard
> Email: robinsonj@or-arng.ngb.army.mil
> <mailto:robinsonj@or-arng.ngb.army.mil>
> Phone: (503) 945-3776 DSN 355-3776
> FAX: (503) 945-3959 DSN 355-3959
>
--
# unrm /
ksh: unrm: not found
# man cpio
Sent via Deja.com http://www.deja.com/
Before you buy.