Snmp mib is a major module of SNMP protocol software. Therefore, the main function of MIB is the Management Information Library, we have also discussed some of the previous articles, but many of our friends still do not understand snmp mib. For this reason, we have compiled the following articles to help you learn this part 。
Some servers and devices have been monitored recently. The built-in cacti template cannot meet your requirements. After one day of debugging, at present, data traffic analysis such as bind9 mysql bind has been implemented (in fact, it is to use scripts to retrieve data and finally draw it out using rrdtool). However, during the learning process, I did not know much about the snmp mib concept. I Googled it and the following articles should be able to answer some of my friends who have the same questions as me (I simply sorted out the layout)
SNMP protocol details
SNMP: Simple Network Management Protocol is an Internet Engineering Task Force (IETF: Internet Engineering Task Force) A defined Network Management Protocol. This Protocol is based on the Simple Gateway monitoring Protocol (SGMP: Simple Gateway Monitor Protocol). With SNMP, a management workstation can remotely manage all network devices that support this Protocol, this includes monitoring network status, modifying network device configurations, and receiving network event warnings. Although SNMP was initially designed for IP-based network management, it was also successfully used as an industrial standard for telephone network management 。
1. Basic principles of SNMP
SNMP adopts a special form of Client/Server model: agent/management station model. network management and maintenance are completed through the interaction between the management workstation and the SNMP agent. Each SNMP is responsible for answering the SNMP management workstation (master agent) from the agent) A variety of queries on snmp mib definition information. It is an implementation model of SNMP protocol in NMS network products 。
SNMP implementation model
The SNMP Agent communicates with the management site through standard messages in the SNMP protocol. Each message is a separate datagram. SNMP uses UDP (User Datagram Protocol) as the layer-4 protocol (Transport Protocol ), the SNMP message contains two parts: the SNMP header and the Protocol Data Unit PDU. The datagram structure is as follows:
Datagram Structure
Version identifier: Make sure that the SNMP agent uses the same protocol. Each SNMP agent directly discards the datagram of a different protocol version. Group Name ): SNMP authenticates the SNMP Management site from the proxy. If the network is configured to require verification, the SNMP slave agent authenticates the group name and the IP address of the Management site. If the authentication fails, SNMP sends a Trap message for authentication failure to the management site from the proxy. Protocol Data Unit (PDU): PDU indicates the Message Type and related parameters of SNMP 。