[HPADM] Re: who am i -R oddness

From: Justin Willoughby (jwilloug@mhc.net)
Date: Mon Jun 30 2003 - 10:04:01 EDT


I will summarize later today or tomorrow.

I should note that 'who am i' is not picking up any dns names. Sometimes is simply seems to return an incorrect IP address, one that I don't think is even in the range of IPs of our network. There were a few suggestions of alternate ways to get this info. I will likely modify my script to output the results of these alternate solutions to see if they are different then what is being returned from 'who am i'. This problem does not happen too often. I am guessing it's wrong maybe 1 in a few hundred or more logins or so.

- Justin

==================
 Justin Willoughby
 Computer Operations
==================

>>> "Justin Willoughby" <jwilloug@mhc.net> 06/27/03 04:00PM >>>

I have a login script that runs the following:

USERIP1=`who am i -R | awk '{ print $6 }' | tr -d \( | tr -d \)`

I use this to find out what IP address a user is coming from. However sometimes this command does not seem to return the correct IP for which they are coming from. If the IP listed in $USERIP1 does not match the IP in a text file then a message is echo'ed when the user logs in.

My questions is has anyone seen any kind of odd behavior with "who am i -R"?

Is there any better solution to finding what IP address a user is coming from then the method I am using?

Thanks!

- Justin

==================
 Justin Willoughby
 Computer Operations
==================

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:30 EDT