Discussion:
Is it possible to set up many SNMP agents managing the same MIB on the same machine?
daniele
2017-07-11 09:06:44 UTC
Permalink
Hello everybody,

I'm new to net-snmp and I started reading documentation and making some
tests.
However I have some experience with SNMP.

As you can see from the subject of my request, what I am trying to achieve
is something not typical when using SNMP and it is for sure tricky. I hope
to find some of you to have the patience to read my post until the end to
understand what I mean.

Typically SNMP requests are sent to diagnose the status of a target
machine: to achieve this the machine must be running an snmp agent and N
sub agents each managing a different MIB.
In my case the machine answering to SNMP is a "gateway" to N machines (that
don't implement SNMP) and the gateway must manage SNMP informations for
each of these machines. The N machines are identical and the informations
for each are described in the same MIB: as a consequence the gateway must
have N agents (answering on different ports) and N instances of the same
sub-agent implementing the target MIB. Each subagent will be then
configured to connect to its own machine to retrieve informations.
Is it possible to achieve this setup by using net-snmp? Or is it so far
from SNMP purpose that no one thought to this possibility?

Thanks in advance

salvolds
Fernández Piñas, David
2017-07-11 09:23:00 UTC
Permalink
Yes, it should be possible. But instead of different ports for each SNMP agent, maybe it would be better that you use IP aliasing in the Gateway. Then, each SNMP agent just listens on a single IP address, standard port UDP 161. I think that this would make it easier to map the devices on a network map.

Regards,

David

De: daniele [mailto:***@gmail.com]
Enviado el: martes, 11 de julio de 2017 11:07
Para: Net-snmp-***@lists.sourceforge.net
Asunto: Is it possible to set up many SNMP agents managing the same MIB on the same machine?

Hello everybody,

I'm new to net-snmp and I started reading documentation and making some tests.
However I have some experience with SNMP.

As you can see from the subject of my request, what I am trying to achieve is something not typical when using SNMP and it is for sure tricky. I hope to find some of you to have the patience to read my post until the end to understand what I mean.

Typically SNMP requests are sent to diagnose the status of a target machine: to achieve this the machine must be running an snmp agent and N sub agents each managing a different MIB.
In my case the machine answering to SNMP is a "gateway" to N machines (that don't implement SNMP) and the gateway must manage SNMP informations for each of these machines. The N machines are identical and the informations for each are described in the same MIB: as a consequence the gateway must have N agents (answering on different ports) and N instances of the same sub-agent implementing the target MIB. Each subagent will be then configured to connect to its own machine to retrieve informations.
Is it possible to achieve this setup by using net-snmp? Or is it so far from SNMP purpose that no one thought to this possibility?

Thanks in advance

salvolds

________________________________

Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene información de carácter confidencial exclusivamente dirigida a su destinatario o destinatarios. Si no es vd. el destinatario indicado, queda notificado que la lectura, utilización, divulgación y/o copia sin autorización está prohibida en virtud de la legislación vigente. En el caso de haber recibido este correo electrónico por error, se ruega notificar inmediatamente esta circunstancia mediante reenvío a la dirección electrónica del remitente.
Evite imprimir este mensaje si no es estrictamente necesario.

This email and any file attached to it (when applicable) contain(s) confidential information that is exclusively addressed to its recipient(s). If you are not the indicated recipient, you are informed that reading, using, disseminating and/or copying it without authorisation is forbidden in accordance with the legislation in effect. If you have received this email by mistake, please immediately notify the sender of the situation by resending it to their email address.
Avoid printing this message if it is not absolutely necessary.
Robson, Alan
2017-07-11 16:01:21 UTC
Permalink
If you control the MIB structure would it work for you to structure your MIB to contain tables ? ie. when you read, say, CPU usage you will read a CPU usage table with an entry for each machine - one MIB, one agent, multiple entries.


From: daniele [mailto:***@gmail.com]
Sent: Tuesday, July 11, 2017 2:07 AM
To: Net-snmp-***@lists.sourceforge.net
Subject: Is it possible to set up many SNMP agents managing the same MIB on the same machine?

Hello everybody,

I'm new to net-snmp and I started reading documentation and making some tests.
However I have some experience with SNMP.

As you can see from the subject of my request, what I am trying to achieve is something not typical when using SNMP and it is for sure tricky. I hope to find some of you to have the patience to read my post until the end to understand what I mean.

Typically SNMP requests are sent to diagnose the status of a target machine: to achieve this the machine must be running an snmp agent and N sub agents each managing a different MIB.
In my case the machine answering to SNMP is a "gateway" to N machines (that don't implement SNMP) and the gateway must manage SNMP informations for each of these machines. The N machines are identical and the informations for each are described in the same MIB: as a consequence the gateway must have N agents (answering on different ports) and N instances of the same sub-agent implementing the target MIB. Each subagent will be then configured to connect to its own machine to retrieve informations.
Is it possible to achieve this setup by using net-snmp? Or is it so far from SNMP purpose that no one thought to this possibility?

Thanks in advance

salvolds

Loading...