advertisement
Alarm Management and Logging Correlation Commands logging correlator apply rule
logging correlator apply rule
To apply and activate a correlation rule and enter correlation apply rule configuration mode, use the logging
correlator apply rule command in Global Configuration modeXR Config mode. To deactivate a correlation rule, use the no form of this command.
logging correlator apply rule correlation-rule [all-of-router| context name| location node-id]
no logging correlator apply rule correlation-rule [all-of-router| context name| location node-id]
Syntax Description correlation-rule all-of-router
context name
location node-id
Name of the correlation rule to be applied.
(Optional) Applies the correlation rule to the entire router.
(Optional) Applies the correlation rule to the specified context. Unlimited number of contexts. The name string is limited to 32 characters.
(Optional) Applies the correlation rule to the specified node. The node-id argument is entered in the rack/slot/module notation. Unlimited number of locations.
Command Default No correlation rules are applied.
Command Modes Global Configuration modeXR Config mode
Command History
Release
Release 3.6.0
Release 3.6.0
Release 3.7.2
Release 5.0.0
Modification
This command was introduced.
This command was introduced.
This command was introduced.
This command was introduced.
Usage Guidelines The logging correlator apply rule command is used to either add or remove apply settings for a given rule.
These settings then determine which messages are correlated for the affected rules.
If the rule is applied to all-of-router, then correlation occurs for only those messages that match the configured cause values for the rule to be correlated, regardless of the context or location setting of that message.
If a rule is applied to a specific set of contexts or locations, then correlation occurs for only those messages that match both the configured cause values for the rule and at least one of those contexts or locations.
Cisco IOS XR System Monitoring Command Reference for the Cisco CRS Router, Release 4.2.x
17 OL-26517-02
Alarm Management and Logging Correlation Commands logging correlator apply rule
Task ID
Use the
show logging correlator rule, on page 56
command to show the current apply settings for a given rule.
Tip When a rule is applied (or if a rule set that contains this rule is applied), then the rule definition cannot be modified through the configuration until the rule or rule set is once again unapplied.
Tip It is possible to configure apply settings at the same time for both a rule and zero or more rule sets that contain the rule. In this case, the apply settings for the rule are the union of all the apply configurations.
The logging correlator apply rule command allows you to enter submode (config-corr-apply-rule) to apply and activate rules:
RP/0/0RP0RSP0/CPU0:router:hostname(config)# logging correlator apply rule stateful1
RP/0/0RP0RSP0/CPU0:router:hostname(config-corr-apply-rule)#?
all-of-router Apply the rule to all of the router clear clear commit
Clear the uncommitted configuration
Clear the configuration
Commit the configuration changes to running context describe do exit
Apply rule to specified context
Describe a command without taking real actions
Run an exec command
Exit from this submode location no pwd
Apply rule to specified location
Negate a command or set its defaults
Commands used to reach current submode root show
Exit to the global configurationXR Config mode
Show contents of configuration
RP/0/0RP0RSP0/CPU0:router:hostname(config-corr-apply-rule)#
While in the submode, you can negate keyword options:
RP/0/0RP0RSP0/CPU0:router:hostname(config-corr-apply-rule)# no all-of-router
RP/0/0RP0RSP0/CPU0:router:hostname(config-corr-apply-rule)# no context
RP/0/0RP0RSP0/CPU0:router:hostname(config-corr-apply-rule)# no location
Task ID logging
Operations read, write
Examples This example shows how to apply a predefined correlator rule to a location:
RP/0/0RP0RSP0/CPU0:router:hostname(config)# logging correlator apply rule rule1
RP/0/0RP0RSP0/CPU0:router:hostname(config-corr-apply-rule)# location 0/2/CPU0
Related Commands
Command
logging correlator rule, on page 25
show logging correlator rule, on page 56
Description
Defines the rules for correlating messages.
Displays one or more predefined logging correlator rules.
18
Cisco IOS XR System Monitoring Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26517-02
Alarm Management and Logging Correlation Commands logging correlator apply rule
Command
show logging correlator ruleset, on page 59
Description
Displays one or more predefined logging correlator rule sets.
OL-26517-02
Cisco IOS XR System Monitoring Command Reference for the Cisco CRS Router, Release 4.2.x
19
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 1 Cisco IOS XR System Monitoring Command Reference for the Cisco CRS Router, Release 4.2.x
- 3 Contents
- 11 Preface
- 11 Changes to This Document
- 12 Obtaining Documentation and Submitting a Service Request
- 13 Alarm Management and Logging Correlation Commands
- 15 alarm
- 17 all-alarms
- 18 all-of-router
- 19 clear logging correlator delete
- 21 clear logging events delete
- 25 clear logging events reset
- 27 context-correlation
- 29 logging correlator apply rule
- 32 logging correlator apply ruleset
- 35 logging correlator buffer-size
- 37 logging correlator rule
- 40 logging correlator ruleset
- 42 logging events buffer-size
- 44 logging events display-location
- 47 logging events level
- 49 logging events threshold
- 51 logging suppress apply rule
- 53 logging suppress rule
- 55 nonrootcause
- 57 reissue-nonbistate
- 59 reparent
- 61 rootcause
- 63 show logging correlator buffer
- 66 show logging correlator info
- 68 show logging correlator rule
- 71 show logging correlator ruleset
- 74 show logging events buffer
- 79 show logging events info
- 81 show logging suppress rule
- 83 show snmp correlator buffer
- 85 show snmp correlator info
- 86 show snmp correlator rule
- 87 show snmp correlator ruleset
- 88 source
- 90 timeout
- 92 timeout-rootcause
- 95 Embedded Event Manager Commands
- 97 event manager directory user
- 99 event manager environment
- 101 event manager policy
- 105 event manager refresh-time
- 107 event manager run
- 109 event manager scheduler suspend
- 111 show event manager directory user
- 113 show event manager environment
- 115 show event manager metric hardware
- 117 show event manager metric process
- 121 show event manager policy available
- 123 show event manager policy registered
- 127 show event manager refresh-time
- 129 show event manager statistics-table
- 132 show event manager scheduler thread
- 135 IP Service Level Agreement Commands
- 139 access-list
- 141 action (IP SLA)
- 144 ageout
- 146 buckets (history)
- 148 buckets (statistics hourly)
- 150 buckets (statistics interval)
- 152 control disable
- 154 datasize request
- 157 destination address (IP SLA)
- 159 destination port
- 161 distribution count
- 163 distribution interval
- 165 exp
- 167 filter
- 169 force explicit-null
- 171 frequency (IP SLA)
- 173 history
- 175 interval
- 177 ipsla
- 179 key-chain
- 181 life
- 183 lives
- 185 low-memory
- 187 lsp selector ipv4
- 189 lsr-path
- 191 maximum hops
- 193 maximum paths (IP SLA)
- 195 monitor
- 197 mpls discovery vpn
- 199 mpls lsp-monitor
- 201 operation
- 203 output interface
- 205 output nexthop
- 207 packet count
- 209 packet interval
- 211 path discover
- 212 path discover echo
- 214 path discover path
- 216 path discover scan
- 218 path discover session
- 220 react
- 223 react lpd
- 225 reaction monitor
- 227 reaction operation
- 229 reaction trigger
- 231 responder
- 233 recurring
- 235 reply dscp
- 237 reply mode
- 239 responder twamp
- 240 samples
- 242 scan delete-factor
- 244 scan interval
- 246 schedule monitor
- 248 schedule operation
- 250 schedule period
- 252 server twamp
- 253 show ipsla application
- 256 show ipsla history
- 259 show ipsla mpls discovery vpn
- 261 show ipsla mpls lsp-monitor lpd
- 263 show ipsla mpls lsp-monitor scan-queue
- 265 show ipsla mpls lsp-monitor summary
- 268 show ipsla responder statistics
- 270 show ipsla statistics
- 274 show ipsla statistics aggregated
- 284 show ipsla statistics enhanced aggregated
- 288 show ipsla twamp connection
- 289 show ipsla twamp session
- 290 show ipsla twamp standards
- 291 source address
- 293 source port
- 295 start-time
- 298 statistics
- 301 tag (IP SLA)
- 303 target ipv4
- 305 target pseudowire
- 307 target traffic-eng
- 309 threshold
- 311 threshold type average
- 313 threshold type consecutive
- 315 threshold type immediate
- 317 threshold type xofy
- 319 timeout (IP SLA)
- 321 tos
- 323 ttl
- 325 type icmp echo
- 327 type icmp path-echo
- 329 type icmp path-jitter
- 331 type mpls lsp ping
- 333 type mpls lsp trace
- 335 type udp echo
- 337 type udp jitter
- 339 type udp ipv4 address
- 341 verify-data
- 343 vrf (IP SLA)
- 345 vrf (IP SLA MPLS LSP monitor)
- 347 Logging Services Commands
- 349 archive-length
- 350 archive-size
- 351 clear logging
- 353 device
- 355 file-size
- 356 frequency (logging)
- 357 logging
- 360 logging archive
- 362 logging buffered
- 364 logging console
- 366 logging console disable
- 367 logging events link-status
- 369 logging events link-status (interface)
- 372 logging facility
- 375 logging history
- 377 logging history size
- 379 logging hostnameprefix
- 381 logging ipv4/ipv6
- 384 logging localfilesize
- 386 logging monitor
- 388 logging source-interface
- 390 logging suppress deprecated
- 391 logging suppress duplicates
- 393 logging trap
- 395 service timestamps
- 397 severity
- 399 show logging
- 405 show logging history
- 407 terminal monitor
- 409 Onboard Failure Logging Commands
- 411 show logging onboard
- 415 clear logging onboard
- 417 hw-module logging onboard disable
- 421 Performance Management Commands
- 423 monitor controller fabric
- 425 monitor controller sonet
- 427 monitor interface
- 433 performance-mgmt apply monitor
- 436 performance-mgmt apply statistics
- 440 performance-mgmt apply thresholds
- 443 performance-mgmt regular-expression
- 444 performance-mgmt resources dump local
- 445 performance-mgmt resources memory
- 447 performance-mgmt resources tftp-server
- 449 performance-mgmt statistics
- 452 performance-mgmt thresholds
- 464 show performance-mgmt bgp
- 466 show performance-mgmt interface
- 470 show performance-mgmt mpls
- 472 show performance-mgmt node
- 474 show performance-mgmt ospf
- 476 show running performance-mgmt
- 479 Statistics Service Commands
- 480 clear counters
- 482 load-interval
- 485 Diagnostics Commands
- 486 diagnostic load
- 488 diagnostic monitor
- 490 diagnostic monitor interval
- 492 diagnostic monitor syslog
- 493 diagnostic monitor threshold
- 495 diagnostic ondemand action-on-failure
- 497 diagnostic ondemand iterations
- 498 diagnostic schedule
- 501 diagnostic start
- 504 diagnostic stop
- 506 diagnostic test-parameters
- 508 diagnostic unload
- 510 ping (administration EXEC)
- 515 show diag
- 525 show diagnostic bootup level
- 527 show diagnostic content
- 532 show diagnostic ondemand settings
- 533 show diagnostic result
- 541 show diagnostic schedule
- 543 show diagnostic status
- 545 show run diagnostic monitor
- 547 INDEX