Linux 下 net-snmp 安装流程
亿通 EOC_SNMP 研发组 制作
1.下载
建议下载地址 http://www.net-snmp.com/download.html , 这是此开源软件的官方网址。其中
有 net-snmp 的各种版本提供下载,最新的至 net-snmp-5.5-tar-gz 。出于资料丰富的原因这里我们选择
5.3.2 版本。(注:5.5 与 5.3 版本在 snmpd.conf 文件的配置有所不同)
2.安装
1.解压缩
在终端下键入 sudo su 进入 root 模式,所有操作必须在此模式下。
cd 到安装包的位置,然后 tar -xvf net-snmp-5.3.2.tar.gz。
2.配置 configure 文件
在终端下 cd net-snmp-5.3.2 ,即进入解压缩包中的源文件。
然后./configure --prefix=/usr/local/net-snmp --enable-mfd-rewrites --with-
default-snmp-version=“2” --with-logfile=”var/log/snmpd.log” --with-persistent-
directory=”var/net-snmp”。
各配置的意义:
prefix net-snmp 的预安装路径
enable-mfd-rewrites 允许用新的 MFD 重写 mib 文件
with-default-snmp-version 设置默认的版本号,现为 2
with-logfile 日志文件的存放路径
with-persistent-directory 数据存储目录
3.运行上述命令回反馈如下信息:
- 1
- 2
- 3
前往页