Hello List,

I am trying to write a agent / dynamic module for the satellite card
adapter parameters.

c program - autogenerated code using mib2ctool mib2c.int_watch.conf

I am trying to set value for multiple scalars and assigning the oids to
them as follows. This part is working but now I want to do following : add
loop for multiple adapters, call this code so that the oids get assigned
according to the adapter# and variable#

{ 1, 3, 6, 1, 4, 1, 4282, 13, adapter#, variable# };


How do I go about doing this? Is this the right approach?

Thanks,
skm


static int  dvbstatus = 2;
static char dvbname[256];
static long dvbsignal = 0;
static long dvbsnr = 0;
static long dvbber = 0;
static long dvbunc = 0;  (and so on...  , the variable are actually
uint32_t, uint16_t data types in c)

        static oid      dvbstatus_oid[] = { 1, 3, 6, 1, 4, 1, 4282, 13, 2,
1 };
        static oid      dvbname_oid[] = { 1, 3, 6, 1, 4, 1, 4282, 13, 2, 2
};
        static oid      dvbsignal_oid[] = { 1, 3, 6, 1, 4, 1, 4282, 13,
2, 3 };
        static oid      dvbsnr_oid[] = { 1, 3, 6, 1, 4, 1, 4282, 13, 2, 4 };
        static oid      dvbber_oid[] = { 1, 3, 6, 1, 4, 1, 4282, 13, 2, 5 };
        static oid      dvbunc_oid[] = { 1, 3, 6, 1, 4, 1, 4282, 13, 2, 6 };
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to