Network Management

Create a discard trap rule

This article describes how to create discard trap rules.

First published date

10/11/2018 9:00 AM

Last published date

9/26/2022 10:45 AM

Overview

Each time a trap message is received, it will work through every rule from the top to bottom. This article describes how to create a discard trap rule.

Product section

Network Performance Monitor

Cause

n/a

Resolution

  1. Go to Start > Program Files > SolarWinds > Orion > Trap Viewer.
  2. Select the View-Alert/Filter Rules tab.
From here you can filter the data:
  • by IP address
  • by Message Type Patterns
  • Message Patterns
  • Severity and others
  1. Add the following Alert Actions to your rule:
    1. "Discard Trap Message"
    2. "Stop processing Trap Rules"
 

"Stop processing Trap rules"

To make sure that they are processed first, rearrange the Trap rules so that the ones which filter and discard messages are at the top of the list.

For more information, please refer to the following Thwack blog entries:
 

Trapped...! But Not in a Bad Way

SNMP Trap Variable Findings
 

There are no automated settings to prune the traps table. 
Have your DBA use a truncate/deletion syntax to purge the table.
 

Here is how it is done:

  1. Open a remote desktop session into the Orion server.
  2. Open Database Manager.
    1. Use Database Manager to view the SolarWinds database
  3. Open the Traps and TrapVarbinds Tables with read-write permissions.
-- Scripts are not supported under any SolarWinds support program or service.
-- Scripts are provided AS IS without warranty of any kind. SolarWinds further
-- disclaims all warranties including, without limitation, any implied warranties
-- of merchantability or of fitness for a particular purpose. The risk arising
-- out of the use or performance of the scripts and documentation stays with you.
-- In no event shall SolarWinds or anyone else involved in the creation,
-- production, or delivery of the scripts be liable for any damages whatsoever
-- (including, without limitation, damages for loss of business profits, business
-- interruption, loss of business information, or other pecuniary loss) arising
-- out of the use of or inability to use the scripts or documentation.

Truncate table TRAPS
Truncate table TRAPVARBINDS