home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / vms / 20412 < prev    next >
Encoding:
Text File  |  1993-01-06  |  3.9 KB  |  104 lines

  1. Newsgroups: comp.os.vms
  2. Path: sparky!uunet!ulowell!woods.ulowell.edu!sabotkap
  3. From: sabotkap@woods.ulowell.edu
  4. Subject: Reposted TT_AccPorNam question.
  5. Message-ID: <1993Jan5.223548.1@woods.ulowell.edu>
  6. Lines: 93
  7. Sender: usenet@ulowell.ulowell.edu (News manager - ulowell)
  8. Organization: University of Lowell
  9. Date: Wed, 6 Jan 1993 03:35:48 GMT
  10.  
  11. I recenly posted a question regarding the nature of how TT_AccPorNam is 
  12. given a value, and a problem regarding how, during certain logins on our
  13. system, the TT_AccPorNam information was not available.
  14.  
  15. At the time, I thought the information I provided was complete and accurate.  
  16. However, after reading my own post (and a few flames), I realized my lack of 
  17. complete and relevant information.  I don my flame-retardent suit as I attempt
  18. to fully describe the conditions under which these problems were occuring.
  19.  
  20. When logging in from either a LAT server or DECnet, TT_AccPorNam returned
  21. the correct field.  When logging in via TELNET, the problem occured.  
  22.  
  23. Consider the following portion of SYLOGIN:
  24.  
  25. $
  26. $ TT = F$EXTRACT(0,3,F$GETJPI("","TERMINAL"))
  27. $ GOTO 'TT'
  28. $!
  29. $ RTA:
  30. $ LTA:        ( commands executed at each label deleted )
  31. $ OPA:
  32. $ TTA:        ( note the lack of any TNA label )
  33. $ TXA:
  34.  
  35. The lack of a "$ TNA:" label caused SYLOGIN to abort during TELNET sessions, 
  36. ("target of GOTO not found", if TT was equated to "TNA").  The account 
  37. specific LOGIN.COM executed normally.
  38.  
  39. Now, when the GOTO error occured (only during TELNET sessions), accessing 
  40. TT_AccPorNam via DCL (the lexical F$GETDVI) ALWAYS returned a blank string.  
  41. A SHOW USERS output lacked this information as well.  
  42.  
  43. However, after issuing a SET TERM/INQUIRE, an F$GETDVI("TT","TT_AccPorNam")
  44. correctly returned the remote host information, as well as the field in the 
  45. SHOW USERS output.  
  46.  
  47. The following log file shows the error in action:
  48.  
  49. Joblog> telnet cirrus.ulowell.edu
  50. Trying...129.63.145.1
  51. Connected to CIRRUS.
  52. Escape character is '^]'.
  53.  
  54.         Welcome to VAX/VMS V5.4    
  55.  
  56. Username: SABOTKA
  57. Password: 
  58.  
  59. Welcome to the WEASUL on node CIRRUS
  60.  
  61.     Last interactive login on Wednesday,  6-JAN-1993 02:49
  62.     Last non-interactive login on Wednesday,  6-JAN-1993 02:30
  63. %DCL-W-USGOTO, target of GOTO not found - check spelling and presence of label
  64. $ show users/full sabotka
  65.       VAX/VMS User Processes at  6-JAN-1993 02:50:52.57
  66.     Total number of users = 1,  number of processes = 1
  67.  
  68.  Username  Node   Process Name    PID     Terminal
  69.  SABOTKA  CIRRUS  P. Sabotka    21400926  TNA2:    
  70. $ TT = f$getdvi("TT","TT_AccPorNam")
  71. $ show symbol TT
  72.   TT = ""
  73. $ SET TERMINAL/INQUIRE
  74. $ show users/full sabotka
  75.       VAX/VMS User Processes at  6-JAN-1993 02:51:38.71
  76.     Total number of users = 1,  number of processes = 1
  77.  
  78.  Username  Node   Process Name    PID     Terminal
  79.  SABOTKA  CIRRUS  P. Sabotka    21400926  TNA2:    (Host: WILLOW Port: 3125 )
  80. $ TT = f$getdvi("TT","TT_AccPorNam")
  81. $ show symbol TT
  82.   TT = "Host: WILLOW Port: 3125 "
  83.  
  84. The error in SYLOGIN has been fixed, and all subsequent logins via TELNET 
  85. return a TT_AccPorNam field with no problems.  Just to see what would happen,
  86. I intentionally took out the labels that handle LAT and DECnet sessions.  
  87. Even though the same "target of GOTO..." error occured, the TT_AccPorNam
  88. correctly returned the SERVER/PORT for LAT sessions and NODE::USER for DECnet  
  89. sessions.
  90.  
  91. Although the problem has been fixed, my (somewhat modified) questions remain:
  92.  
  93. 1)  Why would such an error in SYLOGIN cause TT_AccPorNam to return a blank
  94.     string only during TELNET sessions ? (ours is UCX V1.3 on VMS 5.4)
  95. 2)  Why does a SET TERM/INQUIRE remedy the problem ?
  96.  
  97. I hope enough information has been provided.
  98.  
  99. ^-v-^-v-^-v-^-v-^-v-^-v-^-v-^-v-^-v-^-v-^-v-^-v-^-v-^-v-^-v-^-v-^-v-^-v^-v-^
  100. Pete Sabotka, Meteorology Dept.                   sabotkap@woods.ulowell.edu
  101. University of Massachusetts - Lowell      
  102. "Days like this let you savor a bad mood."        - Calvin (Calvin & Hobbes)
  103. ^-v-^-v-^-v-^-v-^-v-^-v-^-v-^-v-^-v-^-v-^-v-^-v-^-v-^-v-^-v-^-v-^-v-^-v^-v-^
  104.