Command Default
Statistics collection is disabled.
Command Modes
Global configuration
Command History
ModificationRelease
This command was introduced.Release 2.0
The enable keyword was replaced by the apply keyword. In previous releases,
this command was referred to as performance-mgmt enable statistics .
The disable keyword was deprecated.
The ospf v2protocol and ospf v3protocol keywords were introduced to
support the enabling of statistics collection templates for the OSPF entity.
The location keyword was added.
The global keyword was deprecated and replaced by the location all keywords.
Release 3.2
Removed support for MPLS interfaces.Release 3.3.0
The interface basic-counters keyword was added to support the enabling of
statistics collection template for the basic counters.
Release 4.0.1
Usage Guidelines
Use the performance-mgmt apply statistics command to apply a statistics template and enable statistics
collection. Only one template for each entity can be enabled at a time. After samples are taken, the data is
sent to a directory on an external TFTP server, and a new collection cycle starts. The directory where data is
copied to is configured using the performance-mgmt resources tftp-server, on page 384 command. The statistics
data in the directory contains the type of entity, parameters, instances, and samples. They are in binary format
and must be viewed using a customer-supplied tool, or they can be queried as they are being collected using
XML.
Use the performance-mgmt apply statistics command to collect data for all the instances on a continuous
basis. To analyze a particular instance for a limited period of time, use the performance-mgmt apply monitor,
on page 371 command.
Use the no form of the command to disable statistics collection. Because only one performance management
statistics collection can be enabled for any given entity at any given time, you are not required to specify the
template name with the default keyword or template keyword and template-name argument when disabling
a performance management statistics collection.
For information about creating templates, see the performance-mgmt statistics, on page 386 command.
Each particular collection enabled requires a certain amount of resources. These resources are allocated
for as long as the collection is enabled.
Caution
Cisco IOS XR System Monitoring Command Reference for the Cisco XR 12000 Series Router, Release 4.1
OL-24735-01 375
Performance Management Commands
performance-mgmt apply statistics