---
title: "set snmptrap"
canonical: "https://docs.infoblox.com/space/nios86/231899160/set%20snmptrap"
format: markdown
---
The `set`` ``snmptrap` command sends SNMP traps to the trap receiver (SNMP trap server IP address) you specify. You can use the optional `v3` command to generate SNMPv3 traps. For information about SNMP, see <span style="color: #0000ff">[*Monitoring with SNMP*](https://infoblox-docs.atlassian.net/wiki/spaces/nios86/pages/1104971451)</span>.

Use the *<span style="color: #0000ff">[show](https://infoblox-docs.atlassian.net/wiki/spaces/nios86/pages/35886859)</span>*[ ](https://infoblox-docs.atlassian.net/wiki/spaces/nios86/pages/35886859)*<span style="color: #0000ff">[snmp](https://infoblox-docs.atlassian.net/wiki/spaces/nios86/pages/35886859)</span>* command to get information about SNMP objects.

> ⚠️ **Note**
> ⚠️ 
> ⚠️ Use t<span style="color: #172b4d">he </span>`set`` ``snmptrap`<span style="color: #172b4d"> command only for test purposes because </span><span style="color: #333333">it uses 0</span><span style="color: #333333"> as the value of the </span>`msgAuthoritativeEngineBoots`<span style="color: #333333"> and </span>`msgAuthoritativeEngineTime`<span style="color: #333333"> variables and this may cause the trap receiver to drop traps.</span>

# Syntax

`set snmptrap variable <name of an SNMP variable, in dotted or symbolic format> address <address of the trap receiver> [v3] [snmpuser][all] [ibNodeName <value> ] [ibTrapSeverity <value>] [ibOjectName <value>] [ibProbableCause <value>] [ibSubSystemName <value>]  [ibCurThresholdValue <value>] [ibThresholdHigh <value>] [ibThresholLow <value>] [ibPreviousState <value>] [ibCurrentState <value>] [ibTrapDesc <value>]`


| **Argument** | **Description** |
| --- | --- |
| `<name of an SNMP variable>` | Name or OID (object ID) of the SNMP object. For example, you can enter sysName.0 or .1.3.6.1.4.1.2021.11.53.0. |
| `<address of the trap receiver>` | IPv4 or IPv6 address of the management system that receives SNMP traps. |
| `<snmpuser>` | User name of the SNMPv3 user account. This is optional. If you do not provide a user name, the appliance uses the first SNMPv3 user on the list. |
| `ibNodeName <value>` | IP address of the appliance to which the trap must be sent. |
| `ibTrapSeverity <value> ` | Severity of the trap. For more information, see [*Trap Severity (OID 3.1.1.1.2.2.0)*](https://infoblox-docs.atlassian.net/wiki/spaces/nios86/pages/1105037066/SNMP+MIB+Hierarchy#Trap Severity (OID 3.1.1.1.2.2.0)). |
| `ibObjectName <value> ` | Name of the object for which the trap is generated. |
| `ibProbableCause <value>` | Value that provides information about events such as hardware, software for process failures that trigger SNMP traps. |
| `ibSubSystemName <value> ` | Value that provides information about the subsystems that trigger the traps. |
| `ibCurThresholdValue <value> ` | Current value of the threshold counter. |
| `ibThresholdHigh <value> ` | For CPU usage, this is the trigger value of the SNMP trap. For DHCP address usage, this is the value of the high watermark. |
| `ibThresholdLow <value>` | For CPU usage, this is the reset value of the SNMP trap. For DHCP address usage, this is the value for the low watermark. |
| `ibPreviousState <value>` | Previous state of the appliance. |
| `ibCurrentState <value> ` | Current state of the appliance. |
| `ibTrapDesc <value> ` | Description of the trap. |

For more information about the argument descriptions, see [*Types of Traps (OID 3.1.1.1.1)*](https://infoblox-docs.atlassian.net/wiki/spaces/nios86/pages/1105037066/SNMP+MIB+Hierarchy#Types of Traps (OID 3.1.1.1.1)).

# Examples

## Sending SNMP Traps to a Specific Trap Receiver

Enter the following on the appliance:

`Infoblox > ``set snmptrap variable sysName.0 address 10.0.0.11`

The appliance sends the following acknowledgement to the trap receiver:

`2011-02-23 23:02:51 10.0.0.11 [UDP: [10.0.0.11]:35597->[10.0.0.11]]:`  
`DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (42) 0:00:00.42`  
`SNMPv2-MIB::snmpTrapOID.0 = OID: SNMPv2-MIB::sysName.0`  
`2011-02-23 23:02:53 10.0.0.11 [UDP: [10.0.0.11]:52367->[10.0.0.11]]:`  
`DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (42) 0:00:00.42`  
`SNMPv2-MIB::snmpTrapOID.0 = OID: SNMPv2-MIB::sysName.0`` `

## Sending SNMP Traps Using SNMPv3

Enter the following on the appliance:

`Infoblox > ``set snmptrap variable sysName.0 localhost v3 SNMPv3User1`

The appliance sends the following acknowledgement to the trap receiver:

`2011-02-07 01:08:19 localhost [UDP: [127.0.0.1]:41884->[127.0.0.1]]:`  
`DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (42) 0:00:00.42`  
`SNMPv2-MIB::snmpTrapOID.0 = OID: DISMAN-EVENT-MIB::sysName.0`

Enter the following on the appliance:

`Infoblox > ``set snmptrap variable sysName.0 localhost v3 SNMPv3User1`

The appliance sends the following to the trap receiver in the event of a process failure:

`SNMPv2-MIB::snmpTrapOID.0 = OID: SNMPv2-SMI::enterprises.7779.3.1.1.1.1.2.0`  
`SNMPv2-SMI::enterprises.7779.3.1.1.1.2.1.0 = STRING: "192.168.1.2"`  
`SNMPv2-SMI::enterprises.7779.3.1.1.1.2.2.0 = INTEGER: 5`  
`SNMPv2-SMI::enterprises.7779.3.1.1.1.2.5.0 = STRING: "named"`  
`SNMPv2-SMI::enterprises.7779.3.1.1.1.2.4.0 = INTEGER: 20`  
`SNMPv2-SMI::enterprises.7779.3.1.1.1.2.11.0 = STRING: "A named daemon monitoring`  
`failure has occurred."`

## Sending SNMP Traps When the Primary Disk is Full

Enter the following on an appliance of type disk:

`Infoblox > set snmptrap variable 1.3.6.1.4.1.7779.3.1.1.1.1.3 address 10.35.5.243 ibNodeName "infoblox.localdomain" ibObjectName Disk ibTrapSeverity 3 ibProbableCause 1001 ibTrapDesc '"Primary drive is full."'`

The appliance sends the following to the trap receiver in the event of the primary disk being full:

`2020-06-30 12:36:25 member0.g.infoblox.com [UDP: [10.35.5.243]:44807->[10.35.5.243]:162]:`

`DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (10123392) 1 day, 4:07:13.92   SNMPv2-MIB::snmpTrapOID.0 = OID: IB-TRAP-MIB::ibThresholdCrossingEvent  IB-TRAP-MIB::ibNodeName.0 = STRING: "infoblox.localdomain"   IB-TRAP-MIB::ibTrapSeverity.0 = INTEGER: minor(3)       IB-TRAP-MIB::ibObjectName.0 = STRING: Disk  IB-TRAP-MIB::ibCurThresholdValue.0 = INTEGER: 100 IB-TRAP-MIB::ibThresholdHigh.0 = INTEGER: 90    IB-TRAP-MIB::ibThresholdLow.0 = INTEGER: 0      IB-TRAP-MIB::ibTrapDesc.0 = STRING: Primary drive is full.`