/usr/share/fwbuilder-5.1.0.3599/configlets/fwsm_os/snmp is in fwbuilder-common 5.1.0-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | ## -*- mode: shell-script; -*-
##
## To be able to make changes to the part of configuration created
## from this configlet you need to copy this file to the directory
## fwbuilder/configlets/fwsm_os/ in your home directory and modify it.
## Double "##" comments are removed during processing but single "#"
## comments are be retained and appear in the generated script. Empty
## lines are removed as well.
##
## Configlets support simple macro language with these constructs:
## {{$var}} is variable expansion
## {{if var}} is conditional operator.
##
{{if clear}}
{{if fwsm_version_lt_32}}
clear snmp-server
{{endif}}
{{if fwsm_version_ge_32}}
clear config snmp-server
{{endif}}
{{endif}}
{{if disable}}
no snmp-server
{{endif}}
{{if not_disable}}
{{if set_community}}
snmp-server community {{$read_community}}
{{endif}}
{{if set_sysinfo}}
{{if not_location_empty}}snmp-server location {{$location}}{{endif}}
{{if not_contact_empty}}snmp-server contact {{$contact}}{{endif}}
{{endif}}
{{if not_enable_traps}}no {{endif}}snmp-server enable traps
{{if not_server_1_empty}}snmp-server host {{$interface_1_label}} {{$address_1}} {{$poll_or_trap_1}} {{endif}}
{{if not_server_2_empty}}snmp-server host {{$interface_2_label}} {{$address_2}} {{$poll_or_trap_2}} {{endif}}
{{endif}}
|