Operating System - HP-UX
1753525 Members
5720 Online
108795 Solutions
New Discussion юеВ

ps command not found after reboot

 
Siddharth_6
Occasional Advisor

ps command not found after reboot

Hi gurus,

After restarting the HPUX 11(HP visualize c240) i get ps command not found,

How to come up??

Thanks in advance

Sids
13 REPLIES 13
Mobeen_1
Esteemed Contributor

Re: ps command not found after reboot

Sids,
Have you checked if this command is found at bin and sbin directories

$ls -l /usr/bin/ps
$ls -l /usr/sbin/ps

If you can see the file at either one of the locations, then i suggest that you see if these directories are defined in the PATH

rgds
Mobeen
KapilRaj
Honored Contributor

Re: ps command not found after reboot

Post echo $PATH ...

And try after the following

export PATH=$PATH:/usr/bin:/usr/sbin

If not you can copy it from another node (same version) / recover from backup

Kaps
Nothing is impossible
Siddharth_6
Occasional Advisor

Re: ps command not found after reboot

yess, seeems ps is not there..


how to get it back??
Siddharth_6
Occasional Advisor

Re: ps command not found after reboot

Hi,

Thanks All,

But i have a single HP machine??

COuld any body please send me the "ps" command binary.


Thanks

Sids

Re: ps command not found after reboot

Sids

Are you sure your /usr directory is mounted?

whats the output of

mount -p

HTH

Duncan


I am an HPE Employee
Accept or Kudo
Siddharth_6
Occasional Advisor

Re: ps command not found after reboot

Thanks,

Here is the out put of mount -p

/dev/vg00/lvol3 / vxfs log 0 1
/dev/vg00/lvol1 /stand hfs defaults 0 0
/dev/vg00/lvol8 /var vxfs delaylog,nodatainlog 0 0
/dev/vg00/lvol7 /usr vxfs delaylog,nodatainlog 0 0
/dev/vg00/lvol6 /tmp vxfs delaylog,nodatainlog 0 0
/dev/vg00/lvol5 /opt vxfs delaylog,nodatainlog 0 0
/dev/vg00/lvol4 /home vxfs delaylog,nodatainlog 0 0


I know every thing is fine except i lost the ps ?? i dun know how to get it back?

Thanks

Sids



Pete Randall
Outstanding Contributor

Re: ps command not found after reboot

Sids,

As Duncan pointed out, you /usr seems to be missing. Check the output of dmesg for errors concerning /usr at boot-up time. We'll need to find the reason it didn't get mounted and fix it so we can mount it.


Pete

Pete
Siddharth_6
Occasional Advisor

Re: ps command not found after reboot

hi pete,

even m not able to find out the ps in /usr/bin as well as in /usr/sbin. and its mounted ..

Thanks

Sids
Siddharth_6
Occasional Advisor

Re: ps command not found after reboot

could any body plz send me the "ps" command exe for HPUX 11.

Thanks

Sids