Re: OT: Unix - performance tuning (vmstat 5)
Try this: var_pid=`echo $var_grep_vmstat | grep -v grep | (read u v w x y z; echo ${v} )`kill $var_pid the grep -v grep will remove any lines with the word grep. HTH Stephen >>> [EMAIL PROTECTED] 08/22/01 05:05AM >>>Hi Unix Gurus,I submit a job to monitor the CPU utilization etc every 15 mins using thecommand vmstat 5.How do I kill the submitted unix process of the batch job ? I tried to kill the submitted process using a batch job using the followingcommand :var_pid=`echo $var_grep_vmstat | (read u v w x y z; echo ${v} )`kill $var_pidThis works if the output is $ ps -ef | grep vmstat orahrms 11271 11263 0 17:30:00 ? 0:00 vmstat 5 orahrms 11612 11576 0 18:50:53 pts/11 0:00 grep vmstatIf the output is as below, the program will not work $ ps -ef | grep vmstat orahrms 11612 11576 0 18:50:53 pts/11 0:00 grep vmstat orahrms 11271 11263 0 17:30:00 ? 0:00 vmstat 5Please help. Thanks in advance.Regds,New Bee-- Please see the official ORACLE-L FAQ: http://www.orafaq.com-- Author: CHAN Chor Ling Catherine (CSC) INET: [EMAIL PROTECTED]Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051San Diego, California -- Public Internet access / Mailing ListsTo REMOVE yourself from this mailing list, send an E-Mail messageto: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and inthe message BODY, include a line containing: UNSUB ORACLE-L(or the name of mailing list you want to be removed from). You mayalso send the HELP command for other information (like subscribing).
RE: OT: Unix - performance tuning (vmstat 5)
Thanks, Peter. U've just solved my problem. Regds, New Bee in Unix -Original Message- To: Multiple recipients of list ORACLE-L Sent: 08/22/2001 9:51 PM Hi Have a look at setting the second value with the vmstat command so you use something like vmstat 5 5 instead. This runs vmstat 5 times with a 5 second interval Try it on the command line and see if that is the result you require HTH Peter At 10:05 PM 22/08/2001, you wrote: >Hi Unix Gurus, > >I submit a job to monitor the CPU utilization etc every 15 mins using the >command vmstat 5. > >How do I kill the submitted unix process of the batch job ? > >I tried to kill the submitted process using a batch job using the following >command : >var_pid=`echo $var_grep_vmstat | (read u v w x y z; echo ${v} )` >kill $var_pid > >This works if the output is >$ ps -ef | grep vmstat >orahrms 11271 11263 0 17:30:00 ?0:00 vmstat 5 >orahrms 11612 11576 0 18:50:53 pts/11 0:00 grep vmstat > >If the output is as below, the program will not work >$ ps -ef | grep vmstat >orahrms 11612 11576 0 18:50:53 pts/11 0:00 grep vmstat >orahrms 11271 11263 0 17:30:00 ?0:00 vmstat 5 > >Please help. Thanks in advance. > >Regds, >New Bee >-- >Please see the official ORACLE-L FAQ: http://www.orafaq.com >-- >Author: CHAN Chor Ling Catherine (CSC) > INET: [EMAIL PROTECTED] > >Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 >San Diego, California-- Public Internet access / Mailing Lists > >To REMOVE yourself from this mailing list, send an E-Mail message >to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in >the message BODY, include a line containing: UNSUB ORACLE-L >(or the name of mailing list you want to be removed from). You may >also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Peter McLarty INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: CHAN Chor Ling Catherine (CSC) INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Re: OT: Unix - performance tuning (vmstat 5)
Hi Have a look at setting the second value with the vmstat command so you use something like vmstat 5 5 instead. This runs vmstat 5 times with a 5 second interval Try it on the command line and see if that is the result you require HTH Peter At 10:05 PM 22/08/2001, you wrote: >Hi Unix Gurus, > >I submit a job to monitor the CPU utilization etc every 15 mins using the >command vmstat 5. > >How do I kill the submitted unix process of the batch job ? > >I tried to kill the submitted process using a batch job using the following >command : >var_pid=`echo $var_grep_vmstat | (read u v w x y z; echo ${v} )` >kill $var_pid > >This works if the output is >$ ps -ef | grep vmstat >orahrms 11271 11263 0 17:30:00 ?0:00 vmstat 5 >orahrms 11612 11576 0 18:50:53 pts/11 0:00 grep vmstat > >If the output is as below, the program will not work >$ ps -ef | grep vmstat >orahrms 11612 11576 0 18:50:53 pts/11 0:00 grep vmstat >orahrms 11271 11263 0 17:30:00 ?0:00 vmstat 5 > >Please help. Thanks in advance. > >Regds, >New Bee >-- >Please see the official ORACLE-L FAQ: http://www.orafaq.com >-- >Author: CHAN Chor Ling Catherine (CSC) > INET: [EMAIL PROTECTED] > >Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 >San Diego, California-- Public Internet access / Mailing Lists > >To REMOVE yourself from this mailing list, send an E-Mail message >to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in >the message BODY, include a line containing: UNSUB ORACLE-L >(or the name of mailing list you want to be removed from). You may >also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Peter McLarty INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Re: OT: Unix - performance tuning (vmstat 5)
the STIME is always earlier for the command then for the grep, unless I haven't had any coffee. On Wed, Aug 22, 2001 at 04:05:24AM -0800, CHAN Chor Ling Catherine (CSC) wrote: > Hi Unix Gurus, > > I submit a job to monitor the CPU utilization etc every 15 mins using the > command vmstat 5. > > How do I kill the submitted unix process of the batch job ? > > I tried to kill the submitted process using a batch job using the following > command : > var_pid=`echo $var_grep_vmstat | (read u v w x y z; echo ${v} )` > kill $var_pid > > This works if the output is > $ ps -ef | grep vmstat >orahrms 11271 11263 0 17:30:00 ?0:00 vmstat 5 >orahrms 11612 11576 0 18:50:53 pts/11 0:00 grep vmstat > > If the output is as below, the program will not work > $ ps -ef | grep vmstat >orahrms 11612 11576 0 18:50:53 pts/11 0:00 grep vmstat >orahrms 11271 11263 0 17:30:00 ?0:00 vmstat 5 > > Please help. Thanks in advance. > > Regds, > New Bee > -- > Please see the official ORACLE-L FAQ: http://www.orafaq.com > -- > Author: CHAN Chor Ling Catherine (CSC) > INET: [EMAIL PROTECTED] > > Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 > San Diego, California-- Public Internet access / Mailing Lists > > To REMOVE yourself from this mailing list, send an E-Mail message > to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in > the message BODY, include a line containing: UNSUB ORACLE-L > (or the name of mailing list you want to be removed from). You may > also send the HELP command for other information (like subscribing). -- === Ray Stell [EMAIL PROTECTED] (540) 231-4109 KE4TJC28^D -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Ray Stell INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
OT: Unix - performance tuning (vmstat 5)
Hi Unix Gurus, I submit a job to monitor the CPU utilization etc every 15 mins using the command vmstat 5. How do I kill the submitted unix process of the batch job ? I tried to kill the submitted process using a batch job using the following command : var_pid=`echo $var_grep_vmstat | (read u v w x y z; echo ${v} )` kill $var_pid This works if the output is $ ps -ef | grep vmstat orahrms 11271 11263 0 17:30:00 ?0:00 vmstat 5 orahrms 11612 11576 0 18:50:53 pts/11 0:00 grep vmstat If the output is as below, the program will not work $ ps -ef | grep vmstat orahrms 11612 11576 0 18:50:53 pts/11 0:00 grep vmstat orahrms 11271 11263 0 17:30:00 ?0:00 vmstat 5 Please help. Thanks in advance. Regds, New Bee -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: CHAN Chor Ling Catherine (CSC) INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).