Configuring SNMP Threshold

You can configure the SNMP Threshold using the below command:

Reference

Command

[no] snmp-server trap <cpu-util/mem-util> threshold <%>

Description

SNMP trap threshold configuration

Parameters

SNMP threshold

Mode

CONFIG

Example


pbnoscli# configure terminal 
pbnoscli(config)# snmp-server trap 
  cpu-util              CPU utilization
  disk-util             Disk utilization
  fan-util              FAN utilization
  mem-util              Memory utilization
  modify                Modify
  psu-util              PSU utilization
pbnoscli(config)# snmp-server trap disk-util 
  threshold             Threshold limit
pbnoscli(config)# snmp-server trap disk-util threshold 
  <diskutil>            Percentage
pbnoscli(config)# snmp-server trap disk-util threshold 80 
pbnoscli(config)# snmp-server trap cpu-util threshold 82
pbnoscli(config)# 

You can verify the configuration by using the command(s) below:

pbnoscli# show snmp-trap thresholds 
======================================
System-Object Threshold
======================================
CPU utilization          : 82
Memory utilization       : 80
Disk utilization         : 80
pbnoscli# 

pbnoscli# show running-config 
configure terminal
!
interface mgmt
ip address 10.4.4.52/24 gateway 10.4.4.1
!
snmp-server trap modify 2 server-id 1 10.2.2.11 port 29 community public
snmp-server community public
snmp-server trap cpu-util threshold 82
snmp-server trap disk-util threshold 80
snmp-server trap fan-util disable
snmp-server trap psu-util disable
!
pbnoscli#