- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Source of TT_ACCPORNAM?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2006 09:05 AM
тАО04-13-2006 09:05 AM
Source of TT_ACCPORNAM?
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2006 09:17 AM
тАО04-13-2006 09:17 AM
Re: Source of TT_ACCPORNAM?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2006 09:18 AM
тАО04-13-2006 09:18 AM
Re: Source of TT_ACCPORNAM?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2006 11:18 AM
тАО04-13-2006 11:18 AM
Re: Source of TT_ACCPORNAM?
From $UCBDEF in sys$library:lib.req
macro UCB$L_TT_ACCPORNAM = 440,0,32,1 %; ! Address of counted string describing the port
typicall LAT server name / and port name or number
From the $GETDVI documentation . . .
Returns the name of the remote access port associated with a channel number or with a physical or virtual terminal device number. If you specify a device that is not a remote terminal or a remote type that does not support this feature, $GETDVI returns a null string. The $GETDVI service returns the access port name as a 64-byte, zero-filled string.
The $GETDVI service returns the name in the format of the remote system. If the remote system is a LAT terminal server, $GETDVI returns the name as server_name/port_name. The names are separated by the slash (/) character. If the remote system is an X.29 terminal, the name is returned as network.remote_DTE.
When writing applications, you should use the string returned by DVI$_ACCPORNAM, instead of the physical device name, to identify remote terminals.
I'm pretty sure that's the string returned by $GETDVI. It would be up to the telnet server for the TCP/IP stack to determine how that string is formed. Obviously, the help text should be updated to mention telnet . . .
The point is, however, that $GETDVI almost certainly just grabs the string at the address in the UCB cell; $GETDVI certainly does not do anything exotic like a DNS lookup on an address before returning the info.
I'm not in the office now to verify the above, but I do know that $GETDVI mostly grabs data out of static cells and returns that for the vast majority of item codes.
-- Rob (VMS Engineering)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2006 12:01 PM
тАО04-13-2006 12:01 PM
Re: Source of TT_ACCPORNAM?
The server responsible for handling telnet connections populates the TT_ACCPORNAM field in the terminal device's UCB. Which server that is depends upon the TCP stack that you're running on that system. Regardless, the server attempts a DNS lookup of the source IP address. If an A(ddress) record is returned that value is placed into the field - else the numeric IP address is placed there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2006 03:30 PM
тАО04-13-2006 03:30 PM
Re: Source of TT_ACCPORNAM?
have a way to get the IP address itself,
rather than a reverse DNS look-up thereof?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2006 04:41 PM
тАО04-13-2006 04:41 PM
Re: Source of TT_ACCPORNAM?
TCPIP SET SERVICE TELNET/LOG_OPT=[NO]ADDRESS
controls if the source is displayed as an address or a name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2006 05:16 PM
тАО04-13-2006 05:16 PM
Re: Source of TT_ACCPORNAM?
Hmmm. I seem to have done this for FTP and
SMTP, but not for other services. The HELP
discusses log files, not TT_ACCPORNAM, but it
was a valuable reminder, irregardful. Thanks.
And a quick test on Telnet suggests that this
does the job. Well, I'm happy, anyway.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2006 07:30 PM
тАО04-13-2006 07:30 PM
Re: Source of TT_ACCPORNAM?
what does happen when you issue
$ TCPIP SH HOST
AFAIK the remote name is not issued by remote host but from local database.
You can chage the client PC address using an unamed address. After connection TT_ACCPORNAM will say you "Host xxx.xxx.xxx.xx" because there is no name in local server database.
Antonio
http://it.openvms.org
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2006 05:30 AM
тАО04-17-2006 05:30 AM
Re: Source of TT_ACCPORNAM?
I'll still take this up with our network guy, but I put the name and IP address in the TCPIP service's local host database, and the SHOW TERMINAL now shows the name that I want.