Operating System - HP-UX
1832645 Members
2903 Online
110043 Solutions
New Discussion

how can i stop process HP-UX

 
SOLVED
Go to solution
Cesar Roldan
Occasional Contributor

how can i stop process HP-UX

Hi :o)

i need some help, i have a server and this server have a lot of process running at this time, i need to stop this process and know who user start it, and if i can know the ip or host name of the people that start the process.

thanks.
9 REPLIES 9
Marc Ahrendt
Super Advisor

Re: how can i stop process HP-UX

use "ps -ef" for starters ...know that the user running the process of concern may not actually be the user that started the process (SUID, GUID issues)

check crontabs for users on the system and also look at any SHELL command history files
hola
Mel Burslan
Honored Contributor
Solution

Re: how can i stop process HP-UX

It is not quite clear what you want to accomplish with the information you provided.

if this is a web server and people are launching processes over the network, it will be hard to track. But if the users, who are starting these processes, you can use a command like

ps -ef | grep user_name

and see what they started and kill the processes using their pid numbers. PID number is the first number coming right after the user name in the ps -ef output.

if you clearly define what type of server and what kind of processes you are talking about, you can get better help.
________________________________
UNIX because I majored in cryptology...
Vibhor Kumar Agarwal
Esteemed Contributor

Re: how can i stop process HP-UX

To stop the process you can use the kill command.
Vibhor Kumar Agarwal
Yogeeraj_1
Honored Contributor

Re: how can i stop process HP-UX

hi,

After you have identified the process id, you may also know the ip address by running the following command:

who -u|grep

Note that this will not work for all processes. This is applicable for only for those who have logged on the server.

e.g.
$ who -u|grep 11479
root pts/tf Aug 23 16:24 . 11479 PC969
$


hope this helps too!
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
sasikala
Advisor

Re: how can i stop process HP-UX

Hi,

Use the command without quote "ps -ef" and kill the process using kill -9

e.g
$ps -ef | grep
$kill -9

Regards
Sasikala

spex
Honored Contributor

Re: how can i stop process HP-UX

Hi Cesar,

Once you determine the pid to be killed, do not start out with a 'kill -9'. 'kill -9 ' should only be used as a last resort, as it cannot be trapped or ignored by the process. This means that the process doesn't get the opportunity to clean up shared memory or temp files before it terminates, which can spell bad news for the system.

Proceed in this order:

# kill -1 #SIGHUP
# kill -2 #SIGINT
# kill -3 #SIGQUIT
# kill -11 #SIGSEGV
# kill -9 #SIGKILL

PCS
Sp4admin
Trusted Contributor

Re: how can i stop process HP-UX

HI Cesar,

You can use the "ps -ef" command to find the pid number you want to kill. Then do a "kill" command or a "kill -9".

sp,
pmfrech
New Member

Re: how can i stop process HP-UX

I tried the same command listed and it still does not kill the process. Now What?
Hemmetter
Esteemed Contributor

Re: how can i stop process HP-UX

Hola Cesar, pmfrech?

What processes are you speaking about?

If you can't kill them, your processes are blocked in a kernel call.
And so they do not receive your kill signals until they leave kernel.
This case is mostly when nfs is involved.

Do you have nfs mounted filesystems? Are there some "stale nfs-handle" messages in syslog.log?

rgds
HGH