1. Create a UPM profile for the log message. The purpose of this is to set the action for the SNMP trap to be sent
X450G2-24t-10G4.1 # create upm profile detect-sflow-change
Start typing the profile and end with a . as the first and the only character on a line.
Use - edit upm profile <name> - for block mode capability
create snmp trap severity notice event sFlow "Max cpu limit exceeded"
In the above block of text, the command "create upm profile detect-sflow-change" is entered at the prompt. The resulting text from that command is below. The "create snmp trap..." command is the action that's taken when the UPM profile is triggered by the log message.
2. Create a separate log filter for the event.
* X450G2-24t-10G4.2 # create log filter detectsflow
3. Configure the new log filter to include the event that you want to trigger on.
* X450G2-24t-10G4.3 # configure log filter detectsflow add event "sflow.debug.StrtThrtlProc"
4. Create an instance for the log to send events to UPM.
* X450G2-24t-10G4.4 # create log target upm "detect-sflow-change"
5. Configure the log target to trigger the UPM profile.
* X450G2-24t-10G4.5 # configure log target upm "detect-sFlow-change" filter "detectsflow"
6. Enable the log target to trigger the UPM profile.
* X450G2-24t-10G4.7 # enable log target upm "detect-sFlow-change"