Приложение 1. Пример конфигурационного файла

#
# An SNMP engine's administratively-unique identifier.
#
snmpEngineID 8F270000046167656E7431

listen 192.168.5.8/1161

SysDescr    SNMP agent.
SysObjectID 1.3.6.1.4.1.9999
SysLocation Right here, right now.
SysName     agent1
SysContact  me < me@somewhere.org >

#
# The table of users configured in the SNMP engine's
# Local Configuration Datastore (LCD).
#
# user SEC_NAME [AUTH AUTH_PASSWORD [PRIV PRIV_PASSWORD]]
usmUser guest
usmUser test1
usmUser test2 MD5 testtest
usmUser test3 MD5 testtest DES testtest
# recommended template clone-from users [RFC3414]
usmUser templateMD5 MD5 "" DES ""
usmUser templateSHA SHA "" DES ""

#
# This table maps a combination of securityModel and
# securityName into a groupName which is used to define
# an access control policy for a group of principals.
#
# group GROUP SEC_MODEL SEC_NAME
group MyRWGroup  v1  local
group MyRWGroup  v2c local
group MyRWGroup  usm local
group MyROGroup v1  guest
group MyROGroup v1  mynetwork
group MyROGroup v2c mynetwork
group MyROGroup usm mynetwork
group initial   usm test1
group initial   usm test2
group initial   usm test3
group initial   v1  guest
group initial   v2c guest
group initial   v1  admin
group initial   v2c admin
group initial   usm initial

#
# Locally held information about families of subtrees
# within MIB views.
#
# view VIEW TYPE SUBTREE
view all        included 1
view internet   included 1.3.6.1
view restricted included 1.3.6.1

#
# The table of access rights for groups.
#
# access GROUP CONTEXT SEC_MODEL SEC_LEVEL MATCH READ WRITE NOTIFY
access MyROGroup "" v1  noAuthNoPriv exact all none none
access MyROGroup "" v2c noAuthNoPriv exact all none  none
access MyROGroup "" usm noAuthNoPriv exact all none none
access MyRWGroup "" v1  noAuthNoPriv exact all all  none
access MyRWGroup "" v2c noAuthNoPriv exact all all  none
access MyRWGroup "" usm noAuthNoPriv exact all  all  none
access initial  "" v1  noAuthNoPriv exact restricted restricted restricted
access initial  "" v2c noAuthNoPriv exact restricted restricted restricted
access initial   "" usm noAuthNoPriv exact restricted none restricted
access initial   "" usm authNoPriv   exact internet   internet   internet
access initial   "" usm authPriv     exact internet   internet   internet

#
# The table of community strings configured in the SNMP
# engine's Local Configuration Datastore (LCD).
#
# community COMMUNITY SEC_NAME CONTEXT TARGET_TAG [CONTEXT_ENGINE_ID]
community public  guest "" ""
community private admin "" ""

#
# A table of transport addresses to be used in the generation
# of SNMP messages.
#
# snmpTargetAddr TARGET TDOMAIN TADDRESS TIMEOUT RETRIES TAGLIST PARAMS
snmpTargetAddr trap-recever udp 192.168.5.76/162 5 5 "manager all" secure
snmpTargetAddr server1      udp 192.168.1.1/161  5 5 "server all"  secure
snmpTargetAddr server2      udp 192.168.1.2/161  5 5 "server all"  secure
snmpTargetAddr manager      udp 127.0.0.1/162    5 5 "manager all" unsecure

#
# A table of SNMP target information to be used
# in the generation of SNMP messages.
#
# snmpTargetParams PARAMS MP SECMODEL SECNAME SECLEVEL
snmpTargetParams unsecure v1 v1  guest noAuthNoPriv
snmpTargetParams secure   v3 usm admin authPriv

# snmpNotify NOTIFY TAG TYPE
snmpNotify all all inform

# snmpNotifyFilterProfile PARAMS FILTER
snmpNotifyFilterProfile secure secure-filter
snmpNotifyFilterProfile unsecure unsecure-filter

# snmpNotifyFilter FILTER INCLUDE SUBTREE MASK
snmpNotifyFilter secure-filter include 1.3.6.1 F0

# LinService SERVICE PATH
LinService test    /home/fbv/projects/snmp/linsnmp/tests/mytest
LinService kernel  /home/fbv/linter/bin/linter
LinService linapid /home/fbv/linter/bin/linapid
LinService dbs_tcp /home/fbv/linter/bin/dbs_tcp

# LinServiceParam SERVICE NAME VALUE
LinServiceParam kernel pool 1000
LinServiceParam kernel debug ""
LinServiceParam linapid port 1090
LinServiceParam dbs_tcp C ""

# LinServiceEnv SERVICE NAME VALUE
LinServiceEnv kernel LINTER_MBX 1234