RE: CPU Process Question

From: Tony Varriale <tvarriale_at_flamboyaninc.com>
Date: Wed, 12 Aug 2009 08:56:31 -0500

Try below to pick up more processes that have some time in them

Sh proc cpu s | e 0.00%__0.00%__0.00%

-----Original Message-----
From: nobody_at_groupstudy.com [mailto:nobody_at_groupstudy.com] On Behalf Of Ryan
West
Sent: Wednesday, August 12, 2009 7:47 AM
To: Nauman Habib; Steve Lyons
Cc: Cisco certification
Subject: RE: CPU Process Question

Works fine for me:

show proc cpu | e 0.00
CPU utilization for five seconds: 15%/11%; one minute: 33%; five minutes:
26%
 PID Runtime(ms) Invoked uSecs 5Sec 1Min 5Min TTY Process
  30 3168589 3030788 1045 0.16% 0.08% 0.06% 0 Per-Second
Jobs
  61 3265230 2970839 1099 0.57% 0.53% 0.24% 0 IP Input
 152 3933 1018 3863 2.29% 1.44% 0.62% 67 SSH Process

show proc cpu | e 0.00%
CPU utilization for five seconds: 28%/26%; one minute: 24%; five minutes:
25%
 PID Runtime(ms) Invoked uSecs 5Sec 1Min 5Min TTY Process
  30 3168613 3030832 1045 0.08% 0.05% 0.05% 0 Per-Second
Jobs
 152 4190 1032 4060 0.98% 0.88% 0.59% 67 SSH Process

-ryan

-----Original Message-----
From: nobody_at_groupstudy.com [mailto:nobody_at_groupstudy.com] On Behalf Of
Nauman Habib
Sent: Wednesday, August 12, 2009 3:26 AM
To: Steve Lyons
Cc: Cisco certification
Subject: Re: CPU Process Question

Just to Update Steve's Post

it will be :

#show processes cpu | exclude 0.00%

with out % - it shows nothing

thanks

On Wed, Aug 12, 2009 at 5:22 AM, Steve Lyons <charter21p5_at_gmail.com> wrote:

> To see the process that is taking high cpu in real time use show proc cpu
|
> e 0.00
>
> If you want to catch it after the fact show proc cpu history will only
show
> you usage not process so you will need to write a script and have the
> trigger high cpu.
>
> Steve Lyons
>
> On Mon, Aug 10, 2009 at 1:12 AM, shiran guez <shiranp3_at_gmail.com> wrote:
>
> > you can either use that command if you want the proccess that taken the
> > most
> > cpu in the last 5sec
> > sh processes cpu sorted 5sec
> >
> > or if you are sure that in the last 5sec some proccess taken 100% and
you
> > want to see only them you can use:
> > sh processes cpu | include 100%
> > 2009/8/9 Ryan West <rwest_at_zyedge.com>
> >
> > > This was an interesting topic so I did a little more research, I would
> > > check out 'process cpu autoprofile hog' and then 'show process cpu
> > > autoprofile hog'. I haven't had a chance to test with them, but I
> think
> > it
> > > might provide you what you're looking for.
> > >
> > > As for s cpu proc history, that's not going to show individual
process,
> > but
> > > just overall CPU state over time. This information can also be
> extended
> > > with the 'process cpu extended' command.
> > >
> > > -ryan
> > >
> > > -----Original Message-----
> > > From: nobody_at_groupstudy.com [mailto:nobody_at_groupstudy.com] On Behalf
> Of
> > > ??? ?????
> > > Sent: Sunday, August 09, 2009 1:02 PM
> > > To: Cisco certification
> > > Subject: Fwd: CPU Process Question
> > >
> > > ---------- Forwarded message ----------
> > > From: W W)W W W W W W <eshedalonie_at_gmail.com>
> > > Date: Sun, Aug 9, 2009 at 8:00 PM
> > > Subject: Re: CPU Process Question
> > > To: Ryan West <rwest_at_zyedge.com>
> > >
> > >
> > > Show Proc cpu is good only when you write it down at a current
moment.
> > > I Want to know not at a current moment but when it happens...
> > >
> > > 2009/8/9 Ryan West <rwest_at_zyedge.com>
> > >
> > > S proc cpu sort isnb t giving u what you want?
> > > >
> > > > -----Original Message-----
> > > > From: nobody_at_groupstudy.com [mailto:nobody_at_groupstudy.com] On Behalf
> > Of
> > > > ??? ?????
> > > > Sent: Sunday, August 09, 2009 10:09 AM
> > > > To: Cisco certification
> > > > Subject: CPU Process Question
> > > >
> > > > Is there a way to know what process generate 100% CPU ?
> > > >
> > > >
> > > > Blogs and organic groups at http://www.ccie.net
> > > >
> > > >
> _______________________________________________________________________
> > > > Subscription information may be found at:
> > > > http://www.groupstudy.com/list/CCIELab.html
> > >
> > >
> > > Blogs and organic groups at http://www.ccie.net
> > >
> > >
Received on Wed Aug 12 2009 - 08:56:31 ART

This archive was generated by hypermail 2.2.0 : Tue Sep 01 2009 - 05:43:56 ART