net-snmp 移植过程记录

本文记录了NET-SNMP版本5.7.3的移植过程,包括从官方网站下载源码,解压并编译,接着介绍如何编写SNMP程序,利用mib2c生成C代码并与工程整合,最后强调了根据需求修改生成的C代码处理逻辑的重要性。
摘要由CSDN通过智能技术生成

1. 下源码

http://www.net-snmp.org/download.html

这里版本是 NET-SNMP version 5.7.3

 

 

2. 解压,编译

a> ./configure --with-default-snmp-version="2" --with-sys-contact="who@where"  --with-sys-location="location" --with-logfile="/tmp/snmpd.log" --with-persistent-directory="/usr/local/sbin" --enable-static=yes --disable-shared --disable-embedded-perl --without-perl-modules --disable-ipv6 --disable-ucd-snmp-compatibility --enable-as-needed  --with-mib-modules="agentx" --disable-mib-loading --disable-des --disable-privacy --disable-md5 --disable-deprecated --with-openssl=internal --without-kmem-usage --without-rpm --without-dmalloc --build=i686-linux --host=arm-linux --target=arm-linux-gnueabihf --with-cc=arm-linux-gnueabihf-gcc --with-linkcc=arm-linux-gnue
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值