[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference csc32::consolemanager

Title:POLYCENTER Console Manager
Notice:Kits, Scans, Docs on CSC32:: as PCM$KITS:,PCM$DOCS:, PCM$SCANS:
Moderator:CSC32::BUTTERWORTH
Created:Thu Aug 06 1992
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1541
Total number of notes:6564

466.0. "Using a Pseudo device to cath OPCOM messages" by STKEIS::BYSTAM (The answer is 42) Mon Nov 07 1994 23:46

Hi,

I saw a small macro program that together with a commandprocedure could be
used as the command for a pseudoterminal in Consolemanager.

The idea was to, on a VMS machine, cath all replys on the Consolemanager
machine itself.

I have looked and looked for this routine in here but I have failed to find it.
Is there anybody that can point me in the right direction.

/Stefan
T.RTitleUserPersonal
Name
DateLines
466.1DCL is enoughEEMELI::OJUSSILAOlli Jussila, OMS FinlandTue Nov 08 1994 15:3125
    
    Stefan,-
    
    You don't ne-ed macro program. PCM creates FTA terminal for you and
    you can get OPCOM messages to this FTA terminal
    Here is command procedure for
    pseudo terminal we are using. We are using it to cath opcom
    messages of PCM system (AMDS events,etc)
    
$     set noon
$     wait 00:00:10
$     i = f$trnlnm("SYS$INPUT")
$     c = f$trnlnm("SYS$COMMAND")
$     o = f$trnlnm("SYS$OUTPUT")
$     set term 'o'/broad 
$     write sys$output "SYS$INPUT =''i' SYS$COMMAND = ''c' SYS$OUTPUT = ''o'"
$     write sys$output "Issuing $ REPLY/ENA"
$     reply/ena
$     write sys$output "Issuing $ REPLY/STAT"
$     reply/stat
$     wait 00:01:00
$ loop:
$     write sys$output "This is reply only terminal"
$     wait 01:00:00
$     goto loop
466.2STKEIS::BYSTAMThe answer is 42Wed Nov 09 1994 09:353
Thanks Olli,

/Stefan
466.3Can not get pseudoterminals to work correctly..STKEIS::BYSTAMThe answer is 42Tue Nov 15 1994 15:5317
Hi again,

There still seem to be some kind of a problem regarding the pseudoterminals
atleast in my VAX/VMS version. I am running PCM V1.5 ECO 1. 

What I have done is setting up 2 different systems to use Pseudoterminals. 
One of them is set up to run Edit/tpu as command and the other to use Ollis
commandprocedure in .1.

What happens is that a process is created for each system and they are named 
_HAMRA$FTAxx and a corresponding _HAMRA$FTAxx.COM is created in the CONSOLE$TMP
directory, but it never gets executed! So when I connect to the system i get
a $ prompt logged in to the system account.

What i wrong here? Did I miss something obvious or?

/Stefan
466.4OPG::PHILIPAnd through the square window...Tue Nov 15 1994 16:118
Stefan,

  How quickly are you connecting? The procedure should get
  executed, but it doesnt do so immediately, there is a few
  seconds delay.

Cheers,
Phil
466.5CSC32::BUTTERWORTHGun Control is a steady hand.Tue Nov 15 1994 17:5321
    I have had this problem numerous times. In each case it was because
    a DCL command such as SET TERM/INQ was being executed in SYLOGIN.COM.
    SET TERM/INQ is usually the culprit as it chokes with the infamous
    "specify terminal or mailbox device" error when executed by the
    driver procedure that cranks up the pseduo-terminal command you 
    specified in editor and at thate time the processes permananet logicals
    are pointing at the driver command file and not a terminal.
    
    He're's how I worked around it in my login procedures:
    
    $ TT_DEVNAME = F$TRNLNM("TT")
    $ IF F$LOCATE("FTA",TT_DEVNAME) .NE. F$LENGTH(TT_DEVNAME) THEN GOTO SKIP_IT
       .
       . !SET TERM/INQ is done in this section.
       .
    $SKIP_IT:
    
    
    
    Regards,
       Dan
466.6OPG::PHILIPAnd through the square window...Wed Nov 16 1994 10:184
  Re: .5

    Yup, and this is documented too.
466.7STKEIS::BYSTAMThe answer is 42Mon Nov 21 1994 14:238
.5 is correct. 

I thought that I only did Set term/Inquire when I was logging in interactivly.
I guess theese processes are run in f$mode .eq. Interactive. Otherwise
my Sylogin.Com would have worked. Anyway I implemented the solution in .5 and
everything is working OK now.

/Stefan
466.8Unable to Initiate a Pseudo-TerminalCTUADM::COOKEVern Cooke @CTU (Western Canada CNS)Tue Apr 18 1995 23:2930
Hello:

I am having the same problem described in .3 where the pseudo-terminal process
is created, the _node$FTAxx routine in CONSOLE$TMP is NOT executed and I can
connect to the pseudo-terminal and be left at a "$" prompt.

I have ensured that a SET TERM/INQ is not executed in SYLOGIN; the SYSTEM
account LOGIN.COM is not executed since it appears that the default login
directory is set to CONSOLE$TMP. I have also waited a considerable length of
time (30 minutes) with no luck (as indicated in reply .4).

Also, when I view the system, I see a single "@" after the dollar sign prompt,
almost as if PCM started to enter the command to execute the action routine,
but gave up part way through.

Here is how I configured the system in PCM:

	System Name         = ctupcm
	    Information     = PolyCentre Console Manager Pseudo-Terminal
	    Connection      = Pseudo-Terminal
	    Command         = @sys$manager:pcm_pseudo_terminal
	    Scan Profile    = ctupcm
	    Icon filename   = VAXSTATION_3100.XBM
	    Console line    = Enabled
	    Logging is enabled, directory = CONSOLE$LOGFILES

I am running PCM V1.5-006 on VMS 6.1 on a VAXstation 4000vlc. Any help would be
appreciated.
						Thank you very much,
							....... Vern.
466.9Problem is with Esc SequencesCTUADM::COOKEVern Cooke @CTU (Western Canada CNS)Fri Apr 21 1995 23:3316
    Hello again:
    
    I think I solved the problem. My SYLOGIN.COM was displaying some banner
    text that contained escape sequences. It appears that any escape
    sequence, whether displayed (like my banner) or not (like a SET
    TERM/INQ) causes PCM to choke like I described in .8.
    
    Some experimentation revealed that it was only escape sequences that
    caused the problem; a WRITE SYS$OUTPUT " " in SYLOGIN did not interfere
    with the startup. I would assume that plain text also will not
    interfere, though I did not test any text OR MULTIPLE WRITEs in my
    experiments.
    
    Hope this info is of use to anyone who is experiencing the same
    problem!
    						......... Vern.