- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - OpenVMS
- >
- Source of TT_ACCPORNAM?
-
-
Categories
- Topics
- Hybrid IT with Cloud
- Mobile & IoT
- IT for Data & Analytics
- Transformation
- Strategy and Technology
- Products
- Cloud
- Integrated Systems
- Networking
- Servers and Operating Systems
- Services
- Storage
- Company
- Events
- Partner Solutions and Certifications
- Welcome
- Welcome
- Announcements
- Tips and Tricks
- Feedback
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- Converged Data Center Infrastructure
- Digital Transformation
- Grounded in the Cloud
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- Networking
- OEM Solutions
- Servers: The Right Compute
- Telecom IQ
- Transforming IT
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Categories
-
Forums
-
Blogs
-
InformationEnglish
Source of TT_ACCPORNAM?
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-13-2006 09:05 AM
04-13-2006 09:05 AM
Source of TT_ACCPORNAM?
Source of TT_ACCPORNAM?
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-13-2006 09:17 AM
04-13-2006 09:17 AM
Re: Source of TT_ACCPORNAM?
Re: Source of TT_ACCPORNAM?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-13-2006 09:18 AM
04-13-2006 09:18 AM
Re: Source of TT_ACCPORNAM?
Re: Source of TT_ACCPORNAM?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-13-2006 11:18 AM
04-13-2006 11:18 AM
Re: Source of TT_ACCPORNAM?
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-13-2006 12:01 PM
04-13-2006 12:01 PM
Re: Source of TT_ACCPORNAM?
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-13-2006 03:30 PM
04-13-2006 03:30 PM
Re: Source of TT_ACCPORNAM?
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-13-2006 04:41 PM
04-13-2006 04:41 PM
Re: Source of TT_ACCPORNAM?
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-13-2006 05:16 PM
04-13-2006 05:16 PM
Re: Source of TT_ACCPORNAM?
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-13-2006 07:30 PM
04-13-2006 07:30 PM
Re: Source of TT_ACCPORNAM?
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-17-2006 05:30 AM
04-17-2006 05:30 AM
Re: Source of TT_ACCPORNAM?
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.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2018 Hewlett Packard Enterprise Development LP