Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | Github | OSChina 博客 | 雲社區 | 雲棲社區 | Facebook | Linkedin | 知乎專欄 | 視頻教程 | About

17.2. 配置SNMP

17.2.1. community 配置

預設為 public, 版本支持v1與v2c, 只讀權限

#       sec.name  source          community
com2sec notConfigUser  default       public

#       groupName      securityModel securityName
group   notConfigGroup v1           notConfigUser
group   notConfigGroup v2c           notConfigUser

#       group          context sec.model sec.level prefix read   write  notif
access  notConfigGroup ""      any       noauth    exact  systemview none none
			

現在我們新增一個 community

			
			

17.2.2. 定義可操作的範圍

下面我們定義一個最大可操作範圍用於Cacti監控

#access  notConfigGroup ""      any       noauth    exact  systemview none none
access  notConfigGroup ""      any       noauth    exact  all none none

#       name           incl/excl     subtree         mask(optional)
view all    included  .1                               80
			

A variable list

name

預設是 systemview 這裡使用all

incl/excl

是包含于排除

subtree

視圖中涉及的MIB子樹

mask(optional)

掩碼