Guest

Cisco IOS Software Releases 12.0 S

Clear Context Command

  • Viewing Options

  • PDF (134.0 KB)
  • Feedback
Clear Context Command

Table Of Contents

Clear Context Command

Feature Overview

Information Displayed by the Show Context Commands

Benefits

Restrictions

Related Documents

Supported Platforms

Supported Standards, MIBs, and RFCs

Prerequisites

Configuration Tasks

Command Reference

clear context


Clear Context Command


This document describes the clear context command introduced with Cisco IOS Release 12.0(17)S.

Feature Overview

Benefits

Restrictions

Related Documents

Supported Platforms

Command Reference

Feature Overview

The clear context command provides the ability to clear the information displayed by the show context commands on the Cisco 12000 series Internet Router (formerly known as the GSR).

The affected "show" commands are:

show context slot <num>

show context all

show context summary.


Note The clear context command does not clear output for the show context command when entered with no arguments.


Information Displayed by the Show Context Commands

The show context commands display the following information (this information is cleared with the clear context command):

Reason for the system reboot

Stack trace

Software version

The signal number, code, and router uptime information

All the register contents at the time of the crash

Benefits

The clear context command allows technicians and customers to clear information displayed by the show context commands. After the data is cleared, only information from any new crashes will appear. This allows users to display only the most recent and relevant information.

Restrictions

The clear context command does not clear the show context output when show context is entered with no arguments.

Related Documents

Cisco IOS Release 12.0 Configuration Fundamentals Command Reference:
The chapter "Troubleshooting Commands" in "Part 3: System Management Commands" contains information on the various show context commands.

Supported Platforms

Cisco IOS 12.0S and 12.0ST release trains of the 12000 series Internet Router (formerly known as the GSR).

Supported Standards, MIBs, and RFCs

This section does not apply to the clear context command.

Prerequisites

This section does not apply to the clear context command.

Configuration Tasks

This section does not apply to the clear context command.

Command Reference

This section documents the new clear context command. All other commands used with this feature are documented in the Cisco IOS Release 12.0 command reference publications.

clear context

To clear the data displayed by the show context commands, use the clear context EXEC command.

clear context [all | slot num]

Syntax Description

all

clear the context data for all slots

slot <num>

clear the context data for a specified slot


Defaults

No default behavior or values.

Command Modes

EXEC

Command History

Release
Modification

12.0(17)S

This command was introduced.


Usage Guidelines

The clear context command provides the ability to clear the information available in show context commands on the Cisco 12000 series Internet Router (formerly known as the GSR).

The affected "show" commands are:

show context slot <num>

show context all

show context summary


Note The clear context command does not clear the show context output when show context is entered with no arguments.


Examples

In the following example, the clear context command is used to clear context information for slot 6:

bos2#sh context summary
CRASH INFO SUMMARY
  Slot 0 :0 crashes
  Slot 1 :0 crashes
  Slot 2 :0 crashes
  Slot 3 :0 crashes
  Slot 4 :0 crashes
  Slot 5 :0 crashes
  Slot 6 :1 crashes
    1 - crash at 16:27:54 PDT Tue Apr 24 2001
  Slot 7 :0 crashes
RESET INFO SUMMARY
  Slot 0 :0 resets
  Slot 1 :0 resets
  Slot 2 :0 resets
  Slot 3 :0 resets
  Slot 4 :0 resets
  Slot 5 :0 resets
  Slot 6 :0 resets
  Slot 7 :0 resets
bos2#show context slot 6
CRASH INFO:Slot 6, Index 1, Crash at 16:27:54 PDT Tue Apr 24 2001

VERSION:
GS Software (GLC1-LC-M), Experimental Version 12.0(20010116:025631) [jbos-conn_isp 204]
Compiled Tue 24-Apr-01 13:42 by jbos
Card Type:4 port ATM Over SONET OC12c/STM-4c, S/N ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
System exception:sig=23, code=0x24, context=0x40FD65D4
System restarted by a Software forced crash
STACK TRACE:
-Traceback= 400B9EC8 40502574 4004D56C 40058EBC 4009D71C 4009D708 
CONTEXT:
$0 :00000000, AT :40FD0000, v0 :00000032, v1 :40FD6350
a0 :40058750, a1 :41391840, a2 :00000000, a3 :00000000
t0 :42DDCE00, t1 :8000D510, t2 :34008100, t3 :FFFF00FF
t4 :400BD9D8, t5 :00040000, t6 :00000000, t7 :4149AD98
s0 :0000003C, s1 :00000036, s2 :40FD2C70, s3 :42DDCBA0
s4 :00000000, s5 :00000001, s6 :40FBD880, s7 :00000000
t8 :000083B6, t9 :00000000, k0 :414F66A0, k1 :400BF904
gp :40EA6C40, sp :42DDCB88, s8 :40FC3960, ra :40502574
EPC :0x400B9EC8, SREG :0x3400BF03, Cause :0x00000024
ErrorEPC :0x400AD6D8
bos2#clear context slot 6
bos2#show context slot 6

bos2#show context summary
CRASH INFO SUMMARY
  Slot 0 :0 crashes
  Slot 1 :0 crashes
  Slot 2 :0 crashes
  Slot 3 :0 crashes
  Slot 4 :0 crashes
  Slot 5 :0 crashes
  Slot 6 :0 crashes
  Slot 7 :0 crashes
RESET INFO SUMMARY
  Slot 0 :0 resets
  Slot 1 :0 resets
  Slot 2 :0 resets
  Slot 3 :0 resets
  Slot 4 :0 resets
  Slot 5 :0 resets
  Slot 6 :0 resets
  Slot 7 :0 resets

Related Commands

Command
Description

show context slot <num>

Displays information for a particular line card.cr

show context all

Displays all crashes for all the slots. When optionally used with the slot keyword, displays crash information for the specified slot.

show context summary

Displays a summary of all the crashes recorded.n