- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Unuse process
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2005 02:33 PM
09-22-2005 02:33 PM
Unuse process
I found that if the system process that its process name is "ora" AND its ppid is not "2" , then it will crash the system, can suggest how to make sure the system no such kind of process is running ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2005 03:36 PM
09-22-2005 03:36 PM
Re: Unuse process
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2005 03:46 PM
09-22-2005 03:46 PM
Re: Unuse process
it is not related to "oracle" , it is "ora" that the application we use .
can suggest the script / way to do that ?
thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2005 03:57 PM
09-22-2005 03:57 PM
Re: Unuse process
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2005 04:14 PM
09-22-2005 04:14 PM
Re: Unuse process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2005 04:44 PM
09-22-2005 04:44 PM
Re: Unuse process
glance, select process, wait state if it is a hung process. If it is hung process, you can not kill it and reboot remains the only option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2005 04:44 PM
09-22-2005 04:44 PM
Re: Unuse process
kill -9 `ps -ae |grep -i "ora"||awk '{ print $1}'`
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2005 05:26 PM
09-22-2005 05:26 PM
Re: Unuse process
it is running process , the process is for system checking ,
thx Arunvijai,
you script seems not check the ppid , I use 'ps -ef' can find the ppid .
thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2005 05:30 PM
09-22-2005 05:30 PM
Re: Unuse process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2005 05:32 PM
09-22-2005 05:32 PM
Re: Unuse process
kill -15 "pid"
kill -1 "pid"
kill -2 "pid"
kill -3 "pid"
kill -11 "pid"
Last resort
kill -9 "pid"
you can kill you process as follows.
UNIX95= ps -C"process_name" -o pid= | xargs kill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2005 05:35 PM
09-22-2005 05:35 PM
Re: Unuse process
ps -ef | grep -i 'ora' | awk '!/COMMAND/ { if ( $2 != "2" ) { print; } }'
Is there anything in /etc/rc.log or syslog on regaring problem with this application startup.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2005 08:46 PM
09-24-2005 08:46 PM
Re: Unuse process
in Muthukumar's script
ps -ef | grep -i 'ora' | awk '!/COMMAND/ { if ( $2 != "2" ) { print; } }'
could suggest if I want to kill the process and log what process that it has kill , what can I do ? thx
and I am not too understand what is the function of rc script , is it useful for controlling such process ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2005 09:01 PM
09-25-2005 09:01 PM
Re: Unuse process
=> grep out ora with case-insensitive
=> It will remove the first line of ps -ef ouput
=> It will check for ppid not equal to 2
To track all process and killed information then,
for pid in `ps -ef | grep -i 'ora' | awk '!/COMMAND/ { if ( $3 != "2" ) { print $2; }} '`
do
kill -9 $pid
[ $? -eq 0 ] && echo "pid is killed" || echo "pid is not killed" >> /tmp/pid.log
done
cat /tmp/pid.log will give information.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2005 11:07 PM
09-25-2005 11:07 PM
Re: Unuse process
what is the use of the below string ? thx
!/COMMAND/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2005 11:11 PM
09-25-2005 11:11 PM
Re: Unuse process
how to make your script to run 10 times per every 1 minute ? thx in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2005 11:20 PM
09-25-2005 11:20 PM
Re: Unuse process
# ps -ef
UID PID PPID C STIME TTY TIME COMMAND
root 0 0 0 Sep 20 ? 0:16 swapper
to remove first line of UID PID .. COMMAND from usage with scripting.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2005 11:23 PM
09-25-2005 11:23 PM
Re: Unuse process
>>
#!/bin/ksh
# unuse.ksh
# Time to Sleep - 60 seconds / 10 times = 6 second
stime=6
while [ 1 ]
do
for pid in `ps -ef | grep -i 'ora' | awk '!/COMMAND/ { if ( $3 != "2" ) { print $2; }} '`
do
kill -9 $pid
[ $? -eq 0 ] && echo "pid is killed" || echo "pid is not killed" >> /tmp/pid.log
done
sleep $stime
done
# end
# chmod +x unuse.ksh
# ./unuse.ksh &
# tail -f /tmp/pid.log
# Use ctr + d to stop it. Or you can use crontab to schedule it accordingly. Change stime variable to suite your requirement.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 01:48 AM
09-26-2005 01:48 AM
Re: Unuse process
your method is excellent , I want to have one more question , if run this script , it seems try to kill the pid that in the script running grep , like the below example , it seems try to kill the process 32612 , can suggest how to prevent the system kill it ? thx
root 758 1 0 Jul23 ? 00:02:26 ora
root 768 1 0 Jul23 ? 00:00:00 ora
root 32612 22295 0 21:45 pts/0 00:00:00 grep ora