# Version

Chooses whether SNMPv1 or SNMPv2c traps are sent.

This parameter applies to omsnmp: SNMP Trap Output Module.

Name:

  Version

Scope:

  module

Type:

  integer

Default:

  module=1

Required?:

  no

Introduced:

  at least 7.3.0, possibly earlier

## Description

There can only be two choices for this parameter for now. 0 means SNMPv1 will be used. 1 means SNMPv2c will be used. Any other value will default to 1.

## Module usage

    action(type="omsnmp" version="1")

### Legacy names (for reference)

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

- $actionsnmpversion — maps to Version (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.