performance-mgmt apply monitor
To apply a statistics template to gather a sampling-size set of samples for a particular instance, use the performance-mgmt apply monitor command in XR Config mode. To stop monitoring statistics, use the no form of this command.
performance-mgmt apply monitor entity {ip-address | type | interface-path-id | node-id | node-id process-id | process-name} {template-name | default}
no performance-mgmt apply monitor
Syntax Description
entity |
Specifies an entity for which you want to apply the statistics template:
|
||
ip-address |
IP or neighbor address. Used with the bgp or ldp keyword. |
||
type |
Interface type. For more information, use the question mark (? ) online help function. |
||
interface-path-id |
Physical interface or virtual interface.
For more information about the syntax for the router, use the question mark (? ) online help function. |
||
node-id |
Designated node. Used with the node cpu or node memory keyword. The node-id argument is entered in the rack/slot/module notation. |
||
node-id process-id |
Designated node and process ID. Used with the node process keyword. The node-id argument is entered in the rack/slot/module notation. |
||
process-name |
Process name of the OSPF instance. Used with the ospfv2protocol and ospfv3protocol keywords. |
||
template-name |
Name of a predefined template used for statistics collection. A template name can be any combination of alphanumeric characters, and may include the underscore character (_). Use the show running performance-mgmt command to display a list of available templates. |
||
default |
Applies the default template. |
Command Default
Monitoring is disabled.
Command Modes
XR Config modeCommand History
Release |
Modification |
---|---|
Release 6.0 |
This command was introduced. |
Usage Guidelines
Use the performance-mgmt apply monitor command to apply a statistics template and enable monitoring. This command captures one cycle of a sample to analyze an instance of an entity. Rather than collect statistics for all instances, which is the purpose of the performance-mgmt apply statistics command, the performance-mgmt apply monitor command captures statistics for a specific entity instance for one sampling period.
The type and interface-path-id arguments are only to be used with the interface data-rates or interface generic-counter keyword.
For information about creating templates, see the performance-mgmt apply statistics command.
Task ID
Task ID |
Operations |
---|---|
monitor |
read, write, execute |
Examples
This example shows how to enable the BGP protocol monitoring using the criterion set in the default template:
RP/0/RP0/CPU0:router(config)#performance-mgmt apply monitor bgp 10.0.0.0 default
This example shows how to enable monitoring for data rates according to the criterion set in the default template:
RP/0/RP0/CPU0:router(config)#performance-mgmt apply monitor interface data-rates hundredGigE 0/2/0/0 default
This example shows how to enable memory monitoring based on the criterion set in the default template:
RP/0/RP0/CPU0:router(config)#performance-mgmt apply monitor node memory location 0/1/cpu0 default
This example shows how to enable monitoring for counters according to the criterion set in the default template:
RP/0/RP0/CPU0:router(config)#performance-mgmt apply monitor interface basic-counters hundredGigE 0/2/0/0 default