Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # First, map the community name "public" into a "security name"
- #
- #
- # sec.name source community
- #
- com2sec local localhost mycom
- com2sec vmnet 192.168.48.0/24 mycom
- #
- #
- ####
- #
- # Second, map the security name into a group name:
- #
- #
- # groupName securityModel securityName
- #
- group mygrp v1 local
- #
- group vmgrp v2c vmnet
- #
- #
- ####
- #
- # Third, create a view for us to let the group have rights to:
- #
- #
- # Make at least snmpwalk -v 1 localhost -c public system fast again.
- #
- # name incl/excl subtree mask(optional)
- #
- view allmibs included .1
- #
- #
- ####
- #
- # Finally, grant the group read-only access to the systemview view.
- #
- #
- # group context sec.model sec.level prefix read write notif
- #
- access mygrp "" any noauth exact allmibs none none
- access vmgrp "" any noauth exact allmibs none none
- #
- #
- #
- #
- #
- ###############################################################################
- #
- # System contact information
- #
- #
- #
- #
- # It is also possible to set the sysContact and sysLocation system
- #
- # variables through the snmpd.conf file:
- #
- #
- syslocation Nepal (edit /etc/snmp/snmpd.conf)
- #
- syscontact Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement