Table Of Contents
show kron schedule
show logging
show logging count
show logging history
show logging xml
show management event
show memory
show memory allocating-process
show memory dead
show memory debug incremental
show memory debug leaks
show memory debug references
show memory debug unused
show memory ecc
show memory failures alloc
show memory fragment
show memory multibus
show memory pci
show memory processor
show memory scan
show memory statistics history table
show memory transient
show microcode
show monitor event-trace
show monitor event-trace cpu-report
show ntp associations
show ntp status
show parser dump
show parser statistics
show pci
show pci hardware
show processes
show processes cpu
show processes cpu autoprofile hog
show processes cpu extended
show processes memory
show protocols
show region
show registry
show reload
show resource all
show resource database
show resource owner
show resource relationship
show resource user
show rmon
show rmon alarms
show rmon capture
show rmon events
show rmon filter
show rmon history
show rmon hosts
show rmon matrix
show rmon statistics
show rmon topn
show rom-monitor
show rtr application
show rtr authentication
show rtr collection-statistics
show kron schedule
To display the status and schedule information of Command Scheduler occurrences, use the show kron schedule command in user EXEC or privileged EXEC mode.
show kron schedule
Syntax Description
This command has no arguments or keywords.
Command Modes
User EXEC
Privileged EXEC
Command History
Release
|
Modification
|
12.3(1)
|
This command was introduced.
|
Usage Guidelines
Use the show kron schedule command to view all currently configured occurrences and when they are next scheduled to run.
Examples
The following sample output displays each configured policy name and the time interval before the policy is scheduled to run:
Router# show kron schedule
week inactive, will run again in 7 days 01:02:33
may inactive, will run once in 32 days 20:43:31 at 6:30 on Jun 20
Table 114 describes the significant fields shown in the display.
Table 114 show kron schedule Field Descriptions
Field
|
Description
|
week inactive
|
The policy list named week is currently inactive.
|
run again in 7 days 01:02:33
|
Time in days, hours, minutes and seconds before the policy will run. This policy is scheduled to run on a recurring basis.
|
run once in 32 days 20:434:31
|
Time in days, hours, minutes and seconds before the policy will run. This policy is scheduled to run just once.
|
Related Commands
Command
|
Description
|
kron occurrence
|
Specifies schedule parameters for a Command Scheduler occurrence and enters kron-occurrence configuration mode.
|
policy-list
|
Specifies the policy list associated with a Command Scheduler occurrence.
|
show logging
To display the state of system logging (syslog) and the contents of the standard system logging buffer, use the show logging command in privileged EXEC mode.
show logging [slot slot-number | summary]
Syntax Description
slot slot-number
|
(Optional) Displays information in the syslog history table for a specific line card. Slot numbers range from 0 to 11 for the Cisco 12012 Internet router and 0 to 7 for the Cisco 12008 Internet router.
|
summary
|
(Optional) Displays counts of messages by type for each line card.
|
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
10.0
|
This command was introduced.
|
11.2 GS
|
The slot and summary keywords were added for the Cisco 12000 family.
|
12.2(8)T
|
Command output was expanded to show the status of the logging count facility ("Count and timestamp logging messages").
|
12.2(15)T
|
Command output was expanded to show the status of XML syslog formatting.
|
12.3(2)T
|
Command output was expanded (on supported software images) to show details about the status of system logging processed through the Embedded Syslog Manager (ESM). These lines appear as references to "filtering" or "filter modules".
|
12.3(2)XE
|
This command was integrated into Cisco IOS Release 12.3(2)XE.
|
12.2(25)S
|
This command was integrated into Cisco IOS Release 12.2(25)S.
|
Usage Guidelines
This command displays the state of syslog error and event logging, including host addresses, and which logging destinations (console, monitor, buffer, or host) logging is enabled. This command also displays Simple Network Management Protocol (SNMP) logging configuration parameters and protocol activity.
This command will also display the contents of the standard system logging buffer, if logging to the buffer is enabled. Logging to the buffer is enabled or disabled using the [no] logging buffered command. The number of system error and debugging messages in the system logging buffer is determined by the configured size of the syslog buffer. This size of the syslog buffer is also set using the logging buffered command.
To enable and set the format for syslog message timestamping, use the service timestamps log command.
If debugging is enabled (using any debug command), and the logging buffer is configured to include level 7 (debugging) messages, debug output will be included in the system log. Debugging output is not formatted like system error messages and will not be preceded by the percent symbol (%).
Examples
The following is sample output from the show logging command on a software image that supports the Embedded Syslog Manager (ESM) feature:
Syslog logging: enabled (10 messages dropped, 5 messages rate-limited,
0 flushes, 0 overruns, xml disabled, filtering disabled)
Console logging: level debugging, 31 messages logged, xml disabled,
Monitor logging: disabled
Buffer logging: level errors, 36 messages logged, xml disabled,
Logging Exception size (8192 bytes)
Count and timestamp logging messages: disabled
No active filter modules.
Trap logging: level informational, 45 message lines logged
Table 115 describes the significant fields shown in the display.
Table 115 show logging Field Descriptions
Field
|
Description
|
Syslog logging:
|
Shows general state of system logging (enabled or disabled), the status of logged messages (number of messages dropped, rate-limited, or flushed), and whether XML formatting or ESM filtering is enabled.
|
Console logging:
|
Logging to the console port. Shows "disabled" or, if enabled, the severity level limit, number of messages logged, and whether XML formatting or ESM filtering is enabled.
Corresponds to the configuration of the logging console, logging console xml, or logging console filtered commands.
|
Monitor logging:
|
Logging to the monitor (all TTY lines). Shows "disabled" or, if enabled, the severity level limit, number of messages logged, and whether XML formatting or ESM filtering is enabled.
Corresponds to the configuration of the logging monitor, logging monitor xml, or logging monitor filtered commands.
|
Buffer logging:
|
Logging to the standard syslog buffer. Shows "disabled" or, if enabled, the severity level limit, number of messages logged, and whether XML formatting or ESM filtering is enabled.
Corresponds to the configuration of the logging buffered, logging buffered xml, or logging buffered filtered commands.
|
Trap logging:
|
Logging to a remote host (syslog collector). Shows "disabled" or, if enabled, the severity level limit, number of messages logged, and whether XML formatting or ESM filtering is enabled.
(The word "trap" means a trigger in the system software for sending error messages to a remote host.)
Corresponds to the configuration of the logging host command. The severity level limit is set using the logging trap command.
|
SNMP logging
|
Displays whether SNMP logging is enabled, the number of messages logged, and the retransmission interval. If not shown on your platform, use the show logging history command.
|
Logging Exception size (8192 bytes)
|
Corresponds to the configuration of the logging exception command.
|
Count and timestamp logging messages:
|
Corresponds to the configuration of the logging count command.
|
No active filter modules.
|
Appears if no syslog filter modules are configured with the logging filter command.
Syslog filter modules are Tcl script files used when the Embedded Syslog Manager (ESM) is enabled. ESM is enabled when any of the filtered keywords are used in the logging commands.
If configured, the URL and filename of configured syslog filter modules will appear at this position in the output. Syslog filter modules are executed in the order in which they appear here.
|
Log Buffer (8192 bytes):
|
The value in parentheses corresponds to the configuration of the logging buffered buffer-size command. If no messages are currently in the buffer, the output ends with this line. If messages are stored in the syslog buffer, they appear after this line.
|
The following example includes syslog messages from the system buffer, with timestamping. Note that in this example, the software image does not support XML formatting or ESM filtering of syslog messages.
Syslog logging:enabled (2 messages dropped, 0 flushes, 0 overruns)
Monitor logging:level debugging, 0 messages logged
Buffer logging:level debugging, 4104 messages logged
Trap logging:level debugging, 4119 message lines logged
Logging to 216.231.111.14, 4119 message lines logged
Log Buffer (262144 bytes):
Jul 11 12:17:49 EDT:%BGP-4-MAXPFX:No. of prefix received from 209.165.200.225
(afi 0) reaches 24, max 24
! THE FOLLOWING LINE IS A DEBUG MESSAGE FROM NTP.
! NOTE THAT IT IS NOT PRECEEDED BY THE % SYMBOL.
Jul 11 12:17:48 EDT: NTP: Maxslew = 213866
Jul 11 15:15:41 EDT:%SYS-5-CONFIG:Configured from
tftp://host.com/addc5505-rsm.nyiix
.Jul 11 15:30:28 EDT:%BGP-5-ADJCHANGE:neighbor 209.165.200.226 Up
.Jul 11 15:31:34 EDT:%BGP-3-MAXPFXEXCEED:No. of prefix received from
209.165.200.226 (afi 0):16444 exceed limit 375
.Jul 11 15:31:34 EDT:%BGP-5-ADJCHANGE:neighbor 209.165.200.226 Down BGP
.Jul 11 15:31:34 EDT:%BGP-3-NOTIFICATION:sent to neighbor 209.165.200.226 3/1
(update malformed) 0 bytes
The software clock keeps an "authoritative" flag that indicates whether the time is authoritative (believed to be accurate). If the software clock has been set by a timing source (for example, via NTP), the flag is set. If the time is not authoritative, it will be used only for display purposes. Until the clock is authoritative and the "authoritative" flag is set, the flag prevents peers from synchronizing to the software clock.
Table 116 describes the symbols that proceed the timestamp.
Table 116 Timestamping Symbols for syslog Messages
Symbol
|
Description
|
Example
|
*
|
Time is not authoritative: the software clock is not in sync or has never been set.
|
*15:29:03.158 UTC Tue Feb 25 2003:
|
(blank)
|
Time is authoritative: the software clock is in sync or has just been set manually.
|
15:29:03.158 UTC Tue Feb 25 2003:
|
.
|
Time is authoritative, but NTP is not synchronized: the software clock was in sync, but has since lost contact with all configured NTP servers.
|
.15:29:03.158 UTC Tue Feb 25 2003:
|
The following is sample output from the show logging summary command for a Cisco 12012 router. A number in the column indicates that the syslog contains that many messages for the line card. For example, line card in slot 9 has 1 error message, 4 warning messages, and 47 notification messages.
Note
For similar log counting on other platforms, use the show logging count command.
Router# show logging summary
+-----+-------+-------+-------+-------+-------+-------+-------+-------+
SLOT | EMERG | ALERT | CRIT | ERROR |WARNING| NOTICE| INFO | DEBUG |
+-----+-------+-------+-------+-------+-------+-------+-------+-------+
|* 0* | . | . | . | . | . | . | . | . |
| 2 | | | | 1 | 4 | 45 | | |
| 4 | | | | 5 | 4 | 54 | | |
| 7 | | | | 17 | 4 | 48 | | |
| 9 | | | | 1 | 4 | 47 | | |
| 11 | | | | 12 | 4 | 65 | | |
+-----+-------+-------+-------+-------+-------+-------+-------+-------+
Table 117 describes the logging level fields shown in the display.
Table 117 show logging summary Field Descriptions
Field
|
Description
|
SLOT
|
Indicates the slot number of the line card. An asterisk next to the slot number indicates the GRP card whose error message counts are not displayed. For information on the GRP card, use the show logging command.
|
EMERG
|
Indicates that the system is unusable.
|
ALERT
|
Indicates that immediate action is needed.
|
CRIT
|
Indicates a critical condition.
|
ERROR
|
Indicates an error condition.
|
WARNING
|
Indicates a warning condition.
|
NOTICE
|
Indicates a normal but significant condition.
|
INFO
|
Indicates an informational message only.
|
DEBUG
|
Indicates a debugging message.
|
Related Commands
Command
|
Description
|
clear logging
|
Clears messages from the logging buffer.
|
logging count
|
Enables the error log count capability.
|
logging history size
|
Changes the number of syslog messages stored in the history table of the router.
|
logging linecard
|
Logs messages to an internal buffer on a line card and limits the logging messages displayed on terminal lines other than the console line to messages with a level at or above level.
|
service timestamps
|
Configures the system to timestamp debugging or logging messages.
|
show logging count
|
Displays a summary of system error messages (syslog messages) by facility and severity.
|
show logging xml
|
Displays the state of system logging and the contents of the XML-specific logging buffer.
|
show logging count
To display a summary of the number of times certain system error messages are occurring, use the show logging command in privileged EXEC mode.
show logging count
Syntax Description
This command has no arguments or keywords.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(8)T
|
This command was introduced.
|
Usage Guidelines
To enable the error log count capability (syslog counting feature), use the logging count command in global configuration mode.
This feature works independently of the various settings of the other logging commands (such as [no] logging on, [no] logging buffered, and so on). In other words, turning off logging by other means does not stop the counting and timestamping from occurring.
This command displays information such as the number of times a particular system error message occurs and the time stamp of the last occurrence of the specified message. System error messages are grouped into logical units called "Facilities" based on Cisco IOS software components.
To determine if system error message counting is enabled, use the show logging command.
The service timestamps command configuration determines the timestamp format (shown in the "Last Time" column) of show logging count command output. There is not quite enough space for all options of the possible options (datetime, milliseconds, and timezone) of the service timestamps datetime command to be displayed at the same time. As a result, if msec is selected, timezone will not be displayed. If show-timezone is selected but not msec, then the time zone will be displayed.
Occasionally, the length of the message name plus the facility name contains too many characters to be printed on one line. The CLI attempts to keep the name and facility name on one line but, if necessary, the line will be wrapped, so that the first line contains the facility name and the second line contains the message name and the rest of the columns.
Examples
The following example shows the number of times syslog messages have occurred and the most recent time that each error message occurred. In this example, the show logging command is used to determine if the syslog counting feature is enabled:
Router# show logging | include count
Count and timestamp logging messages: enabled
Router# show logging count
Facility Message Name Sev Occur Last Time
=============================================================================
SYS BOOTTIME 6 1 00:00:12
SYS CONFIG_I 5 1 00:00:05
------------- ------------------------------- -----------------------------
LINEPROTO UPDOWN 5 13 00:00:19
------------- ------------------------------- -----------------------------
LINK CHANGED 5 12 00:00:09
------------- ------------------------------- -----------------------------
SNMP COLDSTART 5 1 00:00:11
------------- ------------------------------- -----------------------------
Table 118 describes the significant fields shown in the display.
Table 118 show logging count Field Descriptions
Field
|
Description
|
Facility
|
The facility, such as syslog, from which these error messages are occurring.
|
Message Name
|
The name of this message.
|
Sev
|
The severity level of this message.
|
Occur
|
How many times this message has occurred.
|
Last Time
|
The last (most recent) time this message occurred. Timestamping is by default based on the system uptime (for example "3w1d" indicates 3 weeks and 1 day from the last system reboot.)
|
Sys Total / Lineproto Total / Link Total / SNMP Total
|
Total number of error messages that have occurred for the specified Facility.
|
In the following example, the user is interested only in the totals:
Router# show logging count | include total
Related Commands
Command
|
Description
|
clear logging
|
Clears messages from the logging buffer.
|
logging count
|
Enables the system error message log count capability.
|
service timestamps
|
Configures the system to time-stamp debugging or logging messages.
|
show logging
|
Displays general information about the state of system logging.
|
show logging history
To display information about the state of the syslog history table, use the show logging history command in privileged EXEC mode.
show logging history
Syntax Description
This command has no arguments or keywords.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
10.0
|
This command was introduced.
|
Usage Guidelines
This command displays information about the syslog history table, such as the table size, the status of messages, and text of messages stored in the table. Messages stored in the table are governed by the logging history global configuration command.
Examples
The following example shows sample output from the show logging history command. In this example, notifications of severity level 5 (notifications) through severity level 0 (emergencies) are configured to be written to the logging history table.
Router# show logging history
Syslog History Table: 1 maximum table entries,
saving level notifications or higher
0 messages ignored, 0 dropped, 15 table entries flushed,
SNMP notifications not enabled
entry number 16: SYS-5-CONFIG_I
Configured from console by console
Table 119 describes the significant fields shown in the output.
Table 119 show logging history Field Descriptions
Field
|
Description
|
maximum table entry
|
Number of messages that can be stored in the history table. Set with the logging history size command.
|
saving level notifications <x> or higher
|
Level of messages that are stored in the history table and sent to the SNMP server (if SNMP notification is enabled). The severity level can be configured with the logging history command.
|
messages ignored
|
Number of messages not stored in the history table because the severity level is greater than that specified with the logging history command.
|
dropped
|
Number of messages that could not be processed due to lack of system resources. Dropped messages do not appear in the history table and are not sent to the SNMP server.
|
table entries flushed
|
Number of messages that have been removed from the history table to make room for newer messages.
|
SNMP notifications
|
Whether syslog traps of the appropriate level are sent to the SNMP server. The sending of syslog traps are enabled or disabled through the snmp-server enable traps syslog command.
|
entry number:
|
Number of the message entry in the history table. In the example above, the message "SYS-5-CONFIG_I Configured from console by console" indicates a syslog message consisting of the facility name (SYS), which indicates where the message came from, the severity level (5) of the message, the message name (CONFIG_I), and the message text.
|
timestamp
|
Time, based on the up time of the router, that the message was generated.
|
Related Commands
Command
|
Description
|
clear logging
|
Clears messages from the logging buffer.
|
logging history
|
Limits syslog messages sent to the router's history table to a specified severity level.
|
logging history size
|
Changes the number of syslog messages that can be stored in the history table.
|
logging linecard
|
Logs messages to an internal buffer on a line card. This command limits the logging messages displayed on terminal lines other than the console line to messages with a level at or above level.
|
snmp-server enable traps
|
The [no] snmp-server enable traps syslog form of this command controls (enables or disables) the sending of system-logging messages to a network management station.
|
show logging xml
To display the state of system message logging in an XML format, and to display the contents of the XML syslog buffer, use the show logging xml command in privileged EXEC mode.
show logging xml
Syntax Description
This command has no arguments or keywords.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(15)T
|
This command was introduced.
|
Usage Guidelines
This command displays the same syslog state information as the standard show logging command, but displays the information in XML format. This command also displays the content of the XML syslog buffer (if XML-formatted buffer logging is enabled).
Examples
The following example compares the output of the standard show logging command with the output of the show logging xml command so that you can see how the standard information is formatted in XML.
Syslog logging: enabled (10 messages dropped, 6 messages rate-limited, 0 flushes, 0
overruns, xml enabled)
Console logging: level debugging, 28 messages logged, xml enabled
Monitor logging: level debugging, 0 messages logged, xml enabled
Buffer logging: level debugging, 2 messages logged, xml enabled (2 messages logged)
Logging Exception size (8192 bytes)
Count and timestamp logging messages: disabled
Trap logging: level informational, 35 message lines logged
Logging to 1.2.3.4, 1 message lines logged, xml disabled
Logging to 4.3.2.1, 1 message lines logged, xml enabled
00:04:20: %SYS-5-CONFIG_I: Configured from console by console
00:04:41: %SYS-5-CONFIG_I: Configured from console by console
<syslog-logging status="enabled" msg-dropped="10" msg-rate-limited="6" flushes="0"
overruns="0"><xml>enabled</xml></syslog-logging>
<console-logging level="debugging"
messages-logged="28"><xml>enabled</xml></console-logging>
<monitor-logging level="debugging"
messages-logged="0"><xml>enabled</xml></monitor-logging>
<buffer-logging level="debugging" messages-logged="2"><xml
messages-logged="2">enabled</xml></buffer-logging>
<logging-exception size="8192 bytes"></logging-exception>
<count-and-timestamp-logging status="disabled"></count-and-timestamp-logging>
<trap-logging level="informational" messages-lines-logged="35"></trap-logging>
<logging-to><dest id="0" ipaddr="1.2.3.4"
message-lines-logged="1"><xml>disabled</xml><dest></logging-to>
<logging-to><dest id="1" ipaddr="4.3.2.1"
message-lines-logged="1"><xml>enabled</xml><dest></logging-to>
<log-xml-buffer size="44444 bytes"></log-xml-buffer>
<ios-log-msg><facility>SYS</facility><severity>5</severity><msg-id>CONFIG_I</msg-id><time>
00:04:20</time><args><arg id="0">console</arg><arg
id="1">console</arg></args></ios-log-msg>
<ios-log-msg><facility>SYS</facility><severity>5</severity><msg-id>CONFIG_I</msg-id><time>
00:04:41</time><args><arg id="0">console</arg><arg
id="1">console</arg></args></ios-log-msg>
Table 120 describes the significant fields shown in the displays.
Table 120 show logging and show logging xml Field Descriptions
Field
|
Description
|
XML Tag
|
Syslog logging
|
The global state of system message logging (syslog); "enabled" or "disabled."
|
syslog-logging
|
Console logging
|
State of logging to console connections.
|
console-logging
|
Monitor logging
|
State of logging to monitor (TTY and Telnet) connections.
|
monitor-logging
|
Buffer logging
|
State of logging to the local system logging buffer.
|
buffer-logging
|
Count and timestamp logging messages:
|
Indicates whether the logging count feature is enabled. Corresponds to the logging count command.
|
count-and-timestamp-logging
|
Trap logging
|
State of logging to a remote host.
|
trap-logging
|
Related Commands
Command
|
Description
|
show logging count
|
Displays counts of each system error message.
|
show logging history
|
Displays the contents of the SNMP syslog history table.
|
show logging
|
Displays the contents of the standard syslog buffer.
|
show management event
To display the Simple Network Management Protocol (SNMP) Event values that have been configured on your routing device through the use of the Event MIB, use the show management event command in privileged EXEC mode.
show management event
Syntax Description
This command has no arguments or keywords.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.1(3)T
|
This command was introduced.
|
Usage Guidelines
The Event MIB allows you to configure your own traps, informs, or set operations through the use of an external network management application. The show management event command is used to display the values for the Events configured on your system. There are no Cisco IOS CLI commands for configuring Event MIB values. For information on Event MIB functionality, see RFC 2981, available at http://www.ietf.org.
Examples
The following example shows sample output of the show management event command:
Router# show management event
(1): 01, Comment: TestEvent, Sample: Abs, Freq: 120
Test: Existence Threshold Boolean
ObjectOwner: aseem, Object: sethi
OID: ifEntry.10.3, Enabled 1, Row Status 1
Existence Entry: , Absent, Changed
ObjOwn: , Obj: , EveOwn: aseem, Eve: 09
Value: 10, Cmp: 1, Start: 1
ObjOwn: , Obj: , EveOwn: aseem, Eve: 09
Rising: 50000, Falling: 20000
ObjOwn: ase, Obj: 01 RisEveOwn: ase, RisEve: 09 , FallEveOwn: ase, FallEve: 09
(0): Thresh: Rising, Exis: 1, Read: 0, OID: ifEntry.10.3 , val: 69356097
(1)Name: 09 , Comment: , Action: Set, Notify, Enabled: 1 Status: 1
ObjOwn: , Obj: , OID: ifEntry.10.1
OID: ciscoSyslogMIB.1.2.1.0, SetValue: 199, Wildcard: 2 TAG: , ContextName:
(1)Name: sethi, Index: 1, OID: ifEntry.10.1, Wild: 1, Status: 1
Related Commands
Command
|
Description
|
debug management event
|
Allows real-time monitoring of Event MIB activities for the purposes of debugging.
|
show memory
To display statistics about memory, including memory-free pool statistics, use the show memory command in EXEC mode.
show memory [memory-type] [free] [overflow] [summary]
Syntax Description
memory-type
|
(Optional) Memory type to display (processor, multibus, io, or sram). If memory-type is not specified, statistics for all memory types present are displayed.
|
free
|
(Optional) Displays free memory statistics.
|
overflow
|
(Optional) Displays details about memory block header corruption corrections when the exception memory ignore overflow global configuration command is configured.
|
summary
|
(Optional) Displays a summary of memory usage including the size and number of blocks allocated for each address of the system call that allocated the block.
|
Command Modes
EXEC
Command History
Release
|
Modification
|
10.0
|
This command was introduced.
|
12.3(7)T
|
This command was enhanced with the overflow keyword to display details about memory block header corruption corrections.
|
12.2(25)S, 12.3(14)T
|
The command output was updated to display information about transient memory pools.
|
Usage Guidelines
The show memory command displays information about memory available after the system image decompresses and loads.
Examples
The following is sample output from the show memory command:
Head Total(b) Used(b) Free(b) Lowest(b) Largest(b)
Processor B0EE38 5181896 2210036 2971860 2692456 2845368
Address Bytes Prev. Next Ref PrevF NextF Alloc PC What
B0EE38 1056 0 B0F280 1 18F132 List Elements
B0F280 2656 B0EE38 B0FD08 1 18F132 List Headers
B0FD08 2520 B0F280 B10708 1 141384 TTY data
B10708 2000 B0FD08 B10F00 1 14353C TTY Input Buf
B10F00 512 B10708 B11128 1 14356C TTY Output Buf
B11128 2000 B10F00 B11920 1 1A110E Interrupt Stack
B11920 44 B11128 B11974 1 970DE8 *Init*
B11974 1056 B11920 B11DBC 1 18F132 messages
B11DBC 84 B11974 B11E38 1 19ABCE Watched Boolean
B11E38 84 B11DBC B11EB4 1 19ABCE Watched Boolean
B11EB4 84 B11E38 B11F30 1 19ABCE Watched Boolean
B11F30 84 B11EB4 B11FAC 1 19ABCE Watched Boolean
The following is sample output from the show memory free command:
Head Total(b) Used(b) Free(b) Lowest(b) Largest(b)
Processor B0EE38 5181896 2210076 2971820 2692456 2845368
Address Bytes Prev. Next Ref PrevF NextF Alloc PC What
CEB844 32 CEB7A4 CEB88C 0 0 0 96B894 SSE Manager
D35ED4 80 D35E30 D35F4C 0 0 D27AE8 96B894 SSE Manager
D27AE8 80 D27A48 D27B60 0 D35ED4 0 22585E SSE Manager
D0A8F4 100 D0A8B0 D0A980 0 0 0 2258DA SSE Manager
B59EF0 108 B59E8C B59F84 0 0 0 2258DA (fragment)
The output of the show memory free command contains the same types of information as the show memory output, except that only free memory is displayed, and the information is displayed in order for each free list.
The first section of the display includes summary statistics about the activities of the system memory allocator. Table 121 describes the significant fields shown in the first section of the display.
Table 121 show memory Field Descriptions-First Section
Field
|
Description
|
Head
|
Hexadecimal address of the head of the memory allocation chain.
|
Total(b)
|
Sum of used bytes plus free bytes.
|
Used(b)
|
Amount of memory in use.
|
Free(b)
|
Amount of memory not in use.
|
Lowest(b)
|
Smallest amount of free memory since last boot.
|
Largest(b)
|
Size of largest available free block.
|
The second section of the display is a block-by-block listing of memory use. Table 122 describes the significant fields shown in the second section of the display.
Table 122 Characteristics of Each Block of Memory-Second Section
Field
|
Description
|
Address
|
Hexadecimal address of block.
|
Bytes
|
Size of block (in bytes).
|
Prev.
|
Address of previous block (should match the address on previous line).
|
Next
|
Address of next block (should match the address on next line).
|
Ref
|
Reference count for that memory block, indicating how many different processes are using that block of memory.
|
PrevF
|
Address of previous free block (if free).
|
NextF
|
Address of next free block (if free).
|
Alloc PC
|
Address of the system call that allocated the block.
|
What
|
Name of process that owns the block, or "(fragment)" if the block is a fragment, or "(coalesced)" if the block was coalesced from adjacent free blocks.
|
The show memory io command displays the free I/O memory blocks. On the Cisco 4000 router, this command quickly shows how much unused I/O memory is available.
The following is sample output from the show memory io command:
Address Bytes Prev. Next Ref PrevF NextF Alloc PC What
6132DA0 59264 6132664 6141520 0 0 600DDEC 3FCF0 *Packet Buffer*
600DDEC 500 600DA4C 600DFE0 0 6132DA0 600FE68 0
600FE68 376 600FAC8 600FFE0 0 600DDEC 6011D54 0
6011D54 652 60119B4 6011FEO 0 600FE68 6013D54 0
614FCA0 832 614F564 614FFE0 0 601FD54 6177640 0
6177640 2657056 6172E90 0 0 614FCA0 0 0
The following example displays details of a memory block overflow correction when the exception memory ignore overflow global configuration command is configured:
Router# show memory overflow
Count Buffer Count Last corrected Crashinfo files
1 1 00:11:17 slot0:crashinfo_20030620-075755
Traceback 607D526C 608731A0 607172F8 607288E0 607A5688 607A566C
The report includes the amount of time since the last correction was made and the name of the file that logged the memory block overflow details.
The show memory sram command displays the free SRAM memory blocks. For the Cisco 4000 router, this command supports the high-speed static RAM memory pool to make it easier for you to debug or diagnose problems with allocation or freeing of such memory.
The following is sample output from the show memory sram command:
Address Bytes Prev. Next Ref PrevF NextF Alloc PC What
7AE0 38178 72F0 0 0 0 0 0
The following example of the show memory command used on the Cisco 4000 router includes information about SRAM memory and I/O memory:
Head Total(b) Used(b) Free(b) Lowest(b) Largest(b)
Processor 49C724 28719324 1510864 27208460 26511644 15513908
I/O 6000000 4194304 1297088 2897216 2869248 2896812
SRAM 1000 65536 63400 2136 2136 2136
Address Bytes Prev. Next Ref PrevF NextF Alloc PC What
1000 2032 0 17F0 1 3E73E *Init*
17F0 2032 1000 1FE0 1 3E73E *Init*
1FE0 544 17F0 2200 1 3276A *Init*
2200 52 1FE0 2234 1 31D68 *Init*
2234 52 2200 2268 1 31DAA *Init*
2268 52 2234 229C 1 31DF2 *Init*
72F0 2032 6E5C 7AE0 1 3E73E Init
7AE0 38178 72F0 0 0 0 0 0
The show memory summary command displays a summary of all memory pools and memory usage per Alloc PC (address of the system call that allocated the block).
The following is a partial sample output from the show memory summary command. This output shows the size, blocks, and bytes allocated. Bytes equal the size multiplied by the blocks. For a description of the other fields, see Table 121 and Table 122.
Router# show memory summary
Head Total(b) Used(b) Free(b) Lowest(b) Largest(b)
Processor B0EE38 5181896 2210216 2971680 2692456 2845368
Alloc PC Size Blocks Bytes What
0x2AB2 192 1 192 IDB: Serial Info
0xC916 128 50 6400 RIF Cache
0x76ADE 4500 1 4500 XDI data
0x76E84 4464 1 4464 XDI data
0x76EAC 692 1 692 XDI data
0xD9B5C 52 1 52 SSE Manager
0x0 0 3413 2072576 Pool Summary
0x0 0 28 2971680 Pool Summary (Free Blocks)
0x0 40 3441 137640 Pool Summary(All Block Headers)
0x0 0 3413 2072576 Memory Summary
0x0 0 28 2971680 Memory Summary (Free Blocks)
Related Commands
Command
|
Description
|
exception memory ignore overflow
|
Configures the Cisco IOS software to correct corruptions in memory block headers and allow a router to continue its normal operation.
|
show processes memory
|
Displays memory used per process.
|
show memory allocating-process
To display statistics on allocated memory with corresponding allocating processes, use the show memory allocating-process command in user EXEC or privileged EXEC mode.
show memory allocating-process [totals]
Syntax Description
totals
|
(Optional) Displays allocating memory totals.
|
Command Modes
User EXEC
Privileged EXEC
Command History
Release
|
Modification
|
12.0
|
This command was introduced.
|
Usage Guidelines
The show memory allocating-process command displays information about memory available after the system image decompresses and loads.
Examples
The following is sample output from the show memory allocating-process command:
Router# show memory allocating-process
Head Total(b) Used(b) Free(b) Lowest(b) Largest(b)
Processor 44E03560 186632636 26131896