Got it

Why do I use snmp to read the oid value of the ospf neighbor relationship, but find that the read is empty?

Created: Jul 31, 2019 13:01:25Latest reply: Jul 31, 2019 13:02:28 205 1 1 0
  Rewarded HiCoins: 0 (problem resolved)

I need to manage The OSPF neighbor relationship of our company’s switch. So I want to use SNMP to read the OID value of the OSPF neighbor relationship, but find that the read is empty. But the MIB document shows that the OID can be read. How is this problem solved?


  • x
  • convention:

Featured Answers

Best answer

Recommended answer

Popeye_Wang
Admin Created Jul 31, 2019 13:02:28 Helpful(0) Helpful(0)

Hi Hobbit,

The OSPF MIB of the switch is a virtual database. The OSPF process needs to be bound to the OSPF MIB to respond to SNMP requests. By default, the OSPF process is not bound to the OSPF MIB, so no value can be read.

Run the ospf mib-binding command to bind an OSPF process to the OSPF MIB, for example:

<HUAWEI> system-view

[HUAWEI] ospf 100

[HUAWEI-ospf-100] quit

[HUAWEI] ospf mib-binding 100

View more
  • x
  • convention:

All Answers
Popeye_Wang
Popeye_Wang Admin Created Jul 31, 2019 13:02:28 Helpful(0) Helpful(0)

Hi Hobbit,

The OSPF MIB of the switch is a virtual database. The OSPF process needs to be bound to the OSPF MIB to respond to SNMP requests. By default, the OSPF process is not bound to the OSPF MIB, so no value can be read.

Run the ospf mib-binding command to bind an OSPF process to the OSPF MIB, for example:

<HUAWEI> system-view

[HUAWEI] ospf 100

[HUAWEI-ospf-100] quit

[HUAWEI] ospf mib-binding 100

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 " Privacy."

My Followers

Login and enjoy all the member benefits

Login

Huawei Enterprise Support Community
Huawei Enterprise Support Community
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.