Description of problem: Run "w". See: [root@gendo log]# w 11:44:19 up 91 days, 18:55, 1 user, load average: 1.65, 2.56, 3.56 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root pts/0 ip-88-207-241-12 11:17 0.00s 0.14s 0.12s -bash It would be better if this was possible (with -n similar to the netstat option) [root@gendo log]# w -n 11:44:19 up 91 days, 18:55, 1 user, load average: 1.65, 2.56, 3.56 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root pts/0 88.207.241.129 11:17 0.00s 0.14s 0.12s -bash Version-Release number of selected component (if applicable): procps-3.2.7-11.1.el5 Additional info: Should go upstream I guess. I might look into the code myself if I have some time (as if)
Hello David. I'm just trying to discuss this feature with upstream and if the guys have no objections, I'll implement this feature. I'll let You know about important news related to this topic. Thanks for reporting. Regards, Jaromir.
Hello David. Sorry for no response for long time. I sent a patch several months ago, but it wasn't accepted by other procps-ng members in it's very first form. Let me explain what the main issue is. In fact there's no reverse name resolution in the 'w' command. The information is taken directly from the proc filesystem and often contains additional info like screen numbers. My patch just used a different field of the structure (containing the IP address only). In some cases there was no IP address at all (= 0.0.0.0) whilst the domain name was present and guys didn't like the information loss in such cases. I proposed a change, that a missing IP (= 0.0.0.0) could be replaced with domain name and if the IP is present, then the screen numbers could be taken from the original field and concatenated with the IP address. Unfortunately I got no response. I'll try to resurrect this topic once again, but I can't promise it's gonna be accepted. Regards, Jaromir.
Hi Jaromir. That sounds organically hairy. Thank you very much for the updates. Hopefully this goes through. Best regards, -- David
Hello David. I just reimplemented the feature based on the latest procps-ng upstream sources and sent the patch to other procps-ng members for a review. We'll se if this goes through or not. I'll let you know once I have any feedback. Regards, Jaromir.
Thank you.
Hello David. The feature has been accepted and I'm going to backport the change into the legacy version. Regards, Jaromir.
Great stuff. Thanks.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-0062.html