- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- What IP-Address did a user connect to?
Operating System - HP-UX
1759746
Members
3572
Online
108888
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО10-31-2002 05:38 AM
тАО10-31-2002 05:38 AM
Re: What IP-Address did a user connect to?
So the connection to the virtual address is only during the logon-phase?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2002 04:52 AM
тАО11-01-2002 04:52 AM
Re: What IP-Address did a user connect to?
Let me add a new angle in here.
If the question is the IP address the user telneted to (e.g., a package IP address in a MC/SG cluster), one way is to use lsof to look at the telnetd process for that session. The telnetd process, started by inetd, has the stdin, stdout, and stderr connected the the socket. lsof will yeild details about the socket, including the IP address (see brief example attached).
You can also use pstat_getsocket to get the same information using C or getpeername if the program you are writing uses a socket that you want to find info on.
FYI, we wrote a program, getcpkg (get current package) that would get the IP addresses as described above and then match that to a package name.
Have fun!
If the question is the IP address the user telneted to (e.g., a package IP address in a MC/SG cluster), one way is to use lsof to look at the telnetd process for that session. The telnetd process, started by inetd, has the stdin, stdout, and stderr connected the the socket. lsof will yeild details about the socket, including the IP address (see brief example attached).
You can also use pstat_getsocket to get the same information using C or getpeername if the program you are writing uses a socket that you want to find info on.
FYI, we wrote a program, getcpkg (get current package) that would get the IP addresses as described above and then match that to a package name.
Have fun!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2002 10:48 AM
тАО11-01-2002 10:48 AM
Re: What IP-Address did a user connect to?
I'm going to guess that Exceed did an rlogin to the box and then launched some sort of nohupped xterm with DISPLAY pointed-back at your machine.
since the xterm is nohup, it is then "OK" for the rlogin/telnet session to be terminated and that is why the connection to the base IP is gone from netstat -an output - because the connection is no longer there.
this means you are left with only searching logs.
i suspect that if you simply popped-up a terminal emulator window and did a basic telnet to the package IP address you would still see that package IP address as the one in use.
as for how to get the xterm launched with a package IP as its source IP address... that would require either an option to xterm to have it bind() its socket combined with some scripting to find the IP address used for the rlogin session, or some creativity in applying the route(1m) command such that routes for specific destination IP addresses use specific package IP's
since the xterm is nohup, it is then "OK" for the rlogin/telnet session to be terminated and that is why the connection to the base IP is gone from netstat -an output - because the connection is no longer there.
this means you are left with only searching logs.
i suspect that if you simply popped-up a terminal emulator window and did a basic telnet to the package IP address you would still see that package IP address as the one in use.
as for how to get the xterm launched with a package IP as its source IP address... that would require either an option to xterm to have it bind() its socket combined with some scripting to find the IP address used for the rlogin session, or some creativity in applying the route(1m) command such that routes for specific destination IP addresses use specific package IP's
there is no rest for the wicked yet the virtuous have no pillows
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP