Logging to Local Nonvolatile Storage (ATA Disk)

Similar documents
Logging to Local Nonvolatile Storage (ATA Disk)

Configuring an Intermediate IP Multicast Helper Between Broadcast-Only Networks

Contextual Configuration Diff Utility

BGP Enforce the First Autonomous System Path

IS-IS Incremental SPF

OSPF Incremental SPF

DHCP Lease Limit per ATM/RBE Unnumbered Interface

IP SLAs Random Scheduler

PPPoE Session Recovery After Reload

Suppress BGP Advertisement for Inactive Routes

Per IP Subscriber DHCP Triggered RADIUS Accounting

DHCP Option 82 Support for Routed Bridge Encapsulation

Generic Routing Encapsulation Tunnel IP Source and Destination VRF Membership

Installing IEC Rack Mounting Brackets on the ONS SDH Shelf Assembly

Modified LNS Dead-Cache Handling

IMA Dynamic Bandwidth

Configuring Multiple Basic Service Set Identifiers and Microsoft WPS IE SSIDL

SSG Service Profile Caching

ISSU and SSO DHCP High Availability Features

MPLS MTU Command Changes

VPDN Group Session Limiting

Cisco Unity Express Voic System User s Guide

Exclusive Configuration Change Access and Access Session Locking

ATM VP Average Traffic Rate

Frame Relay Conditional Debug Support

QoS Child Service Policy for Priority Class

Cisco 806, Cisco 820 Series, Cisco 830 Series, SOHO 70 Series and SOHO 90 Series Routers ROM Monitor Download Procedures

RADIUS NAS-IP-Address Attribute Configurability

OSPF RFC 3623 Graceful Restart Helper Mode

VPDN LNS Address Checking

PPP/MLP MRRU Negotiation Configuration

Configuration Replace and Configuration Rollback

Cisco Software Licensing Information for Cisco Unified Communications 500 Series for Small Business

Cisco Smart Business Communications System Teleworker Set Up

DHCP Relay MPLS VPN Support

PPPoE Client DDR Idle Timer

Configuring Token Ring LAN Emulation for Multiprotocol over ATM

Route Processor Redundancy Plus (RPR+)

Maintenance Checklists for Microsoft Exchange on a Cisco Unity System

BECN and FECN Marking for Frame Relay over MPLS

Maintenance Checklists for Cisco Unity VPIM Networking (with Microsoft Exchange)

Configuring Route Maps to Control the Distribution of MPLS Labels Between Routers in an MPLS VPN

DHCP ODAP Server Support

Protocol-Independent MAC ACL Filtering on the Cisco Series Internet Router

Cisco Aironet Directional Antenna (AIR-ANT-SE-WiFi-D)

Cisco Voice Applications OID MIB

Chunk Validation During Scheduler Heapcheck

Installing the Cisco ONS Deep Door Kit

Cisco Report Server Readme

Extended NAS-Port-Type and NAS-Port Support

RADIUS Tunnel Preference for Load Balancing and Fail-Over

Wireless LAN Error Messages

Using Microsoft Outlook to Schedule and Join Cisco Unified MeetingPlace Express Meetings

Cisco Unified MeetingPlace for Microsoft Office Communicator

LAN Emulation Overview

Configuring the Cisco IOS DHCP Relay Agent

Maintenance Checklists for Active Directory on a Cisco Unity System with Exchange as the Message Store

Low Latency Queueing with Priority Percentage Support

Packet Classification Using the Frame Relay DLCI Number

Connecting Cisco WLAN Controller Enhanced Network Modules to the Network

RADIUS Logical Line ID

Release Notes for Cisco ONS MA Release 9.01

Application Firewall Instant Message Traffic Enforcement

RAID Controller Firmware Upgrade Instructions for the Cisco WAE-7341, 7371, and 674

PPPoE Session Limits per NAS Port

Troubleshooting ISA with Session Monitoring and Distributed Conditional Debugging

Autosense of MUX/SNAP Encapsulation and PPPoA/PPPoE on ATM PVCs

This feature was introduced. This feature was integrated into Cisco IOS Release 12.2(27)SBA.

White Paper: Using Microsoft Windows Server 2003 with Cisco Unity 4.0(4)

Cisco Aironet 1500 Series Access Point Large Pole Mounting Kit Instructions

Using Application Level Gateways with NAT

MPLS VPN: VRF Selection Based on Source IP Address

IP Event Dampening. Feature History for the IP Event Dampening feature

Cisco Unified Mobile Communicator 3.0 User Portal Guide

Onboard Failure Logging

Release Notes for Cisco ONS SDH Release 9.01

Configuring Virtual Interfaces

MPLS VPN OSPF and Sham-Link Support

Protected URL Database

Connecting Cisco DSU/CSU High-Speed WAN Interface Cards

Wireless LAN Overview

Release Notes for Cisco Security Agent for Cisco Unified MeetingPlace Release 6.0(7)

PPPoE Agent Remote-ID and DSL Line Characteristics Enhancement

Configuring MPLS Multi-VRF (VRF-lite)

Configuring ISA Accounting

Release Notes for Cisco Aironet Client Utility and Driver, Version 3.0 for Mac OS

Installation Notes for Catalyst 3750-E and Catalyst 3560-E Switch Fan Modules

Release Notes for Catalyst 6500 Series and Cisco 7600 Series Internet Router CEF720 Module ROMMON Software

Cisco Video Surveillance Virtual Matrix Client Configuration Guide

IP SLAs Proactive Threshold Monitoring

Release Notes for Cisco Spectrum Expert

RSVP Message Authentication

Installing ONS SDH FMEC-E3/DS3 Cards

Cisco Unified Web and Interaction Manager Supervision Console User s Guide

PPPoE Agent Remote-ID and DSL Line Characteristics Enhancement

Site Preparation and Network Communications Requirements

MIB Quick Reference for the Cisco ONS Series

7825-I4, 7828-I4 Hard Disk Firmware Update

Behavioral Change for Buffer Recarving

PPPoE Service Selection

Transcription:

Logging to Local Nonvolatile Storage (ATA Disk) First Published: August 26, 2003 Last Updated: June 28, 2007 The Logging to Local Nonvolatile Storage (ATA Disk) feature enables system logging messages to be saved on an advanced technology attachment (ATA) flash disk. Messages saved on an ATA drive persist after a router is rebooted. Finding Feature Information in This Module Your Cisco IOS software release may not support all of the features documented in this module. To reach links to specific feature documentation in this module and to see a list of the releases in which each feature is supported, use the Feature Information for Logging to Local Nonvolatile Storage (ATA Disk) section on page 9. Finding Support Information for Platforms and Cisco IOS and Catalyst OS Software Images Use Cisco Feature Navigator to find information about platform support and Cisco IOS and Catalyst OS software image support. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required. Contents Restrictions for Logging to Local Nonvolatile Storage (ATA Disk), page 2 Information About Logging to Local Nonvolatile Storage (ATA Disk), page 2 How to Configure Logging to Local Nonvolatile Storage (ATA Disk), page 3 Configuration Examples for Logging to Local Nonvolatile Storage (ATA Disk), page 4 Additional References, page 5 Command Reference, page 6 Feature Information for Logging to Local Nonvolatile Storage (ATA Disk), page 9 Americas Headquarters: Cisco Systems, Inc., 170 West Tasman Drive, San Jose, CA 95134-1706 USA 2003, 2006, 2007 Cisco Systems, Inc. All rights reserved.

Prerequisites for Logging to Local Nonvolatile Storage (ATA Disk) Logging to Local Nonvolatile Storage (ATA Disk) Prerequisites for Logging to Local Nonvolatile Storage (ATA Disk) The logging buffered Command Must Be Enabled Before the Logging to Local Nonvolatile Storage (ATA Disk) feature can be enabled with the logging persistent command, you must enable the logging of messages to an internal buffer with the logging buffered command. For additional information, refer to the Writing Logging Messages to an ATA Disk section on page 3, and to the Related Documents section on page 5. Restrictions for Logging to Local Nonvolatile Storage (ATA Disk) Available ATA Disk Space Constrains the Size and Number of Stored Log Files The amount of ATA disk space allocated to system logging messages constrains the number of logging files that can be stored. When the allocation threshold is passed, the oldest log file in the directory is deleted to make room for new system logging messages. To permanently store system logging messages, you must archive them to an external device. For more information, refer to the Copying Logging Messages to an External Disk section on page 4. Information About Logging to Local Nonvolatile Storage (ATA Disk) The Logging to Local Nonvolatile Storage (ATA Disk) feature adds a router s ATA flash disk as a storage destination for logging messages. When using this feature, be sure to understand the following concepts: System Logging Messages, page 2 ATA Flash Disks, page 2 System Logging Messages System logging messages include error and debug messages generated by application programming interfaces (APIs) on the router. Typically, logging messages are stored in a router s memory buffer; when the buffer is full, older messages are overwritten by new messages. All logging messages are erased from the memory buffer when the router reboots. ATA Flash Disks ATA flash disks are PC cards included with some Cisco routers, which are used to provide nonvolatile data storage. The greater the capacity of the ATA flash disk, the more data, such as logging messages, it can hold. Logging messages written to an ATA flash disk persist when the router reboots. 2

Logging to Local Nonvolatile Storage (ATA Disk) How to Configure Logging to Local Nonvolatile Storage (ATA Disk) How to Configure Logging to Local Nonvolatile Storage (ATA Disk) This section contains the following procedures: Writing Logging Messages to an ATA Disk, page 3 (required) Copying Logging Messages to an External Disk, page 4 (optional) Writing Logging Messages to an ATA Disk SUMMARY STEPS DETAILED STEPS Step 1 Step 2 Perform this task to enable the Logging to Local Nonvolatile Storage (ATA Disk) feature and write logging messages to an ATA flash disk: 1. enable Command or Action enable Router> enable configure terminal 2. configure terminal 3. logging buffered [buffer-size severity-level] 4. logging persistent [url {disk0:/directory disk1:/directory}] [size filesystem-size] [filesize logging-file-size] Purpose Enables privileged EXEC mode. Enter your password if prompted. Enables global configuration mode. Router# configure terminal 3

Configuration Examples for Logging to Local Nonvolatile Storage (ATA Disk) Logging to Local Nonvolatile Storage (ATA Disk) Step 3 Command or Action logging buffered [buffer-size severity-level] Router(config)# logging buffered Step 4 logging persistent [url {disk0:/directory disk1:/directory}] [size filesystem-size] [filesize logging-file-size] Router(config)# logging persistent url disk0:/syslog size 134217728 filesize 16384 Purpose Enable system message logging to a local buffer and limits messages logged to the buffer based on severity. The optional buffer-size argument specified the size of the buffer from 4096 to 4,294,967,295 bytes. The default size varies by platform. The optional severity-level argument limits the logging of messages to the buffer to those no less severe than the specified level. Writes logging messages from the memory buffer to the specified directory on the router s ATA disk. Before logging messages are written to a file on the ATA disk, the Cisco IOS software checks to see if there is sufficient disk space. If not, the oldest file of logging messages (by timestamp) is deleted, and the current file saved. The filename format is log_month:day:year::time. For example: log_08:10:2003::07:42:14. Copying Logging Messages to an External Disk SUMMARY STEPS Perform this task to copy logging messages from the ATA flash disk to an external disk: DETAILED STEPS Step 1 Step 2 1. enable 2. copy Command or Action enable Router> enable copy Router# copy disk0:/syslog ftp://myuser/mypass@192.168.1.129/syslog Purpose Enables privileged EXEC mode. Enter your password if prompted. Copies the specified file or directory on the ATA flash disk via FTP to the specified URL. Configuration Examples for Logging to Local Nonvolatile Storage (ATA Disk) This section provides the following configuration examples: Writing Logging Messages to an ATA Disk: Example, page 5 4

Logging to Local Nonvolatile Storage (ATA Disk) Additional References Copying Logging Messages to an External Disk: Example, page 5 Writing Logging Messages to an ATA Disk: Example The following example shows how to write up to 134217728 bytes (128 MB) of logging messages to the syslog directory of disk 0, specifying a file size of 16384 bytes: Router(config)# logging buffered Router(config)# logging persistent url disk0:/syslog size 134217728 filesize 16384 Copying Logging Messages to an External Disk: Example The following example shows how to copy logging messages from the router s ATA flash disk to an external disk: Router# copy disk0:/syslog ftp://myuser/mypass@192.168.1.129/syslog Additional References The following sections provide references related to the Logging to Local Nonvolatile Storage (ATA Disk) feature. Related Documents Related Topic copy command logging buffered command Document Title Cisco IOS Configuration Fundamentals Command Reference, Release 12.4 Cisco IOS Network Management Command Reference, Release 12.4T Standards Standards No new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature. Title MIBs MIBs No new or modified MIBs are supported by this feature, and support for existing MIBs has not been modified by this feature. MIBs Link To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL: http://www.cisco.com/go/mibs 5

Command Reference Logging to Local Nonvolatile Storage (ATA Disk) RFCs RFCs No new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature. Title Technical Assistance Description The Cisco Support website provides extensive online resources, including documentation and tools for troubleshooting and resolving technical issues with Cisco products and technologies. To receive security and technical information about your products, you can subscribe to various services, such as the Product Alert Tool (accessed from Field Notices), the Cisco Technical Services Newsletter, and Really Simple Syndication (RSS) Feeds. Access to most tools on the Cisco Support website requires a Cisco.com user ID and password. Link http://www.cisco.com/techsupport Command Reference This section documents only commands that are new or modified. logging persistent 6

Logging to Local Nonvolatile Storage (ATA Disk) logging persistent logging persistent To enable the storage of logging messages on the router s advanced technology attachment (ATA) disk, use the logging persistent command in global configuration mode. To disable logging message storage on the ATA disk, use the no form of this command. logging persistent [url {disk0:/directory disk1:/directory}] [size filesystem-size] [filesize logging-file-size] no logging persistent Syntax Description url disk0:/directory disk1:/directory size filesystem-size (Optional) Any supported local Cisco IOS file system location. The default URL is disk0:/syslog. Directory on disk 0 where syslog messages are saved. Directory on disk 1 where syslog messages are saved. (Optional) Amount of disk space allocated to syslog messages in bytes. Minimum value is 16384. Maximum value is the total amount of available disk space. Default value is 10% of total disk space. filesize logging-file-size (Optional) Size of individual logging files in bytes. Minimum value is 8192. Maximum value is the total amount of available disk space. Default value is 262144. Command Default The logging messages are not stored in the router s ATA memory. Command Modes Global configuration (config) Command History Release 12.0(26)S 12.2(25)S 12.2(28)SB 12.2(33)SRB 12.4(15)T Modification This command was introduced. This command was integrated into Cisco IOS Release 12.2(25)S. This command was integrated into Cisco IOS Release 12.2(28)SB and implemented on the Cisco 10000 series router. This command was integrated into Cisco IOS Release 12.2(33)SRB. This command was integrated into Cisco IOS Release 12.4(15)T. Usage Guidelines The logging persistent command enables the storage of syslog data on the router s ATA Flash disk. Because the syslog data must be copied from the router s internal memory buffer, you must enable the logging buffered command prior to enabling the logging persistent command. 7

logging persistent Logging to Local Nonvolatile Storage (ATA Disk) Note Any filtering of syslog messages written to the router s internal memory buffer results in filtering of syslog messages written to the router s ATA Flash disk. Examples The following example shows how to write up to 134217728 bytes (128 MB) of logging messages to the syslog directory of disk 0, with a file size of 16384 bytes: Router(config)# logging buffered Router(config)# logging persistent url disk0:/syslog size 134217728 filesize 16384 Related Commands Command Description logging buffered Saves syslog messages in router memory. 8

Logging to Local Nonvolatile Storage (ATA Disk) Feature Information for Logging to Local Nonvolatile Storage (ATA Disk) Feature Information for Logging to Local Nonvolatile Storage (ATA Disk) Table 1 lists the release history for this feature. Not all commands may be available in your Cisco IOS software release. For release information about a specific command, see the command reference documentation. Use Cisco Feature Navigator to find information about platform support and software image support. Cisco Feature Navigator enables you to determine which Cisco IOS and Catalyst OS software images support a specific software release, feature set, or platform. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required. Note Table 1 lists only the Cisco IOS software release that introduced support for a given feature in a given Cisco IOS software release train. Unless noted otherwise, subsequent releases of that Cisco IOS software release train also support that feature. Table 1 Feature Information for Logging to Local Nonvolatile Storage (ATA Disk) Feature Name Releases Feature Information Logging to Local Nonvolatile Storage (ATA Disk) 12.0(26)S 12.2(25)S 12.2(28)SB 12.2(33)SRB 12.4(15)T The Logging to Local Nonvolatile Storage (ATA Disk) feature enables system logging messages to be saved on an advanced technology attachment (ATA) flash disk. Messages saved on an ATA drive persist after a router is rebooted. This feature was introduced in Cisco IOS Release 12.0(26)S. This feature was integrated into Cisco IOS Release 12.2(25)S. This feature was integrated into Cisco IOS Release 12.2(28)SB and implemented on the Cisco 10000 series router. This feature was integrated into Cisco IOS Release 12.2(33)SRB. This feature was integrated into Cisco IOS Release 12.4(15)T and renamed from SYSLOG Writing to Flash to Logging to Local Nonvolatile Storage (ATA Disk). 9

Feature Information for Logging to Local Nonvolatile Storage (ATA Disk) Logging to Local Nonvolatile Storage (ATA Disk) CCVP, the Cisco logo, and Welcome to the Human Network are trademarks of Cisco Systems, Inc.; Changing the Way We Work, Live, Play, and Learn is a service mark of Cisco Systems, Inc.; and Access Registrar, Aironet, Catalyst, CCDA, CCDP, CCIE, CCIP, CCNA, CCNP, CCSP, Cisco, the Cisco Certified Internetwork Expert logo, Cisco IOS, Cisco Press, Cisco Systems, Cisco Systems Capital, the Cisco Systems logo, Cisco Unity, Enterprise/Solver, EtherChannel, EtherFast, EtherSwitch, Fast Step, Follow Me Browsing, FormShare, GigaDrive, HomeLink, Internet Quotient, IOS, iphone, IP/TV, iq Expertise, the iq logo, iq Net Readiness Scorecard, iquick Study, LightStream, Linksys, MeetingPlace, MGX, Networkers, Networking Academy, Network Registrar, PIX, ProConnect, ScriptShare, SMARTnet, StackWise, The Fastest Way to Increase Your Internet Quotient, and TransPath are registered trademarks of Cisco Systems, Inc. and/or its affiliates in the United States and certain other countries. All other trademarks mentioned in this document or Website are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (0711R) Any Internet Protocol (IP) addresses used in this document are not intended to be actual addresses. Any examples, command display output, and figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses in illustrative content is unintentional and coincidental. 2003, 2006, 2007 Cisco Systems, Inc. All rights reserved. 10