第1章 net-snmp安装及配置...................................................................................................1-1 1.1 安装...................................................................................................................................1-1 1.2 设置net-snmp自启动..........................................................................................................1-3 1.3 设置环境变量.....................................................................................................................1-3 第2章 net-snmp测试..............................................................................................................2-3 2.1 本地通过localhost测试.......................................................................................................2-3 2.2 本地通过IP测试..................................................................................................................2-4 2.3 远程通过IP测试..................................................................................................................2-5 第3章 snmpd.conf详解..........................................................................................................3-6 3.1 通道控制配置.....................................................................................................................3-7 3.1.1 定义安全体名称.......................................................................................................3-7 3.1.2 定义安全组..............................................................................................................3-7 3.1.3 定义视图..................................................................................................................3-8 3.1.4 向安全组授权相应的视图.........................................................................................3-8 3.2 系统联系人信息..................................................................................................................3-9 3.3 进程检查...........................................................................................................................3-10 3.4 可执行脚本.......................................................................................................................3-11 3.5 磁盘检查...........................................................................................................................3-12 3.6 负载均衡检查...................................................................................................................3-13 3.7 可扩展部分.......................................................................................................................3-14 3.8 通过控制...........................................................................................................................3-15 3.9 其它.................................................................................................................................3-16 第4章 net-snmp指令............................................................................................................4-16 4.1 snmpget..........................................................................................................................4-16 4.2 snmpwalk........................................................................................................................4-16 4.3 snmpconf........................................................................................................................4-16 4.4 snmpd.............................................................................................................................4-17 4.5 snmpgetnext....................................................................................................................4-17 4.6 snmpset..........................................................................................................................4-17 4.7 snmpbulkget....................................................................................................................4-17 4.8 snmptrap.........................................................................................................................4-17 4.9 snmptrapd.......................................................................................................................4-17 4.10 snmpinform....................................................................................................................4-17 4.11 snmptable......................................................................................................................4-17 ii4.12 snmpstatus.....................................................................................................................4-18 4.13 snmpbulkwalk................................................................................................................4-18 4.14 snmpdelta......................................................................................................................4-18 4.15 snmptest.......................................................................................................................4-18
1