- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Multiple telnet/IP Addresses
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
Forums
Discussions
Discussions
Discussions
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
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
08-25-2006 01:05 AM
08-25-2006 01:05 AM
I have an environment with two unix box in cluster with two packages.
What I need to know is, when I have these two packages in one single server and users telnet to packages, from what IP address this user is telneting (relocatable ipd address from package).
Is it possible?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2006 01:15 AM
08-25-2006 01:15 AM
Re: Multiple telnet/IP Addresses
The "who -R" command will tell you either the hostname or the IP address. I think in the case of telnet, you will get the hostname, which you can then do a nslookup on to get the IP.
Does that help?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2006 01:20 AM
08-25-2006 01:20 AM
Re: Multiple telnet/IP Addresses
Or just do an nslookup on the name they use to connect to the server that should also be the relocatable address.
If you want to know what address they are using if they telnet out from the box. The easiest way I can think of would be to telnet to another machine and do a who and see what it registers as.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2006 01:25 AM
08-25-2006 01:25 AM
Re: Multiple telnet/IP Addresses
Thanks for your responses.
The problem that I have is:
. I don't want to know the client IP address who telnet'd (who -R)
. I need to know to WHAT relocatable IP addres the client telnet'd, i.e., I have two packages in a box, user can telnet to IP1 or IP2, I need to know, after user is logged in, to what IP (IP1 or IP2) user telnet'd.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2006 01:26 AM
08-25-2006 01:26 AM
Re: Multiple telnet/IP Addresses
If you look at the arp command you will see a hostname/ip address along with a MAC address. This may be useful in identifying which node in the cluster the sessions are connecting too.
The bottom line on floating ip addresses is the users are not supposed to be able to identify which system the session is with.
In addition, floating ip addresses are really virtual ip addresses of the actual ip address assigned to the NIC. The actual traffic if measured on netstat -in traverses the primary ip address.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2006 01:43 AM
08-25-2006 01:43 AM
Re: Multiple telnet/IP Addresses
netstat -an
tcp 0 48 10.248.31.165.22 10.248.111.226.46906 ESTABLISHED
that is my current connection to a machine.
so with a combination of who, nslookup and netstat you can get the information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2006 01:49 AM
08-25-2006 01:49 AM
Re: Multiple telnet/IP Addresses
Have you tried filtering the output of netstat -a?
Just thoughts...
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2006 05:17 AM
08-25-2006 05:17 AM
Re: Multiple telnet/IP Addresses
Thanks for all that responded.
Victor, netstat -a | grep telnet|grep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2006 06:55 AM
08-25-2006 06:55 AM
Solution1. find the telnet connections you are interested from the output of the follwoing command
netstat -a | grep telnet
tcp 0 0 *.telnet *.* LISTEN
tcp 0 2 crt00.telnet mel01.52763 ESTABLISHED
here mel01 is my workstation and crt00 is the serviceguard package name I telnet into. It may also be an IP address
then use lsof to find the PID of the person's telnet session:
lsof -i tcp | grep 52763
(52763 port comes from the output of netstat command above)
output will look something like this
telnetd 7863 root 0u inet 0x5c8cd7c0 0t0 TCP crt00:telnet->mel01:52763 (ESTABLISHED)
and you may see multiple instances of the same line. The PID of interest to you is 7863
Hope this helps.
by the way, if you do not have lsof installed, you can get it from
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.77/
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2006 09:38 AM
08-25-2006 09:38 AM
Re: Multiple telnet/IP Addresses
Thanks for all.
Mel, lsof was the answer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2006 09:39 AM
08-25-2006 09:39 AM