On Wed, 8 Sep 2004, Sitaraman .V.R wrote: Hi, I apologise, that was a cut and paste mistake. When i actually ran it, it WAS 3. Therefore, it appears in certain situations when i have a struct Variable3 I run into a problem. I made a couple more observations, I am attaching them. Let me know if you need me to do more looking into. I will send the Log files for these too if you need. Thanks Sitaraman > > > > > > > > On Tue, 7 Sep 2004, Dave Shield wrote: > > > > {LABCALLSINDEX, ASN_INTEGER, RONLY, var_example, 2, {18,1,1}} > > > > That line is wrong. > > You've got 3 subidentifiers in the list, > > so the length must be declared as 3 > > > > Try > > {LABCALLSINDEX, ASN_INTEGER, RONLY, var_example, 3, {18,1,1}} > > > > Dave > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by BEA Weblogic Workshop > > FREE Java Enterprise J2EE developer tools! > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > > _______________________________________________ > > Net-snmp-users mailing list > > [EMAIL PROTECTED] > > Please see the following page to unsubscribe or change other options: > > https://lists.sourceforge.net/lists/listinfo/net-snmp-users > >
Case1:
Code: struct variable3 example_variables[] = { {EXAMPLESTRING, ASN_OCTET_STR, RONLY, var_example, 1, {1}}, #if 0 {EXAMPLETIMETICKS, ASN_TIMETICKS, RONLY, var_example, 1, {2}}, {EXAMPLEIPADDRESS, ASN_IPADDRESS, RONLY, var_example, 1, {3}}, {EXAMPLECOUNTER, ASN_COUNTER, RONLY, var_example, 1, {4}}, {EXAMPLEGAUGE, ASN_GAUGE, RONLY, var_example, 1, {5}}, {EXAMPLETRIGGERTRAP, ASN_INTEGER, RWRITE, var_example, 1, {6}}, {EXAMPLETRIGGERTRAP2, ASN_INTEGER, RWRITE, var_example, 1, {7}}, {LABSTRING, ASN_OCTET_STR, RONLY, var_example, 1, {8}}, #endif {LABCALLSINDEX, ASN_INTEGER, RONLY, var_example, 3, {2,1,1}}, {EXAMPLETIMETICKS, ASN_TIMETICKS, RONLY, var_example, 1, {9}} }; Results: Agent Starts Log File is snmpdLogCase1.txt Case2: Code: struct variable3 example_variables[] = { {EXAMPLESTRING, ASN_OCTET_STR, RONLY, var_example, 1, {1}}, {EXAMPLETIMETICKS, ASN_TIMETICKS, RONLY, var_example, 1, {2}}, {EXAMPLEIPADDRESS, ASN_IPADDRESS, RONLY, var_example, 1, {3}}, {EXAMPLECOUNTER, ASN_COUNTER, RONLY, var_example, 1, {4}}, {EXAMPLEGAUGE, ASN_GAUGE, RONLY, var_example, 1, {5}}, {EXAMPLETRIGGERTRAP, ASN_INTEGER, RWRITE, var_example, 1, {6}}, {EXAMPLETRIGGERTRAP2, ASN_INTEGER, RWRITE, var_example, 1, {7}}, {LABSTRING, ASN_OCTET_STR, RONLY, var_example, 1, {8}}, {LABCALLSINDEX, ASN_INTEGER, RONLY, var_example, 3, {2,1,1}}, {EXAMPLETIMETICKS, ASN_TIMETICKS, RONLY, var_example, 1, {9}} }; Results: Agent Does Not Start Log file is snmpdLogCase2.txt Case3: Code struct variable3 example_variables[] = { {EXAMPLESTRING, ASN_OCTET_STR, RONLY, var_example, 1, {1}}, {EXAMPLETIMETICKS, ASN_TIMETICKS, RONLY, var_example, 1, {2}}, #if 0 {EXAMPLEIPADDRESS, ASN_IPADDRESS, RONLY, var_example, 1, {3}}, {EXAMPLECOUNTER, ASN_COUNTER, RONLY, var_example, 1, {4}}, {EXAMPLEGAUGE, ASN_GAUGE, RONLY, var_example, 1, {5}}, {EXAMPLETRIGGERTRAP, ASN_INTEGER, RWRITE, var_example, 1, {6}}, {EXAMPLETRIGGERTRAP2, ASN_INTEGER, RWRITE, var_example, 1, {7}}, {LABSTRING, ASN_OCTET_STR, RONLY, var_example, 1, {8}}, #endif {LABCALLSINDEX, ASN_INTEGER, RONLY, var_example, 3, {2,1,1}}, {EXAMPLETIMETICKS, ASN_TIMETICKS, RONLY, var_example, 1, {9}} }; Result: Agent Starts Log file snmpdLogCase3.txt