mhellman Wed, 12/19/2007 - 06:19
User Badges:
  • Blue, 1500 points or more

An a non service user, try:


show statistics host


As the service user try (this will give you much better insight into utilization):


top

sureshkum Thu, 12/20/2007 - 02:31
User Badges:

Hi,


Thanks for ur response.By using the above command i m finding only mem usage..i need to know the cpu utilization

mhellman Thu, 12/20/2007 - 05:27
User Badges:
  • Blue, 1500 points or more

You don't mention which version of software you're using, but with 6.x it shows a bunch of statistics including CPU. You have to "page" through them.


# show statistics host

General Statistics


NTP Statistics


Memory Usage


Summertime Statistics


CPU Statistics

Usage over last 5 seconds = 44

Usage over last minute = 36

Usage over last 5 minutes = 26


sureshkum Thu, 12/27/2007 - 01:43
User Badges:

Thanks for ur response.My ver is 4.1(5)..showing like bellow..


IDS# sh statistics host

General Statistics

Last Change To Host Config (UTC) = 03:58:53 Tue Dec 04 2007

Command Control Port Device = eth1

Command Control Port Type = tx

Network Statistics

eth1 Link encap:Ethernet HWaddr 00:0D:56:FD:7B:97

inet addr:172.X.X.X Bcast:172.

x.x. Mask:255.255.252.0

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:57782472 errors:0 dropped:0 overruns:0 frame:0

TX packets:25549317 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:100

RX bytes:2342748677 (2234.2 Mb) TX bytes:3744649148 (3571.1 Mb)

Interrupt:16 Base address:0xdcc0 Memory:feb20000-feb40000

NTP Statistics

status = Not applicable

Memory Usage

usedBytes = 911388672

freeBytes = 10133504

totalBytes = 921522176

Swap Usage

usedBytes = 0

freeBytes = 0


totalBytes = 0


mhellman Thu, 12/27/2007 - 07:08
User Badges:
  • Blue, 1500 points or more

4.x? sorry, can't help you there, I haven't used that version in years.

cisco24x7 Thu, 12/27/2007 - 10:30
User Badges:
  • Silver, 250 points or more

I don't know if this method is supported

by Cisco TAC but you can do it quite easily.

I tested this on version 4.1. By the way,

IDS version 4.1 is a LinuxOS.


a- create an account called "test" and assign "service" privilege,


b- logout of the IDS and log back in with

the test account. This will put you in

bash shell,


c- type "su -" and enter the "admin" or "root" password,


d- now you are in superuser mode, type "top".

This will show you cpu usage in real-time.




sureshkum Tue, 01/01/2008 - 22:36
User Badges:

Thanks a lot..It is working..but its is showing separatly like bellow..What is the meaning of nice in that...so to know the total cpu usage i have to add the all usages apart from idle usage..


CPU states: 18.4% user, 3.7% system, 3.1% nice, 74.7% idle

cisco24x7 Wed, 01/02/2008 - 06:57
User Badges:
  • Silver, 250 points or more

How familiar with Unix/Linux? That's how

it works. Another command you may want

to use is "vmstat x" where x is the number

of seconds you want it to repeat.


CCIE security

Actions

This Discussion