We have already talked a lot about the concept of the SNMP protocol, in order to better apply this Protocol. Today, we will briefly introduce the content of the Linux SNMP protocol and how to manage and operate the SNMP protocol in Linux.
The Simple Network Management Protocol (Linux SNMP) is first proposed by the Internet Engineering Task Organization (IETF) research team to solve the router management problem on the Internet. We usually seldom call a database in a managed device a database. In terms of the Linux SNMP protocol, it is usually called the Management Information Library MIB ).
A mib describes the objects or table items contained in the database. Each object or table item has the following four attributes:
◆ Object Type)
◆ Syntax)
◆ Access)
◆ Status)
These attributes are defined in the management information structure and identity SMI in one of the Linux SNMP protocol specifications. RFC 1155/1065. SMI is equivalent to the schema for databases for MIB. SMI defines each object "what looks like ".
Object Type
This attribute defines the name of a specific object, such as sysUpTime. It is just a tag. When representing data, SMI uses ASN.1 (Abstract Syntax Notation One ). The object must be "identified ". For the Internet management MIB, the identifiers expressed in the ASN.1 notation start with the following:
Internet object identifier ::={ iso org (3) dod (6) 1}
Or use a simple format: 1.3.6.1
This is extracted from the ASN.1 document. It defines a tree format for the identifier. The tree is composed of a root and many labeled nodes connected to it. Each node is identified by a non-negative integer value and a text description as concise as possible. Each node may also have sub-nodes that are also marked.
When describing an OBJECT identifier object indentifier), you can use several formats. The simplest format is to list the integers found by traversing the tree from the root to the discussed OBJECT. Starting from the root level, there are three nodes:
◆ Ccitt (0)
◆ Iso (1)
◆ Joint-iso-cci
We will explain the knowledge about the Linux SNMP protocol this time.