Got it

Obtain Switch Information Through MIB

Latest reply: Sep 15, 2021 15:30:27 281 6 12 0 0

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

Well done friend!
View more
  • x
  • convention:

IndianKid
IndianKid Created Sep 4, 2021 05:54:32 (0) (0)
Thanks Dear  
Good share
View more
  • x
  • convention:

AL_93
Moderator Created Sep 5, 2021 11:27:34

Good post
View more
  • x
  • convention:

Great share
View more
  • x
  • convention:

Thanks for sharing! Keep up the good work!
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.