net-snmp 安装调试
1、SNMP 开发过程
1.1 snmp安装
普通安装
① 解压文件到当前文件夹
tar -zxvf net-snmp-5.4.2.1.tar.gz
② 配置安装路径
./configure --prefix=/usr/local/snmp
出现提示后做如下配置即可
default version of-snmp-version: 2
Systemcontact information(配置该设备的联系人): hctel
System location (该设备的位置): china
Location to write logfile (日志文件位置): /var/log/snmpd.log
Location to Write persistent(数据存储目录): /var/net-snmp
③ 编译,安装
编译之前需要修改几处bug
Hr_swinst.c中C:480 int_32 *rpm_data; 改为long *rpm_data;
make && make install
④ 配置snmp.conf文件
在解压后的net-snmp-5.4.2.1文件夹下有EXAMPLE.conf文件,将其拷贝到指定路径/usr/local/snmp下改名为snmp.conf,也可以拷贝到其他路径下,我将其拷贝到了自己的路径下/develop/ln
⑤ 编辑配置文件snmp.conf
####
# First, map the community name (COMMUNITY) into a security name
# (local and mynetwork, depending on where the request is coming
# from):
# sec.name source community
com2sec local localhost public
com2sec nmswr localhost private
com2sec mynetwork 192.168.10.67 public
com2sec mynetworkswr 192.168.10.67 private
com2sec mynetwork 192.168.10.95 public
com2sec mynetworkswr 192.168.10.95 private
我的net-snmp安装配置总结_计算机软件及应用_IT/计算机_专业资料。自己总结net...可以在代码中使用”printf”函数来输出打印信息方便调试,捕捉问题 在启动 snmpd ...
NET-SNMP 安装配置手册 3.9 其它 图3-13 其它 第4章 net-snmp 指令 net-snmp 提供了许多工具使用和调试 SNMP, 但从我个人的使用来看常用的指令有 snmpd、 ...
gz 下载后,解压文件: tar -zxvf net-snmp-5.5.tar.gz 解压后进入,net-snmp-5.5 目录 cd net-snmp-5.5 2、开始安装 net-snmp-5.5 运行./configure ...
Net-213632274.doc Net-SNMP 服务安装、配置及启动手 册 版本号: 编写人: 编写日期: V1.0 攻城师 2010-1-15 未经允许,不可全部或部分发表、复制或使用于...
NET-SNMP 配置与自定义MIB入门 NET-SNMP 开发入门学习详细步骤1、安装 ./...7、调试方法 1、可以使用strace -f -L ./snmpd的方法跟踪snmpd调用的系统调用...
会将 net-snmp 相关的 perl 模块编译好并安装到 c:/perl/site/lib 目录下...(/MD) 】,Debug 版选择【多线程 调试 DLL (/MDd) 】; Stdafx.h 中添加:...
net-snmp编译安装_IT/计算机_专业资料 暂无评价0人阅读0次下载举报文档 net-snmp编译安装_IT/计算机_专业资料。linux下net-snmp编译安装操作手册...
mibdirs 在 net-snmp 的配置文件 snmp.conf 中配置,而 snmp.conf 缺省放置在[NetSNMP_HOME]/etc/snmp 目录中。其中,[NetSNMP_HOME]指 net-snmp 安装到的...
Linux下安装NET-SNMP使用监控宝监控系统状态_计算机软件及应用_IT/计算机_专业资料。Linux 下安装 NET-SNMP 使用监控宝监控系统状态 1、准备环境 1 yum -y ...
(即 xxx-gcc, xxx-ar 等等工具的 xxx)“—disable-debug”不使能调试等等。...二:在命令行执行下以命令 #export MIBS=all 就会将安装 net-snmp 的路径下的...
热门文档