HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

who command not working in hpux 11.11

 
avizen9
Esteemed Contributor

who command not working in hpux 11.11

HI i am having issue with who command, it doest show any output today, when i use
who -a

it showing below output not sure what is wrong, please let me know if someone got any clue here, thanks,

Empty slot.
Empty slot.
Empty slot.
Empty slot.
Empty slot.
Empty slot.
Empty slot.
Empty slot.
Empty slot.
Empty slot.
Empty slot.
Empty slot.
Empty slot.
Empty slot.
Empty slot.
Empty slot.
Empty slot.
Empty slot.
11 REPLIES

Re: who command not working in hpux 11.11

Your /etc/utmp* file may be corrupted.
avizen9
Esteemed Contributor

Re: who command not working in hpux 11.11

how to re-create that file, what exectly the command is?
SKR_1
Trusted Contributor

Re: who command not working in hpux 11.11

What is the output of

who -u
who -r

Thanks

SKR
avizen9
Esteemed Contributor

Re: who command not working in hpux 11.11

who -u = no output
who -r = can get out put with run leve etc. info,

who -d also working fine.
VK2COT
Honored Contributor

Re: who command not working in hpux 11.11

Hello,

a) Do you have patch PHNE_36196 installed (original patch was PHNE_24829)? That patch
deals with telnet kernel and telnetd and
fixes issues that caused telnet to corrupt
/etc/utmp as well.

b) Stopping and starting utmpd might help:

/sbin/init.d/utmpd stop
/sbin/init.d/utmpd start

c) Some workarounds have involved bringing
the system down to single user mode, and then:

# cat /dev/null >/etc/utmp[x]

... and rebooting. This requires manual
intervention.

Cheers,

VK2COT
VK2COT - Dusan Baljevic

Re: who command not working in hpux 11.11

>how to re-create that file, what exactly the command is?

The file is not there?
Just touch the file and make it owned by root:sys and writable by the owner and readable by any.

Re: who command not working in hpux 11.11

Here are the permissions of my /etc/utmp* files:
-rw-r--r-- 1 root root 2580 Jan 5 06:31 /etc/utmp
-rw-r--r-- 1 root root 8260 Jan 5 06:31 /etc/utmpx

If utmpx doesn't have size 0, you might be able to write a program to convert to the utmp format.

avizen9
Esteemed Contributor

Re: who command not working in hpux 11.11

HI all,
file permission is correct,
i can not reboot server,
i could not found /sbin/init.d/utmpd in my server,

any other clue? thanks,

Re: who command not working in hpux 11.11

>file permission is correct

What are the file sizes?

>I could not found /sbin/init.d/utmpd in my server

utmpd(1M) is only there on 11.23 and later.
avizen9
Esteemed Contributor

Re: who command not working in hpux 11.11



HI if utmpd(1M) is only there on 11.23 and later, since my server version is 11.11 which demon i should restart.

Re: who command not working in hpux 11.11

>if utmpd(1M) is only there on 11.23 and later, since my server version is 11.11, which demon I should restart?

There is no demon to restart.

Again, what are the file sizes? If there is nothing in those files, there is nothing you can do except reboot or ignore it.