home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!sdd.hp.com!hpscit.sc.hp.com!hplextra!hplabs!ucbvax!UH01.Colorado.EDU!DWING
- From: DWING@UH01.Colorado.EDU (Dan Wing)
- Newsgroups: comp.os.vms
- Subject: Re: TT_AccPorNam field remains null on a SHOW USERS output ?
- Message-ID: <01GSVSPU15CY006MJF@VAXF.COLORADO.EDU>
- Date: 29 Dec 92 16:32:34 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Distribution: world
- Organization: The Internet
- Lines: 54
-
- Pete Sabotka, sabotkap@woods.ulowell.edu, writes:
-
- >From a terminal hardwired to the system (ours is VMS 5.4):
- [...]
- > Username Node Process Name PID Terminal
- > SABOTKA CIRRUS SABOTKA 202060C2 TTA0:
- > ^ (hardwired terminal)
- >
- >When logged in from a server, or remote system, the server/remote port
- >information is sometimes left blank:
- >
- > Username Node Process Name PID Terminal
- > SABOTKA CIRRUS P. Sabotka 20206DCB LTA2633: (FOG::NETWORK)
- > ^ (we can't always get this)
- >
- >
- >When logged in from a non-hardwired terminal, when during login is the
- >TT_AccPorNam information obtained ? It seems a SET TERMINAL/INQUIRE in
- >our SYLOGIN.COM is responsible for getting this field, but at other times,
- >an otherwise normal login will not retreive this information.
-
- (To the best of my limited knowledge) LOGINOUT.EXE is responsible for setting
- this field. The purpose of this field is to identify a non-hardwired (for
- example, via your network) login's source. Because TTA0: is hardwired, you
- always know its physical location. If you identify the offending DECserver
- or remote system to your system manager, I believe he/she may be able to
- explain why it isn't happening. The terminal server sends this information
- to the VMS system. Prior to VMS V5.2 (?), this information wasn't displayed
- by SHOW USERS; I don't know if the version of LAT (or LAT+, or whatever it
- was at that time) didn't send the information to the VAX, or if the VAX
- couldn't handle displaying or storing it. Someone more familiar with the
- history of this field, and maybe access to sources, could explain why and
- how this came about.
-
- >My motives: We have a captive account which we would like to monitor by
- > writing the login time, and any server/remote port information
- > to a log file.
-
- If TT_ACCPORNAM is blank, then store the terminal-name in your audit-log file
- or whatever, something like:
-
- :
- $ ACCESS_PORT = F$GETJPI(0,"TT_ACCPORNAM")
- $ IF ACCESS_PORT .EQS. "" THEN ACCESS_PORT = F$GETJPI(0,"TERMINAL")
- $ WRITE LOG_FILE F$GETJPI(0,"USERNAME"), ACCESS_PORT, F$TIME()
- :
-
- ... Somewhat related to this, it shore would be 'cool' if DEC could include
- this same information for the FTAnn: devices for X terminals. Ah, well,
- maybe next version?
-
- -Dan Wing, dwing@uh01.colorado.edu or wing_d@ucolmcc.bitnet (DGW11)
- Systems Administrator, University Hospital, Denver
-
-