threshold-monitor Cpu

Configures monitoring of CPU usage of the system and alerts the user when configured thresholds are exceeded.

Syntax

threshold-monitor Cpu { [ actions [ all | loginfo | none | raslog | snmp ] ] | limit value-in-percentage | poll polling-interval | retry retry-interval }
no threshold-monitor cpu

Parameters

actions
Specifies the action to be taken when a threshold is exceeded. The values supported are all, loginfo, none, raslog, and snmp where snmp and all are newly added. Default "action" is changed to "all".
all
RASLOG and SNMP trap will be sent when the threshold is exceeded.
loginfo
Additional diagnostics data will be collected along with RASLOG when the threshold is exceeded.
none
No action will be taken when the threshold is exceeded.
raslog
Only RASLOG will be sent when the threshold is exceeded.
snmp
SNMP traps will be sent when the threshold is exceeded.
limit value-in-percentage
Specifies the baseline CPU usage limit as a percentage (%) of available resources that will trigger the configured action. The range is 0%-95%. The default value is 50%.
poll polling-interval
Specifies the polling interval in seconds after which a sample will be taken. The range is 10-3600 seconds. The default interval is 120 seconds.
retry retry-interval
Specifies the number polling retries that will be attempted before desired action is taken. The range is 1-100. The default retries is 3.

Modes

Global configuration mode

Usage Guidelines

The default action is all. Prior to SLXOS version 20.4.1, the default value was none.

Examples

SLX(config)# threshold-monitor Cpu ?
Possible completions:
  actions   Action to be taken when usage exceeds limit
  limit     PERCENT:0-95 Percent threshold usage for component:CPU
  poll      NUMBER:10-3600 Polling interval
  retry     NUMBER:1-100 Number of retries
SLX(config)# 
            

This example details on threshold-monitor cpu actions.

SLX(config)# threshold-monitor cpu actions ?
Possible completions:
  [none]
  all       RASLOG and SNMP trap will be sent
  loginfo   Diagnostic data collection along with RASLOG
  none      No action will be taken
  raslog    RASLOG will be sent
  snmp      SNMP trap will be sent
SLX(config)#