From: barlin@decus.org.au (Peter BARLIN(or his wife J..))
Subject: Monitor fails from LAT Application service
Date: 1998/08/23 [thread overview]
Message-ID: <1998Aug23.220019.17340@decus> (raw)
Hello LAT-gurus,
I am having a little problem with a LAT Application service that I
have created.
When I tell the controlling command procedure to invoke the MONITOR
command it fails, however, if the same procedure is invoked from an
INTERACTIVE session it(MONITOR) works.
Is there some subtle nuance that I have missed in designing the procedure
to work under a LAT Application service.
(Also as a subtle side-effect when MONITOR fails the definition for
SYS$INPUT, in SUPERvisor mode, is destroyed?)
Find below the log file(s) for the session(with the terminal output
inserted at the appropriate point for clarity)
Regards,
Peter
$!##############this below is the command used to invoke the process
BFVS20=PETER_$run/det sys$system:loginout/inp=leigh.com/out=leigh.log
%RUN-S-PROC_ID, identification of created process is 202004DD
%%%%%%%%%%% OPCOM 23-AUG-1998 19:22:47.67 %%%%%%%%%%%
Message from user PETER on BFVS20
, LTA9003: job started
%%%%%%%%%%% OPCOM 23-AUG-1998 19:24:03.87 %%%%%%%%%%%
Message from user PETER on BFVS20
, LTA'latport': disconnected
BFVS20=PETER_$stop/id=202004DD
$!##############this below shows what appears in log file
$!
$! This command procedure is always run when anybody on the entire system
$! logs in. It is equivalent to LOGIN.COM except that the instructions
$! contained herein are executed everytime anyone on the VMS system
$! logs in to their account.
$!
$! For interactive processes, turn on Control T, and set the terminal type
$!
$ IF (F$MODE() .EQS. "INTERACTIVE") THEN SET CONTROL=T
$! IF (F$MODE() .EQS. "INTERACTIVE") THEN SET TERMINAL/INQUIRE
$ IF (F$trnlnm("tt") .nES. "") THEN SET TERMINAL/INQUIRE
%SET-W-NOTSET, error modifying BFVS20$DUA1:
-CLI-E-IVDEVTYPE, invalid device type - specify a mailbox device
$!
$! For MicroVAX systems only, use the command INSTALL/COMMAND
$! and MOUNT/NOASSIST.
$!
$ IF (.NOT. F$TRNLNM("SYS$MICROVAX")) THEN GOTO SKIP_MICROVAX_COMMANDS
$SKIP_MICROVAX_COMMANDS:
$!
$! Place your site-specific LOGIN commands below
$!
$USERNAME=F$EDIT(F$GETJPI("","USERNAME"),"COLLAPSE")
$ SET PROMPT = "BFVS20=PETER_$"
$!
$!##############this is the start of Leigh.com
$set noon
$latport="9003"
$lat_srvc="leigh"
$request "LTA9003: job started"
$write sys$output f$getjpi("","pid")," =process_Ident"
202004DD =process_Ident
$!
$! mc latcp delete service 'lat_srvc'
$ if f$getdvi("lta9003","exists")
$ then
$ mc latcp delete port lta9003:
$ endif
$!
$ mc latcp create service leigh/application
%LAT-W-CMDERROR, error reported by command executor
-LAT-E-SERVEXISTS, service name already exists
$ mc latcp show service leigh
Service Name: LEIGH Service Type: Application
Service Status: Available
Service Ident: .Welcome to VAX/VMS V5.4-3
Node Name Status Rating Identification
BFVS20 On 64 D .Welcome to VAX/VMS V5.4-3
$ mc latcp create port lta9003: /ded
$ mc latcp set port lta9003: /ded/service=leigh
$!
$ mc latcp show port lta9003:
Local Port Name: _LTA9003: Local Port Type: Dedicated
Local Port State: Inactive
Connected Link:
Target Port Name: Actual Port Name:
Target Node Name: Actual Node Name:
Target Service Name: LEIGH Actual Service Name:
$ mc latcp show service leigh
Service Name: LEIGH Service Type: Application
Service Status: Available
Service Ident: .Welcome to VAX/VMS V5.4-3
Service Ports: _LTA9003:
Node Name Status Rating Identification
BFVS20 On 64 D .Welcome to VAX/VMS V5.4-3
$ mc latcp show node
Node Name: BFVS20 LAT Protocol Version: 5.2
Node State: On
Node Ident: .Welcome to VAX/VMS V5.4-3
Incoming Connections: Enabled Incoming Session Limit: None
Outgoing Connections: Enabled Outgoing Session Limit: None
Service Responder: Disabled
Circuit Timer (msec): 80 Keepalive Timer (sec): 20
Retransmit Limit (msg): 8 Node Limit (nodes): None
Multicast Timer (sec): 60 CPU Rating: 0
User Groups: 0-255
Service Groups: 0-255
Service Name Status Rating Identification
BFVS20 Available 64 D .Welcome to VAX/VMS V5.4-3
LEIGH Available 64 D .Welcome to VAX/VMS V5.4-3
$!
$ show logical/proc/full
(LNM$PROCESS_TABLE) [kernel]
[no protection information]
"SYS$COMMAND" [exec] = "_$1$DUA1:" [concealed,terminal]
"SYS$DISK" [exec] = "SYS$SYSDEVICE:"
"SYS$ERROR" [exec] = "_$1$DUA1:" [concealed,terminal]
"SYS$INPUT" [exec] = "_$1$DUA1:" [concealed,terminal]
"SYS$OUTPUT" [super,confine] = "_$1$DUA1:" [concealed,terminal]
"SYS$OUTPUT" [exec] = "_$1$DUA1:" [concealed,terminal]
"TT" [exec] = "LEIGH.COM"
$!
$count=10
$loop:
$ if f$getdvi("lta9003","exists")
$ then write sys$output "lta''latport'"," exists"
lta9003 exists
$ else
$ endif
$show dev/full lta9003
Terminal LTA9003:, device type unknown, is online, record-oriented device,
carriage control.
Error count 0 Operations completed 0
Owner process "" Owner UIC [1,4]
Owner process ID 00000000 Dev Prot S:RWLP,O:,G:,W:
Reference count 0 Default buffer size 80
$!
$count=10
$loop1:
$ if f$getdvi("lta9003","all")
$ else
$ allocate lta9003:
%DCL-I-ALLOC, _$1$LTA9003: allocated
$ wait 0:0:5
$ if f$getdvi("lta9003","pid") .nes. f$getjpi("","pid") then goto ex_it
$ count=count - 1
$ if count .gt. 0 then goto loop1
$loop1:
$ if f$getdvi("lta9003","all")
$ then write sys$output "lta''latport'","?allocated? ",f$getdvi("lta''latport'","pid")
lta9003?allocated? 202004DD
$ else
$ endif
$!
$next_connect:
$!
$open/write latapdev lta9003:/err=ex_it
$!put all code below this
$!
$write sys$output f$mode()," mode of operation"
OTHER mode of operation
$show LOGICAL sys$output/full
"SYS$OUTPUT" [super,confine] = "_$1$DUA1:" [concealed,terminal] (LNM$PROCESS_TABLE)
$def/log sys$command latapdev:
$def /log sys$input latapdev:
$sh log/fu sys$input
"SYS$INPUT" [super] = "LATAPDEV:" (LNM$PROCESS_TABLE)
1 "LATAPDEV" [super,confine] = "_BFVS20$LTA9003" [terminal] (LNM$PROCESS_TABLE)
$deass/proc/super sys$output
$def /proc/super/log sys$output latapdev:
$!############################# this below appears on terminal screen
-> %DS90L-209, Service In Use
-> leigh
.
%DS90L-108, Connection Established
$sh log sys$output/fu
"SYS$OUTPUT" [super,confine] = "LATAPDEV:" [terminal] (LNM$PROCESS_TABLE)
$ @sys$sysdevice:[peter]adams
$! written by Peter Barlin
$!
$VERIFY=F$VERIFY(0) !F$VERIFY(0 should turn off verify)
"SYS$OUTPUT" [super,confine] = "LATAPDEV:" [concealed,terminal] (
LNM$PROCESS_TABLE)
TERMINAL PORT NAME LAT_08002B243D3F/MOP
Check server physical address 08-00-2B-24-3D-3F
USING DATALINK SVA-0
$! SPAWN/WAIT/NOLOG MC NCP LOOP CIR 'DATALINK PHY ADD 'PA
$ MC NCP LOOP CIR SVA-0 PHY ADD 08-00-2B-24-3D-3F
$dsrv$status =$status
$ if dsrv$status .ne. %x10000001
$ endif
$ IF .not. VERIFY THEN SET NOVERIFY
$ def/super tt sys$command:
$ read/prompt=""/end_of_file=lout/timeout=5/error=mon sys$command pat
$mon:
$set ter/inq
$show term
Terminal: _LTA9003: Device_Type: VT300_Series Owner:
Username: PETER
LAT Server/Port: LAT_08002B243D3F/MOP
Input: 9600 LFfill: 0 Width: 80 Parity: None
Output: 9600 CRfill: 0 Page: 24
Terminal Characteristics:
Interactive Echo Type_ahead No Escape
No Hostsync TTsync Lowercase Tab
Wrap Scope No Remote Eightbit
Broadcast No Readsync No Form Fulldup
No Modem No Local_echo No Autobaud Hangup
No Brdcstmbx No DMA No Altypeahd Set_speed
Line Editing Overstrike editing No Fallback No Dialup
No Secure server No Disconnect No Pasthru No Syspassword
SIXEL Graphics No Soft Characters No Printer Port Numeric Keypad
ANSI_CRT Regis No Block_mode Advanced_video
Edit_mode DEC_CRT DEC_CRT2 DEC_CRT3
No DEC_CRT4
$sh log/fu/proc
(LNM$PROCESS_TABLE) [kernel]
[no protection information]
"LATAPDEV" [super,confine] = "_BFVS20$LTA9003" [terminal]
"SYS$COMMAND" [super] = "LATAPDEV:"
"SYS$COMMAND" [exec] = "_$1$DUA1:" [concealed,terminal]
"SYS$DISK" [exec] = "SYS$SYSDEVICE:"
"SYS$ERROR" [exec] = "_$1$DUA1:" [concealed,terminal]
"SYS$INPUT" [super,confine] = "_$1$DUA1:" [concealed,terminal]
"SYS$INPUT" [exec] = "_$1$DUA1:" [concealed,terminal]
"SYS$OUTPUT" [super,confine] = "LATAPDEV:" [concealed,terminal]
"SYS$OUTPUT" [exec] = "_$1$DUA1:" [concealed,terminal]
"TT" [super] = "SYS$COMMAND:"
"TT" [exec] = "LEIGH.COM"
$ monitor all
%MONITOR-E-DISPERR, error during display or summary output
-SYSTEM-W-NOSUCHDEV, no such device available
$deass/proc/super sys$output
-> %DS90L-107, Session Disconnected
->
$!##############this below resumes showing what appears in log file
%MONITOR-E-DISPERR, error during display or summary output
-SYSTEM-W-NOSUCHDEV, no such device available
$show log/fu sys$input
"SYS$INPUT" [exec] = "_$1$DUA1:" [concealed,terminal] (LNM$PROCESS_TABLE)
$deass sys$input
%SYSTEM-F-NOLOGNAM, no logical name match
$deass sys$command
$!
$!put all code above this
$done:
$close latapdev
$request "LTA'latport': disconnected"
$wait 0:0:25 !leave >20sec for LAT to timeout
$!##############this is when I use STOP/ID to kill the process
reply other threads:[~1998-08-23 4:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox