# TrapType

Selects the SNMPv1 generic trap type.

This parameter applies to omsnmp: SNMP Trap Output Module.

Name:

  TrapType

Scope:

  module

Type:

  integer

Default:

  module=6

Required?:

  no

Introduced:

  at least 7.3.0, possibly earlier

## Description

There are only 7 Possible trap types defined which can be used here. These trap types are:

    0 = SNMP_TRAP_COLDSTART
    1 = SNMP_TRAP_WARMSTART
    2 = SNMP_TRAP_LINKDOWN
    3 = SNMP_TRAP_LINKUP
    4 = SNMP_TRAP_AUTHFAIL
    5 = SNMP_TRAP_EGPNEIGHBORLOSS
    6 = SNMP_TRAP_ENTERPRISESPECIFIC

Note

Any other value will default to 6 automatically. This configuration parameter is used for SNMPv1 only. It has no effect if SNMPv2 is used.

## Module usage

    action(type="omsnmp" trapType="6")

### Legacy names (for reference)

Historic names/directives for compatibility. Do not use in new configs.

- $actionsnmptraptype — maps to TrapType (status: legacy)

## See also

See also omsnmp: SNMP Trap Output Module.

Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project

Contributing: Source & docs: rsyslog source project

© 2008–2025 Rainer Gerhards and others. Licensed under the Apache License 2.0.