HP3000-L Archives

August 2000, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Barry Lake <[log in to unmask]>
Reply To:
Barry Lake <[log in to unmask]>
Date:
Wed, 16 Aug 2000 10:33:13 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (37 lines)
At 10:51 AM -0400 8/16/00, [log in to unmask] wrote:
>I've got a question about finding users who are logged in via reflections
>or telnet.  ...By using nettool status tcpstat conntable    I can get a
>most excellent list of connected IP addresses.  However, I would like to
>associate these connections with a ldev so I can map who is logged in from
>where as whom.


If you do

   :listf ci.pub.sys,8

you'll get a list of all connected users. The users coming in over the
network (that should be everyone, nowadays, right?) will be listed with
their job numbers, IP addresses, and other info. This works for both NS and
telnet connections. This also assumes you're not on 6.5 and using the NEWCI
command.

Next, you can do :showjob to get the ldev numbers.

With some clever CI programming you should be able to cross reference the
two listings using the job number as the "key" into both in order to match
ip addresses with ldev numbers.

I'm less familiar with the JINFO function, as it's relatively new in the
scheme of things, but I believe it has both an IPADDR parameter as well as
an LDEV parameter, so calling it in a loop you might be able to get the
same result as my first suggestion.


Barry Lake                              [log in to unmask]
Allegro Consultants, Inc.               www.bogus.allegro.com
(408)252-2330
--------
Attempting to use anti-spam technique.
Remove "bogus" to create valid address.

ATOM RSS1 RSS2