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