| |

VerySource

 Forgot password?
 Register
Search
View: 840|Reply: 4

A very good dish about snmp, but the problem that has troubled me for a long time

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-10 14:30:01
| Show all posts |Read mode
I want to implement a snmp-based network management software. I'm new to it and am a bit vague about some basic principles.

The work I want to achieve is this, the agent runs on linux, the management software runs on windows, and monitors the linux system equipment.

My problem is that I read a lot of information and know that the management software interacts with the agent through the snmp protocol, extracts the data of the mib library of the managed device and returns it to the management software (I don't know if I understand it correctly). The question is: then how do mib library information, such as network traffic, get such specific parameter values? I know that I need to access the mib library. A node in the mib library stores this specific value. But where is the data corresponding to the specific value of network traffic in the mib library, and how can it be obtained and updated? I think we should interact with the linux kernel, right? So who does this interactive work? Linux kernel itself, or a network management developer?
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-6-21 10:15:01
| Show all posts
google netsnmp

It is a snmp library and an SNMP agent

Most Linux releases come with netsnmp, and depending on the OS, netsnmp has implemented interaction with the kernel
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-26 10:45:01
| Show all posts
MIB is defined by itself. SNMP only specifies the format of MIB and how to access and transmit the information in MIB.
The interaction between the above MIB and the specific hardware must be written by yourself and belongs to the application layer.
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-8-11 20:15:01
| Show all posts
Do you understand?

I have just started contacting it, and it feels like the mib library is an agent, which is the same as the management machine. Management knows that your node represents network traffic through this mib, and then through the snmp protocol, go to the agent to read this node, your agent receives the managed host to read the content of this node, and then sends the network traffic data back to Manage the host. Then the management machine knows the network traffic.

The idea may not be right, so please study it.
Reply

Use magic Report

0

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-8-11 21:30:01
| Show all posts
I have been working on SNMP network management software for a while. I think the problem with the landlord is probably like this

Where does the data corresponding to the specific value of network traffic come from in the mib library? This value is obtained by the agent itself
Your manager program just needs to get the value of the Mib node you want or set the value of the node, if your task is just to do the Manager program.

If you need to be an Agent, then half of you need to define some mib nodes yourself, usually you need to deal with the bottom layer of the device to obtain the desired data or set the parameters.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list