Hi,

I am running the net-snmp 5.1.1 release in Linux enviornment and facing some problems. 
Please find below the following issues on net-snmp and let me know, is this a bug or 
not??



Problem 1:  HrMemorySize problem :

I am running the net-snmp 5.1.1 release in Linux enviornment and
facing some problem with the hrMemorySize scalar. It is returning the
value as -4 such as follows:

snmpwalk -c public -v1 10.50.127.100:161 hrMemorySize
HOST-RESOURCES-MIB::hrMemorySize.0 = INTEGER: -4 KBytes

Also, I tried to debug the problem and found that the sysconf is
returning -1. Refer file hr_storage.c and the lines are:  


#ifdef _SC_PHYS_PAGES
    physmem = sysconf(_SC_PHYS_PAGES);
    snmp_log(LOG_INFO, "inside _SC_PHYS_PAGES macro %ld\n",
physmem);
#else
#ifdef dynix
    physmem = sysconf(_SC_PHYSMEM);
#else
    auto_nlist(PHYSMEM_SYMBOL, (char *) &physmem, sizeof(physmem));
#endif
#endif


In the above, sysconf call will return "long" value. But in
net-snmp code, we declare the datatype for the variable
"physmem" as "static int". This is wrong. In my
code, I changed the declaration to "static long" for
"physmem" and tried. I still getting the same value -1. 

Do we need to do anything apart from that or is this a bug? Also, I
downloaded the latest code from the repository and the problem is
reproduceable. Anyone faced the same problem?


Problem 2 : UCD-SNMP-MIB getnext problem


I am running the below test case using the SilverCreek and getting the following 
errors. Please let me know does anyone face this similar problem? Also, let me know, 
is there any patch/fix available in the repository for this :


== 3.07 - 1.1.5 ~ SNMP Protocol Chapter 1.0 Test 1.1.5 - FAIL->FAIL
>> In Test Suite: 1.0: SNMPv1 Tests for All MIBs Loaded
>> 1.1.5   The purpose of this test is to verify that the agent can perform
>> lexicographic ordering with large Instance-ID's on each variable returned in test
>> 1.1.2.  Implementations using less than 32 bit unsigned arithmetic will fail
>> this test.
>> This test replaces one identifier in the Instance-ID each iteration with (2^32-1)
>> or 4,294,967,295 and issues a GET-NEXT from the resulting OID.
>> The expected outcome is for the agent to return the first variable greater than
>> the argument.
>> Reference    RFC 1157 § 4.1.3 
See "Details for Test 1.1.5"
[FAILED] Remarks: get-next operation failed or had errors
[FAILED] Remarks: get-next operation failed or had errors
Lexicographic error detected in response to get-next
Request OID 1.3.6.1.4.1.2021.10.1.1.4294967295 identical to response OID
Test Packet Sent: 
Operation: next     ; varBinds: 1.3.6.1.4.1.2021.10.1.1.4294967295
Received Message Data {
Error-Status: noError,
        Error-Index : 0,
        Bindings {
                SNMPv2-SMI:enterprises.2021.10.1.1.4294967295,
                        INTEGER,
                        "-1"
        }
}

Few more informations on the above :

I am using net-snmp 5.1.1 in linux and this problem arises for the get-next operation 
done for the attribute "laIndex" with the index 4294967295.


Problem 3:tooBig response problem - agent dies


The below test case is failing when we test it using SilverCreek. We are using 
net-snmp5.1.1 in linux and running this test case. The agent should handle properly 
when the maximum message size assigned in the agent ( as macro value) with the proper 
error condition when the response packets size is more than the declared size. But, 
the agent dies when we run this test case.


3.42 - 1.1.12.9 ~ SNMP Protocol Chapter 1.0 Test 1.1.12.9 - FAIL->FAIL
>> In Test Suite: 1.0: SNMPv1 Tests for All MIBs Loaded
>> 1.1.12.x   The purpose of these tests is to verify that the agent can handle
>> message boundary conditions correctly.
>> 1.1.12.9   This test issues a GET Request and a GET-NEXT request on a large
>> number of variable bindings so as to force a tooBig response.
>> The expected outcome is for the agent to return tooBig or noError.
>> Reference  RFC 1157 § 4.1, 4.1.2, 4.1.3, 4.1.5
See "Details for Test 1.1.12.9"
[FAILED] Remarks: 
 [FAILED] Remarks: 
 Received Message Data {
        Error-Status: timeout,
 }
[WARNING] Remarks: System might have rebooted during the test.


Please let me know, anyone faces this problem? Also, is there any patch/fix available 
for this problem already?



Problem 4: Error while sending invalid varbind list to the agent

We ar using net-snmp 5.1.1 release in Linux and facing the below problem when the run 
it using silverCreek.


3.45 - 1.1.14 ~ SNMP Protocol Chapter 1.0 Test 1.1.14 - FAIL->FAIL
 >> In Test Suite: 1.0: SNMPv1 Tests for All MIBs Loaded
 >> 1.1.14   The purpose of this test is to determine if the agent handles
 >> protocol boundary conditions correctly.
 >> This test sends an unsolicited response PDU, a v1 trap PDU (containing incorrect
 >> ASN.1 BER encoding in varbinds part) and an invalid PDU to the agent.
 >> The expected outcome is for the agent to drop the message and increment
 >> snmpInASNParseErrs for invalid PDU type.  The test will issue a warning if the
 >> agent does not increment snmpInASNParseErrs (or snmpUnknownPDUHandlers if
 >> implemented in a multi-lingual agent) for the unsolicited response and trap PDU
 >> types.
 >> Reference  RFC 1157 § 4.1, 4.1.2, 4.1.3, 4.1.5
 See "Details for Test 1.1.14"
 [FAILED] Remarks: agent returned noError for xxx
 [FAILED] Remarks: agent returned noError for xxx
 Received Message Data {
        Error-Status: noError,
        Error-Index : 0,
        Bindings {
                SNMPv2-MIB:sysUpTime.0,
                        TimeTicks,
                        "0"
                SNMPv2-MIB:snmpTrapOID.0,
                        ObjectID,
                        "1.3.6.1.6.3.1.1.5.1"
        }
 }


Thanks for your help.


Regards,
Karthik. N
-- 
______________________________________________
IndiaInfo Mail - the free e-mail service with a difference! www.indiainfo.com 
Check out our value-added Premium features, such as an extra 20MB for mail storage, 
POP3, e-mail forwarding, and ads-free mailboxes!

Powered by Outblaze


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to