The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
Google UNIX.COM


IP Networking Questions involving TCP/IP, Routers, Hubs, Network protocols, etc go here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
logged out users roshni Post Here to Contact Site Administrators and Moderators 1 07-06-2007 12:02 AM
how many users logged trichyselva Shell Programming and Scripting 4 05-05-2006 11:17 PM
How to know what users are logged in to account umen UNIX for Dummies Questions & Answers 2 02-28-2006 01:03 PM
All tcp/ip users are logged out Docboyeee IP Networking 2 03-13-2003 10:07 AM
Information about users who have logged. rooh UNIX for Dummies Questions & Answers 2 12-26-2001 03:42 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 03-23-2006
Registered User
 

Join Date: Aug 2005
Location: Grapevine, Texas
Posts: 2
Users logged in through which NIC

We have two NIC cards in our IBM RS/6000 F50 running AIX 4.3.3

We are trying to make sure we have moved all users to log in through the new NIC.

10.22.x.y (old)
10.22.x.z (new)

How can I tell which users are still using the old address for logging in so I can update their work station to point to the new address? It is a large warehouse with hundreds of users.

Unfortunately, the actual IP address is used from their 286/386 DOS workstation (glorified terminal) in order to connect to the box (it's in the autoexec.bat), so we have to change each workstation.

I know there are too many issues to list with this setup, and DNS would solve most of it, but that is further down the path.

TIA
Reply With Quote
Forum Sponsor
  #2  
Old 03-23-2006
reborg's Avatar
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,636
Why no just assign both addresses to the new NIC?
Reply With Quote
  #3  
Old 03-24-2006
Registered User
 

Join Date: Aug 2005
Location: Grapevine, Texas
Posts: 2
We are upgrading to a new hardware platform. The idea is to get everyone pointing to the new NIC card, and when we cutover, we just assign the address to the new machine and now everyone is pointing to the new machine.

Problem is, if you're still pointing to the old address, those work stations will be idle come Monday morning.
Reply With Quote
  #4  
Old 04-02-2006
Registered User
 

Join Date: Mar 2006
Location: UK
Posts: 11
Are you logging in with telnet or SSH?

If SSH, check for an environment variable called SSH_CONNECTION.

e.g. SSH_CONNECTION='81.92.103.204 2563 212.101.7.123 22'
that is SSH_CONNECTION='{client ip} {client port} {server ip} {server port}'

I'd stick a line in everyone's .profile to append that variable to a file at login. In that way you'll have generated a tab-separated file containing exactly what you want within about a day.
Reply With Quote
  #5  
Old 04-04-2006
Registered User
 

Join Date: Mar 2006
Posts: 106
Here...

You do
"netstat -pn", it will show each connection as to foreing and a local address.

Hope it helps.
Reply With Quote
  #6  
Old 04-28-2006
Registered User
 

Join Date: Mar 2006
Posts: 142
I am not into AIX.
So options and parameters may differ thereon.
But generally netstat should also on an AIX box
show the local IP addresses used by tcp sockets
(e.g. netstat -an)
Maybe the AIX netstat further offers an option to limit to tcp connections like GNU,
as with -t ?
You could combine this with the who command,
or if you have it on AIX, the lsof command (but I doubt it's available there).

You could also force your users on a certain NIC by using some tcp wrapper
for your network login services (e.g. telnet, rlogin etc.)
On Linux xinetd handles this automatically by conf file entries for those services.
Most commercial Unix vendors will offer a tcp wrapper for their OS free of charge
(e.g. HP-UX does)

If your users connect via SSH you could set the ListenAdress directive in
sshd_config to the IP address (viz. NIC) you want your users to connect to
(by default sshd will listen to all local up NICs)
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0