1. Concepts
SNMP is a standard protocol used to manage network nodes (servers, workstations, routers, switches, and HUBS) in an IP network. It is an application layer protocol. SNMP enables network administrators to manage network performance, discover and solve network problems, and plan network growth. The Network Management System receives random messages (and event reports) through SNMP to learn about network problems.
The SNMP management network consists of three main components: managed devices, proxies, and network management systems.
A management device is a network node that contains an SNMP proxy and is in the management network.
Managed devices (such as routers, access servers, switches and bridges, HUBS, and related hosts) are used to collect and store management information. Through SNMP, NMS can obtain this information.
The SNMP agent is a network management software module on the managed device.
2. Preparations before transplantation
A. Download The net-snmp-5.6.1.1.tar.gzsource code package from http://www.net-snmp.org/net.
B. Check that the cross-compiler Arm-Linux-GCC has been installed.
3. porting process
1.decompress net-snmp-5.6.1.1.tar.gz
2. Configuration
CC = arm-linux-gcc. /configure -- prefix =/usr/local/arm_netsnmp -- build = i386-linux -- host = arm-linux -- enable-mini-agent -- disable-ipv6 -- with-endianness = little -- disable-manuals -- disable-ucd-snmp-compatibility -- enable-as-needed
-- Disable-embedded-perl -- without-perl-modules -- disable-snmptrapd-subagent -- disable-applications -- disable-scripts
3. Compile make
4. Install make install
Note: if an error occurs, check the cause of the Error. If some libraries are not installed, install them. My library is: apt-get install libperl. dev
5. port to the Development Board
A. Port the snmpd generated under arm_netsnmp to the development board/tmp/ArmSnmp (you can find a place for the directory)
B. vi snmpd. conf. Add the following content:
Rocommunity public
Rwcommunity 123456
Wq save and exit
6. Test Results
A. Run the following command on the Development Board:
[Root @ EM9X60/tmp/ArmSnmp] #./snmpd-C-c./snmpd. conf
B. Then run the following command on the linux host:
Root @ an-virtual-machine:/usr/local/net-snmp/bin #./snmpget-v2c-c public 192.168.1.94 sysDescr.0
SNMPv2-MIB: sysDescr.0 = STRING: Linux EM9X60 2.6.30 #92 Wed Mar 30 17:39:47 CST 2011 armv5tejl
Note: snmpget is on the linux host platform (you can obtain it by default after downloading the source code)
References:
How to use snmp ++ and agent ++
Http://blog.csdn.net/cheng168520/article/details/4443006
Introduction to SNMP protocol
Http://www.qqread.com/net-protocol/r621314308.html
Http://www.qqread.com/net-manage/k452952.html
Http://blog.csdn.net/ccnupq/article/details/1773019
Programming using the net-snmp API
Http://www.qqread.com/cpp/u260295.html
Http://blog.csdn.net/ccnupq/article/details/1771290
Successfully transplanted net-snmp
Http://blog.csdn.net/livingpark/article/details/3131309
Love question: NET-SNMP configuration and self-defined mibw..doc
Net-snmp load a third-party MIB Library ()
Http://hi.baidu.com/perneter/blog/item/755e4edd4790c8e376c6389e.html