- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- who -u shows incomplete ip address
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
03-17-2004 08:59 AM
03-17-2004 08:59 AM
who -u shows incomplete ip address
###.###.###.###
on the other box it returns something like
###.###.###:0.0
Anyone have any ideas why?
Both "who" are Revision 80.2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2004 10:12 AM
03-17-2004 10:12 AM
Re: who -u shows incomplete ip address
your second system may be resoving the name as "###.###.###.0.0"
Sijesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2004 04:16 PM
03-17-2004 04:16 PM
Re: who -u shows incomplete ip address
When simple telnet to a system is used, who -u shows:
###.###.###.###
whereas whenever XWindows is used who -u displays
###.###.###:0.0
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2004 04:21 PM
03-17-2004 04:21 PM
Re: who -u shows incomplete ip address
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2004 08:19 PM
03-17-2004 08:19 PM
Re: who -u shows incomplete ip address
###.###.###.### seems to be for the telnet connection and ###.###.###:0.0 seems to be from the xwindows connection.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2004 08:19 PM
03-17-2004 08:19 PM
Re: who -u shows incomplete ip address
###.###.###.### seems to be for the telnet connection and ###.###.###:0.0 seems to be for the xwindows connection.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2004 08:27 PM
03-17-2004 08:27 PM
Re: who -u shows incomplete ip address
from man page of who(1):
-R
Displays the user's host name. If the user is
logged in on a tty, who displays the string
returned from gethostname() (see gethostname(2)).
If the user is not logged in on a tty and the host
name stored in the /etc/utmp or named file has not
been truncated when stored (meaning that the
entire host name was stored with no loss of
information), it is displayed as it was stored.
Otherwise, the gethostbyaddr() function is called
with the internet address of the host (see
gethostent(3N)). The host name returned by
gethostbyaddr() is displayed unless it returns an
error, in which case the truncated host name is
displayed.
So essentially the tools logging to utmp are responsible. Usually these are login(1), telnetd(1M) and friends. For X11 sessions the terminal emulators enter the game... hpterm, xterm, etc.
So, the answer to your question depends on what exactly you are doing when you logon to the box via X11.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2004 01:49 AM
03-18-2004 01:49 AM
Re: who -u shows incomplete ip address
Both connections are using "xterm". One connections shows the complete ip address while the other drops the last segment and inserts 0.0
What I'm REALLY trying to do is to automate
the "export DISPLAY=....." command, with
this in my .profile (for when I su, or open connections from a different host)
export DISPLAY="$(/usr/bin/who -muR|awk '{print $NF}'):0.0"
but it only works on my system that returns the complete IP address with "who -u"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2004 04:48 AM
03-18-2004 04:48 AM
Re: who -u shows incomplete ip address
# /usr/sbin/acct/fwtmp < /etc/utmp
It dumps utmp in a readable format. The right two columns contain ut_addr and ut_host. The ut_host field should contain a hostname.
Best regards...
Dietmar.