Operating System - OpenVMS
1752277 Members
4587 Online
108786 Solutions
New Discussion

Getting F$GETJPI("","TT_ACCPORNAM") info on SSH connection

 
SOLVED
Go to solution
Steven Schweda
Honored Contributor

Re: Getting F$GETJPI("","TT_ACCPORNAM") info on SSH connection

> I just stripped the colons with an
> f$extract/f$locate statement.

There's a short-cut for this sort of thing,
when you can be sure of the format:

alp $ write sys$output f$trnlnm( "SYS$REM_NODE")- "::"
ALP

Should be pretty safe here, as double colons
are unlikely to appear elsewhere in the name.
Troodon
Frequent Advisor

Re: Getting F$GETJPI("","TT_ACCPORNAM") info on SSH connection

Remember, if the remote user is on the exterior internet, SYS$REM_NODE returns their border/firewall IP address.

It's still a far cry from the TT_PHYDEVNAM JPI item; now you have to figure out what his job table is and reach into it to determine this information.

The SSH utility still seems to be a break in normal system security. If I'm logged in via SSH, my rightslist includes LOCAL. It ought to be REMOTE like SET HOST, and the remote port and access port information ought to be filled in.