Re : To check on memory on switches/router ...

Unanswered Question
Jun 26th, 2008
User Badges:

Hi,

I would like to check how does one check if there is a memory issue on the switch/router ?

What commands can I use to check :-


i) memory leak

ii) buffer leak

iii) overall memory usage on the

router ....


I always use the 'sh processes memory' command to check on memory, which othe commands can supplement this to check on the switch/router memory ?


Router #sh processes memory

Total: 232163224, Used: 109466664, Free: 122696560


Thanking you in advance,


Cheers,

- sn -

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Nagendra Kumar ... Fri, 06/27/2008 - 01:37
User Badges:
  • Cisco Employee,

You can use "show mem debug leaks" command to check the memory leak.


To check memory used by specific process, you can use "show memory summary"


HTH,

Nagendra

b.petronio Fri, 06/27/2008 - 13:33
User Badges:

I am a curious guy, and went out writing the "show mem debug leak" command....


...and FREEZE my comnand line...



I opened another command line, to my main switch, and WOW....


"SW1#show processes cpu

CPU utilization for five seconds: 99%/100%; one minute: 80%; five minutes: 29%

"


Do it carefully :)


How do i resoved ? Clear line who performed the 1st command.



Best Regards,

Petrónio

michael.leblanc Sat, 06/28/2008 - 08:25
User Badges:
  • Silver, 250 points or more

Look at the "who" command to see who is connected on what line.


Look at the "disconnect" command options to disconnect a user connected through another line.


e.g.:


router#who

Line User Host(s) Idle Location

5 aux 0 Modem Autoconfigure 00:00:03

6 vty 0 idle 00:00:30 nms

* 7 vty 1 idle 00:00:01 nms


Interface User Mode Idle Peer Address



router#disconnect ssh vty 0


router#who

Line User Host(s) Idle Location

5 aux 0 Modem Autoconfigure 00:00:00

* 7 vty 1 idle 00:00:01 nms


Interface User Mode Idle Peer Address


You may need to use different syntax if it's not an SSH connection (i.e.: use command help).


The other connection will likely timeout anyway, unless you have not configured timeouts for your lines.


b.petronio Sat, 06/28/2008 - 12:34
User Badges:


Router_1#who

Line User Host(s) Idle Location

1 vty 0 idle 00:02:09 172.20.0.180 -- > This was the 1st connection ( Stucked ), before "disconnected"

* 2 vty 1 idle 00:00:07 172.20.0.180 -- > This was the 2nd connection i used for "disconnect" the previous one.


Interface User Mode Idle Peer Address




Router_1#clear line 1

[confirm]

[OK]




Best Regards,

Petrónio

Actions

This Discussion