# Snmpv1DynSource

Overrides the SNMPv1 trap source address via template.

This parameter applies to omsnmp: SNMP Trap Output Module.

Name:

  Snmpv1DynSource

Scope:

  module

Type:

  string

Default:

  module=””

Required?:

  no

Introduced:

  8.2001

## Description

Added in version 8.2001.

If set, the source field of the SNMP trap can be overwritten with a template. valid IPv4 Address. Otherwise setting the source will fail.

Below is a sample template called “dynsource” which you can use to set the source to a custom property:

    set $!custom_host = $fromhost;
    template(name="dynsource" type="list") {
         property(name="$!custom_host")
    }

This configuration parameter is used for SNMPv1 only. It has no effect if SNMPv2 is used.

## Module usage

    action(type="omsnmp" snmpv1DynSource="dynsource")

## 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.