Once you are have entered a SNMP trap forwarding rule, the SNMP trap forwarding sub-
mode allows you to enter a specific trap filter. Once you are in the SNMP trap forward-
ing submode, the following configuration commands are available:
•
cancel
- Exit this mode without saving any changes
•
convert
– Forward syslog as another type
•
exit
– exit server group mode (saving changes)
•
no
– remove or use default settings
•
trap-filter
– Forward traps matching a filter
convert [ v1 | v2c ]
no convert [ v1 | v2c ]
convert
Convert trap between SNMP versions
v1
Convert all traps to SNMPv1
v2c
Convert all traps to SNMPv2c
no
Deletes the convert filter
trap-filter
filter_name
no trap-filter
filter_name
trap-filter
Forward traps matching a filter
filter_name
Name of the trap filter to use
no
Deletes the trap filter
Examples
This example shows how to create a netflow forwarding rule for ZoneRanger port 9996
through Ranger Gateway rg1 to hostname collector at port 999 for all sources matching the IP
address ranger 10.1.2.*.
zr# trap forward netflow 9996 rg1 collector 999 10.1.2.*
This example shows how to create a syslog forwarding rule for ZoneRanger port 512 through
Ranger Gateway rg1 to hostname syslog at port 512 for all sources matching the IP address
ranger 10.1.2.*. which have a severity of 5 or less and to convert those syslog message to
SNMP trap with a specific type of 60.
zr# trap forward syslog 512 rg1 syslog 512 10.1.2.*
zr(syslog)# severity 5
zr(syslog)# convert 60
zr(syslog)# exit
group
To set the group name for this ZoneRanger
group
groupname
ZoneRanger 5.5 User's Guide
254