cpu (resource-manager)
Syntax
cpu {
disable-management;
match {
threshold threshold;
}
then {
alarm;
drop-cps;
drop-flows;
log;
max-session-setup-rate max-session-setup-rate;
}
}
Hierarchy Level
[edit security resource-manager]
Description
Configure resource manager cpu options to control cpu load. Resource manager takes protective action when the traffic load reaches the threshold.
Options
disable-management-Disables the cpu management. By default, cpu management is on.match-Configure the threshold limit to letthresholdresource-managertake actions. The range is 1 to 100 percent.drop-cps-This is default action when the CPU usage crosses the default or configured threshold. This configuration drops the packets which do not have an existing associated session.max-session-setup-rate-This throttles new session creation to the specified rate when the cpu threshold is exceeded.drop-flows-When you mark a session as a drop-flow, it bypasses the first path for each new packet, which matches the original drop session for next 4 seconds only. This configuration drops the packets that match thedrop-flows.log-This configuration logs messages when the resource threshold is exceeded and falls back under the threshold.alarm-This configuration sends an SNMP Trap when the CPU load exceeds the threshold.
Required Privilege Level
security—To view this in the configuration.
security-control—To add this to the configuration.
Release Information
Statement introduced in Junos OS Release 20.4R1.