Hi David, All,

Upon snmpd start I got the following prints:
registered debug token verbose:ifTable:ifSpeed_get, 1
registered debug token verbose:ifTable:ifPhysAddress_get, 1
registered debug token verbose:ifTable:ifAdminStatus_get, 1
registered debug token verbose:ifTable:ifOperStatus_get, 1
registered debug token verbose:ifTable:init_ifTable, 1
registered debug token verbose:ifTable:initialize_table_ifTable, 1
registered debug token verbose:ifTable:ifTable_rowreq_ctx_init, 1
registered debug token verbose:ifTable:ifTable_pre_request, 1
registered debug token verbose:ifTable:ifDescr_get, 1

So it seems I enabled logging for ifSpeed (for example).

Then from MIB browser (iReasoning) I sent an ifSpeed request and got the 
following message:

No data available (127.0.0.1)
OID: ifSpeed

This response was fast.

When I tried sending sysDescr I got a response with data ( Linux 
localhost.localdomain ...)
In /var/log/snmpd.log I got no further messages.
I expected to get:
DEBUGMSGTL(("verbose:ifTable:ifSpeed_get", "called\n"));

Should I add the if-mib to the agent ?

Best regards,
Z.V
________________________________________
From: Fernández Piñas, David [dfernand...@indra.es]
Sent: Tuesday, May 24, 2016 9:15 AM
To: Vered Zvi; net-snmp-users@lists.sourceforge.net
Subject: RE: Developing SNMP agent for a new switch

It depends on what you want to see... AFAIK, the -DdebugTag enables the tracing 
of "Debug Message" in the code when calling, e.g. DEBUGMSGTL(("debugTag", 
"Debug Message"));

-----Mensaje original-----
De: Vered Zvi [mailto:ver...@elta.co.il]
Enviado el: martes, 24 de mayo de 2016 4:44
Para: Fernández Piñas, David; net-snmp-users@lists.sourceforge.net
Asunto: RE: Developing SNMP agent for a new switch

Hi David, All,

As you wrote, -D gives a log of debug messages.
What TOKEN I can put after -D in order to filter ?

Best regards,
Z.V
________________________________________
From: Fernández Piñas, David [dfernand...@indra.es]
Sent: Tuesday, May 17, 2016 12:49 PM
To: Vered Zvi; net-snmp-users@lists.sourceforge.net
Subject: RE: Developing SNMP agent for a new switch

Hi,

You can specify the log file with option -Lf, e.g.: -Lf /var/log/snmpd.log

The option to write Debug information is -D, but use it with just what you want 
to see, because enabling all DEBUG info is a lot of info being written to the 
log file.

I don't know what to say about "basic SNMP OIDs, MIBs that every switch 
supports". If you have a competitor product, buy it and check it. But I think 
it is more interesting to survey netadmins to see what are they using rather 
than implementing a lot of unused features.

Best regards,

David

-----Mensaje original-----
De: Vered Zvi [mailto:ver...@elta.co.il] Enviado el: sábado, 14 de mayo de 2016 
21:13
Para: Fernández Piñas, David; net-snmp-users@lists.sourceforge.net
Asunto: RE: Developing SNMP agent for a new switch

Hi David, All,

If I install snmpd without any changes and send a valid SNMP request,

is there a way to run snmpd so it will print some debug messages upon an SNMP 
request ?

Where can I find a list of basic SNMP OIDs, MIBs that every switch supports ?

Best regards,
Z.V

________________________________________
From: Fernández Piñas, David [dfernand...@indra.es]
Sent: Friday, May 06, 2016 11:05 AM
To: Vered Zvi; net-snmp-users@lists.sourceforge.net
Subject: RE: Developing SNMP agent for a new switch

Hi Zvika,

Try to run snmpd on your x86 CPU either by installing the Net-SNMP for the 
corresponding operating system or compiling it from the sources.

Configuring Net-SNMP: snmpconf -i

The recommended way to start snmpd is with the following command line:
/usr/sbin/snmpd 
-I-udp,udpTable,tcp,tcpTable,icmp,ip,interfaces,system_mib,sysORTable

Then, you can see what information it provides with:
$ snmpwalk -v 1 -c public localhost .iso

The traps supported will depend on the supported MIBs. You must configure snmpd 
to send traps, e.g. at the configuration file snmpd.conf. Then you can run 
snmptrapd to get the traps from snmpd.

Best regards,

David

-----Mensaje original-----
De: Vered Zvi [mailto:ver...@elta.co.il] Enviado el: viernes, 06 de mayo de 
2016 4:50
Para: Fernández Piñas, David; net-snmp-users@lists.sourceforge.net
Asunto: RE: Developing SNMP agent for a new switch

Hi David,

The Intel's switch does not have any MIBs at all.
Intel delivers it without any SNMP features.
There is only an API that can control the switch via an x86 CPU connected to 
the switch via PCIe.

Is it possible to run snmpd without adding any code and just see how it 
responds to SNMP requests ?
I'm aware the reply from snmpd will not contain any valid information.

Does snmpd support SNMP traps ?

Best regards,
Zvika
_____________________________________
From: Fernández Piñas, David [dfernand...@indra.es]
Sent: Thursday, May 05, 2016 4:46 PM
To: Vered Zvi; net-snmp-users@lists.sourceforge.net
Subject: RE: Developing SNMP agent for a new switch

Do you have the switch MIB to support by the SNMP agent (ASN.1)? If this is a 
private company MIB, I would do a AgentX subagent implementing and getting the 
information from the PCIe device, then the Net-SNMP snmpd will give you some 
standard additional MIBs.

There is plenty of documentation, although not so easy to follow, from my point 
of view, in the Net-SNMP Project website, but after some hours of navigation 
you should be able to find your way.

Best regards,

David

-----Mensaje original-----
De: Vered Zvi [mailto:ver...@elta.co.il] Enviado el: jueves, 05 de mayo de 2016 
11:31
Para: net-snmp-users@lists.sourceforge.net
Asunto: Developing SNMP agent for a new switch

Hello,

I have to develope an SNMP agent for an Intel's switch.

The switch is controlled via an x86 CPU connected to the switch via PCIe.

Is snmpd is a good starting point ?

Is there a manual explains how to develope such agent from scratch ?

Best regards,
Z.V
The information contained in this communication is proprietary to Israel 
Aerospace Industries Ltd. and/or third parties, may contain confidential or 
privileged information, and is intended only for the use of the intended 
addressee thereof. If you are not the intended addressee, please be aware that 
any use, disclosure, distribution and/or copying of this communication is 
strictly prohibited. If you receive this communication in error, please notify 
the sender immediately and delete it from your computer.


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager 
Applications Manager provides deep performance insights into multiple tiers of 
your business applications. It resolves application problems quickly and 
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

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.

This Email and the attachments were emulated by Check Point ThreatEmulation 
Service.
The information contained in this communication is proprietary to Israel 
Aerospace Industries Ltd. and/or third parties, may contain confidential or 
privileged information, and is intended only for the use of the intended 
addressee thereof. If you are not the intended addressee, please be aware that 
any use, disclosure, distribution and/or copying of this communication is 
strictly prohibited. If you receive this communication in error, please notify 
the sender immediately and delete it from your computer.


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.

This Email and the attachments were emulated by Check Point ThreatEmulation 
Service.
The information contained in this communication is proprietary to Israel 
Aerospace Industries Ltd. and/or third parties, may contain confidential or 
privileged information, and is intended only for the use of the intended 
addressee thereof. If you are not the intended addressee, please be aware that 
any use, disclosure, distribution and/or copying of this communication is 
strictly prohibited. If you receive this communication in error, please notify 
the sender immediately and delete it from your computer.


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.

This Email and the attachments were emulated by Check Point ThreatEmulation 
Service.
The information contained in this communication is proprietary to Israel 
Aerospace Industries Ltd. and/or third parties, may contain confidential or 
privileged information, and is intended only for the use of the intended 
addressee thereof. If you are not the intended addressee, please be aware that 
any use, disclosure, distribution and/or copying of this communication is 
strictly prohibited. If you receive this communication in error, please notify 
the sender immediately and delete it from your computer.


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.

This Email and the attachments were emulated by Check Point ThreatEmulation 
Service.
The information contained in this communication is proprietary to Israel 
Aerospace Industries Ltd. and/or third parties, may contain confidential or 
privileged information, and is intended only for the use of the intended 
addressee thereof. If you are not the intended addressee, please be aware that 
any use, disclosure, distribution and/or copying of this communication is 
strictly prohibited. If you receive this communication in error, please notify 
the sender immediately and delete it from your computer.


------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to