#### # First, map the community name "public" into a "security name" # sec.name source community #com2sec notConfigUser default public com2sec SEC_NAME SERVER_IP COMM_NAME #### # Second, map the security name into a group name: # groupName securityModel securityName #group notConfigGroup v1 notConfigUser #group notConfigGroup v2c notConfigUser group GROUP-NAME v1 SEC_NAME group GROUP-NAME v2c SEC_NAME #### # 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 systemview included .1.3.6.1.2.1.1 view systemview included .1.3.6.1.2.1.25.1.1 view all included .1 #### # Finally, grant the group read-only access to the systemview view. # group context sec.model sec.level prefix read write notif #access notConfigGroup "" any noauth exact systemview none none access GROUP-NAME "" any noauth exact all none none com2sec セキュリティ名。パスワードに相当する。コミュニティ名とそこにアクセスできるアドレス範囲を定義。 group   グループ名。 view    取得を許可する情報の範囲 access   グループに対するアクセス権