[AGENT++] associating variable to SNMP MIB

MATTY, Steven steven.matty at airbus.com
Tue Jan 26 07:59:38 CET 2016


Hi

I can't answer your specific example, but I use AgenPro to generate C++ classes for each OID and then update their values
using set_state()

I wasn't aware you could associate a variable to an OID

Regards

Steve

>-----Original Message-----
>From: AGENTPP [mailto:agentpp-bounces at agentpp.org] On Behalf Of Pablo
>Alberto Martinez
>Sent: Tuesday, January 26, 2016 12:38 AM
>To: agentpp at agentpp.org
>Subject: [AGENT++] associating variable to SNMP MIB
>
>
>
>Hello, my question is the following: I'm using SNMP in QT to create an
>agent in which I can update data from my variables and see them
>reflected in the SNMP tree; the problem is that I cannot associate my
>variables (eg integer, OctecStr) ("myVar") with the OID. The idea is
>that when I modify my variables they also modify in SNMP, so when one
>of the MIB variables is updated, it also updates my variables within
>the code.
>
>
>mib.add(newMibLeaf("1.3.6.1.4.1.12807.3.1.2.1.0",READWRITE,newSnmpInt3
>2(MyVar)));
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>    Pablo Alberto Martinez
>Desarrollo de Sistemas
>Grupo Slots
>
>   Granadero P. Olguin s/n | D5700
>Cuidad de San Luis | Provincia de San Luis
>Tel.: (+54) 266-4530816
>pmartinez at slotsmachines.com.ar
>www.gruposlots.com.ar [1]
>
>
>
>
>Este mensaje y sus anexos son confidenciales, por favor lea nuestra
>Declaración de Privacidad [2].
>   IMPRIMA SI ES NECESARIO. CUIDEMOS EL MEDIO AMBIENTE
>
>Links:
>------
>[1] http://www.gruposlots.com.ar
>[2] http://gruposlots.com.ar/declaracion_privacidad.php
>
>
>
>_______________________________________________
>AGENTPP mailing list
>AGENTPP at agentpp.org
>https://oosnmp.net/mailman/listinfo/agentpp
>
>This mail has originated outside your organization, either from an external
>partner or the Global Internet.
>Keep this in mind if you answer this message.
>


This email (including any attachments) may contain confidential and/or privileged information or information otherwise protected from disclosure. If you are not the intended recipient, please notify the sender immediately, do not copy this message or any attachments and do not use it for any purpose or disclose its content to any person, but delete this message and any attachments from your system. Airbus Defence and Space Limited disclaims any and all liability if this email transmission was virus corrupted, altered or falsified.
-o-
Emails to Airbus Defence and Space Limited may be processed, recorded and monitored outside the UK.
-o-
Airbus Defence and Space Limited, Registered in England and Wales No. 2449259
Registered Office: Gunnels Wood Road, Stevenage, Hertfordshire, SG1 2AS, England


More information about the AGENTPP mailing list