Concepts
1. MIB
MIB stands for Management Information Base. It stores all the maintenance variables of the devices managed by the network management system (NMS). The maintenance variables include the device name, status, access rights, and data type of the managed objects.
An MIB adopts the tree structure. The leaves are managed objects. Each object is uniquely identified by a path originating from the root. This path is called OID.
2. OID
OID stands for Object Identifier. An OID consists of 0 and positive integers. The OID identifies the location of an object in the MIB tree.
For example, { iso(1) org(3) dod(6) internet(1) mgmt(2) } (1.3.6.1.2 for short) is the OID of the mgmt object. The NMS uses OIDs to manage the objects in agents.
3. NMS
The NMS uses the Simple Network Management Protocol (SNMP) to manage and monitor network devices. NMS software is run on a server. The NMS has the following functions:
ØThe NMS sends requests to the agents running on managed devices to query or modify parameter values on the devices. ØThe NMS receives the traps sent by the agents running on managed devices to obtain device status.
4. SNMP
SNMP is a network management protocol widely used on TCP/IP networks. It allows the NMS to manage network devices.
An SNMP system contains the NMS, agent, management object, and MIB.
Obtaining information through MIB means that the NMS uses SNMP to access information matching an OID from a switch.
Configuration Roadmap
1.Configure SNMP on the switch, for example, SNMPv2c.
2.Install the NMS software, for example, net-snmp.
3.Use MIB to obtain switch information through the NMS.
Configure the switch.
1. Set the SNMP version to v2c.
<HUAWEI>system-view
[HUAWEI]sysnameSwitch
[Switch]snmp-agent sys-info version v2c
2. Set the SNMP community name to admin123.
[Switch]snmp-agent community write admin123
Configure the NMS.
1. Install the net-snmp software.
Net-snmp is third-party software. Obtain it through a formal channel and install it according to the software use guide.
2. Use the net-snmp software.
This software reads MIB information on the switch through command lines.
snmpwalk is used as an example:
snmpwalk –v Version -c Community Name IP Address OID
snmpwalk –v 2c -c admin123 10.137.217.203 1.3.6.1.2.1.1.5
-v: SNMP version. In this example, the SNMP version is v2c.
-c: community name. In this example, the community name is admin123.
IP address: IP address of the switch. In this example, the IP address is 10.137.217.203.
OID: ID of the object read by the NMS. In this example, the OID is 1.3.6.1.2.1.1.5.
@wissal @sohaib.ansar @BAZ @andersoncf1 @samawi @umar.yaqub @Dua_Joj @user_3665384 @beka_amsalu



