Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I see what hostname user supplied for login connection?

Status
Not open for further replies.

Blizard

Technical User
Aug 2, 2002
14
US
We are configuring HACMP for a pair of v5.2 systems, and we need to be able to run a .profile for a user account that is different based on which environment the user is connecting to.

I can learn what physical machine I am on by using hostname. I have a script that will tell me if the node I am on is serving as one or the other (or both) service name. What I haven't been able to figure out is which host the user intended to login to when he executed his login. I have looked in utmp (not there), who (not there).

I have to believe the information is available; I just can't figure out where it is. Any help is greatly appreciated.



Robert Blizard
National Grid USA Service Co.
An expert is a man who has made all the mistakes which can be made, in a narrow field.
Neils Bohr (1885-1962)
 
Thanks, but not what I am looking for.

last shows the machine the user is coming from; I want to learn the name of the machine to which the session was directed. This is because with HACMP I have the situation where a single physical machine (or LPAR of a machine) serves as two hosts in the failed over state. One is the service name that goes along with the hostname of the physical machine. The other is the service name that was transferred from the other node in the HA cluster, which has failed or otherwise been taken out of service.

If I have an account that exists on both servers but does different things on each, I would like to be able to know what environment to set up when I log into the service name. As it stands, I can't automatically set up which personality I want if I can't determine where I wanted to go.

Robert Blizard
National Grid USA Service Co.
An expert is a man who has made all the mistakes which can be made, in a narrow field.
Neils Bohr (1885-1962)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top