1848630 Members
4604 Online
104033 Solutions
New Discussion

top

 
Chakravarthi
Trusted Contributor

top

Hi all,

I have Solaris and Hp-UX machines in Single NIS Domain, when i run top on few machines it doesnt show the username, just shows the UID, but in others it shows the user name. This is happening on both solaris and HP-UX machines.

But i'm able to login and when i give id command it shows username and user id,

Any suggestions

regards
chakri
10 REPLIES 10
John Poff
Honored Contributor

Re: top

Hi Chakri,

I think it was a problem fixed with some patches. Here is what I found in the patch database for 10.20 and 11.00, but I don't know if they will fix your problem or not. These are the patches that mention the problem, and there are newer patches for both of these:

10.20

PHCO_14306:
top(1) displays wrong usernames after PHCO_10096.
Extra character in top output at the lower right
corner of the screen. Floating exception when
screen is small.



11.00

PHCO_14809:
top(1) displays wrong usernames.



JP


john korterman
Honored Contributor

Re: top

Hi Chakri,
is it the same for every user? If not, the simple answer could be that the users in question have defined "top -u" as alias for top, a move to increase speed. Just an idea..
Regards,
John K.
it would be nice if you always got a second chance
Chakravarthi
Trusted Contributor

Re: top

It is happening for all the users, it shows only userID for all the users, no User name at all, u option didnt work

regards
chakri
Uncle Liew
Advisor

Re: top

Hi Chakri,

For HP-UX:

Issue command to check /etc/passwd:
pwck

Fix any error found.

One of the possibilities is the "#". Remove the "#" or the "#" line in /etc/passwd

If the above does not work, try to install "top(1) cumulative patch":

HP-UX 10.01: PHCO_22558
HP-UX 10.10: PHCO_22557
HP-UX 10.20: PHCO_22556
HP-UX 11.00: PHCO_26020
HP-UX 11.11: PHCO_25204

Hope this helps.



John Poff
Honored Contributor

Re: top

Hi,

One other thing I just thought of, what are the permissions on your /etc/passwd file? If it isn't readable by the group (sys), it will make 'top' just show UIDs instead of usernames. Also, what are your permissions on /usr/bin/top?

JP
Chakravarthi
Trusted Contributor

Re: top

Sorry,,, top -u is showing the user processes
every thing was fine till yesterday,, no changes has been done in NIS.

regards
chakri
Chakravarthi
Trusted Contributor

Re: top

Hi all,

Now this problem is occuring only for certain users

regards
chakri
John Poff
Honored Contributor

Re: top

Chakri,

What results do you see when one of the users having the 'top' problem does the 'whoami' command?

JP
Martin Johnson
Honored Contributor

Re: top

It looks like an NIS problem to me. Check your NIS configuration and make sure you have the latest patches.


HTH
Marty
Chakravarthi
Trusted Contributor

Re: top

But as the same user i'm able to login to the machine, and on few machines it shows his user name when i use top command.

and on the machine where top is not showing the username if i do whoami it gives me the username

regards
chakri