The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

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 03:02 AM
how many users logged trichyselva Shell Programming and Scripting 4 05-06-2006 02:17 AM
How to know what users are logged in to account umen UNIX for Dummies Questions & Answers 2 02-28-2006 04:03 PM
All tcp/ip users are logged out Docboyeee IP Networking 2 03-13-2003 01:07 PM
Information about users who have logged. rooh UNIX for Dummies Questions & Answers 2 12-26-2001 06:42 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-23-2006
cburtgo cburtgo is offline
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
  #2 (permalink)  
Old 03-23-2006
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,209
Why no just assign both addresses to the new NIC?
  #3 (permalink)  
Old 03-24-2006
cburtgo cburtgo is offline
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.
  #4 (permalink)  
Old 04-02-2006
jallport jallport is offline
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.
  #5 (permalink)  
Old 04-04-2006
amro1 amro1 is offline
Registered User
  
 

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

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

Hope it helps.
  #6 (permalink)  
Old 04-28-2006
buffoonix buffoonix is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 145
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)
Closed Thread

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:41 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0