linuxptp/configs/snmpd.conf
Anders Selhammer b2f2c9e02d snmp4lptp: Add snmp sub agent for linuxptp
The sub agent use net-snmp library and AgentX protocol for the
communication towards the snmp master agent.
snmpd.c should only include general setup needed for handling snmp.
Supported MIBs should be implemented in separate files.
Makefile will include snmpd if libsnmp is available during compilation.
configs/snmpd.conf should be placed in /etc/snmp/

Signed-off-by: Anders Selhammer <anders.selhammer@est.tech>
2018-09-07 09:44:52 -07:00

27 lines
1.2 KiB
Plaintext

# Map 'linuxptp' community to the 'LinuxPtpUser'
# Map 'public' community to the 'AllUser'
# sec.name source community
com2sec LinuxPtpUser default linuxptp
com2sec AllUser default public
# Map 'LinuxPtpUser' to 'LinuxPtpGroup' for SNMP Version 2c
# Map 'AllUser' to 'AllGroup' for SNMP Version 2c
# sec.model sec.name
group LinuxPtpGroup v2c LinuxPtpUser
group AllGroup v2c AllUser
# Define 'SystemView', which includes everything under .1.3.6.1.2.1.241
# Define 'AllView', which includes everything under .1
# incl/excl subtree
view SystemView included .1.3.6.1.2.1.241
view AllView included .1
# Give 'ConfigGroup' read access to objects in the view 'SystemView'
# Give 'AllGroup' read access to objects in the view 'AllView'
# context model level prefix read write notify
access LinuxPtpGroup "" any noauth exact SystemView none none
access AllGroup "" any noauth exact AllView none none
# turn on the AgentX master agent support
master agentx