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:
Donna Garverick <[log in to unmask]>
Reply To:
Donna Garverick <[log in to unmask]>
Date:
Wed, 16 Aug 2000 13:21:28 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (48 lines)
Barry Lake wrote:

> 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.

good suggestion....but there's an atomic problem.  between doing the two
commands, a user could easily have logged off and that's makes the 'clever' ci
programming rather a pain (imo)

> 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.

yes, both ipaddr and ldevin are available but you still are left with the
atomic problem.

may i suggest as an alternative though:
http://jazz.external.hp.com/src/showconn/showconn.html

showconn gives both the ip and the ldev all at once :-)               - d

--
Donna Garverick     Sr. System Programmer
925-210-6631        [log in to unmask]

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

ATOM RSS1 RSS2