Hi,

I've been testing the v2c implementation of this current release
using SilverCreek. In order to test full R/W access from a remote
machine, I had my public group set to R/W also.
On one of SilverCreek's tests, entitled: "SET read-write objects",
it seems that NET-SNMP failed to handle SET instructions involving
erroneous data.
What happened is that "snmpd" crashed when SilverCreek tried to SET
(perhaps, invalid) values into the server. Here are test log details
of what SilverCreek is doing when the crash occurred. Included also
is the generated /var/log/snmpd.log.

--------------------------------------------------

sysDescr: Test Machine                   [192.168.63.119:SNMPv2c]
2.4.x   The purpose of these tests is to verify that the agent
returns the correct error-status when the test intentionally
writes variables.  The tests are run on each of the read-write
variables returned in 2.1.2.1.

2.4.1   This test issues SET using the current value of the variable.

The expected outcome is for the agent to return noError.
(Note: some objects with peculiar semantics, e.g. tcpConnState,
will return wrongValue instead of noError).

Reference       RFC 1905 � 4.2.5
 Details for Test 2.4.1
[FAILED] Remarks: SET on 1.3.6.1.2.1.2.2.1.7.1  ifAdminStatus

[FAILED] Remarks: SET on 1.3.6.1.2.1.2.2.1.7.1  ifAdminStatus

Received Message Data {
        Error-Status: notWritable,
        Error-Index : 1,
        Bindings {
                ifAdminStatus.1,
                        INTEGER,
                        "1"
        }
}

[FAILED] Remarks: SET on 1.3.6.1.2.1.2.2.1.7.2  ifAdminStatus

Received Message Data {
        Error-Status: notWritable,
        Error-Index : 1,
        Bindings {
                ifAdminStatus.2,
                        INTEGER,
                        "1"
        }
}

[FAILED] Remarks: SET on 1.3.6.1.2.1.3.1.1.2.2.1.192.168.63.105
atPhysAddress

Received Message Data {
        Error-Status: notWritable,
        Error-Index : 1,
        Bindings {
                atPhysAddress.2.1.192.168.63.105,
                        OctetString,
                        "0x08:00:46:0e:21:82"
        }
}

[FAILED] Remarks: SET on 1.3.6.1.2.1.4.1.0  ipForwarding

Received Message Data {
        Error-Status: notWritable,
        Error-Index : 1,
        Bindings {
                ipForwarding.0,
                        INTEGER,
                        "2"
        }
}

[FAILED] Remarks: SET on 1.3.6.1.2.1.4.2.0  ipDefaultTTL

Received Message Data {
        Error-Status: notWritable,
        Error-Index : 1,
        Bindings {
                ipDefaultTTL.0,
                        INTEGER,
                        "64"
        }
}

[FAILED] Remarks: SET on 1.3.6.1.2.1.4.21.1.2.127.0.0.0  ipRouteIfIndex

Received Message Data {
        Error-Status: resourceUnavailable,
        Error-Index : 1,
        Bindings {
                ipRouteIfIndex.127.0.0.0,
                        INTEGER,
                        "2"
        }
}

[FAILED] Remarks: SET on 1.3.6.1.2.1.4.21.1.2.192.168.63.0  ipRouteIfIndex

Received Message Data {
        Error-Status: resourceUnavailable,
        Error-Index : 1,
        Bindings {
                ipRouteIfIndex.192.168.63.0,
                        INTEGER,
                        "2"
        }
}

[FAILED] Remarks: SET on 1.3.6.1.2.1.4.21.1.3.0.0.0.0 ipRouteMetric1

Received Message Data {
        Error-Status: wrongValue,
        Error-Index : 1,
        Bindings {
                ipRouteMetric1.0.0.0.0,
                        INTEGER,
                        "1"
        }
}

[ERROR] Remarks: An unexpected error occurred

ECONNRESET
TclSNMPContext::Eval()
RecvMessage()

[ERROR] Remarks: An unexpected error occurred

ECONNRESET
TclSNMPContext::Eval()
RecvMessage()

[ERROR] Remarks: An unexpected error occurred

ECONNRESET
TclSNMPContext::Eval()
RecvMessage()

[FAILED] Remarks: SET on 1.3.6.1.2.1.4.21.1.3.127.0.0.0  ipRouteMetric1

Received Message Data {
        Error-Status: timeout,
}

[ERROR] Remarks: An unexpected error occurred

ECONNRESET
TclSNMPContext::Eval()
RecvMessage()

[ERROR] Remarks: An unexpected error occurred

ECONNRESET
TclSNMPContext::Eval()
RecvMessage()

[ERROR] Remarks: An unexpected error occurred

ECONNRESET
TclSNMPContext::Eval()
RecvMessage()

[ERROR] Remarks: An unexpected error occurred

ECONNRESET
TclSNMPContext::Eval()
RecvMessage()

[ERROR] Remarks: An unexpected error occurred

ECONNRESET
TclSNMPContext::Eval()
RecvMessage()

[ERROR] Remarks: An unexpected error occurred

ECONNRESET
TclSNMPContext::Eval()
RecvMessage()

[ERROR] Remarks: An unexpected error occurred

ECONNRESET
TclSNMPContext::Eval()
RecvMessage()

[ERROR] Remarks: An unexpected error occurred

ECONNRESET
TclSNMPContext::Eval()
RecvMessage()


--------------------------------------------------
/var/log/snmpd.log
--------------------------------------------------

NET-SNMP version 5.1.2.pre2
not string
not string
not string
not right2not right2not right2not int1not int1not int1not right4not
right4not right4not right6not right6not right6not right6not right6not
right6not print ff
not print ff
not print ff
not print d
not print d
not print d
bad length
bad length
bad length
newCacheRTEnewCacheRTEnewCacheRTEnewCacheRTEnot right4not
right4newCacheRTEnewCacheRTEnewCacheRTEnewCacheRTEnewCacheRTEnot right4not
right4newCacheRTEnewCacheRTEnewCacheRTEnot string
not string
not string
not right2not right2newCacheRTEnewCacheRTEnot int1not
int1newCacheRTEnewCacheRTEnot right4not
right4newCacheRTEnewCacheRTEnewCacheRTEnewCacheRTEnot string
not string
not string
not right2not right2newCacheRTEnewCacheRTEnot int1not
int1newCacheRTEnewCacheRTEnot right4not
right4newCacheRTEnewCacheRTEnewCacheRTEnewCacheRTEbad type returned (24)
bad type returned (24)
bad type returned (24)
bad type returned (24)
bad type returned (24)
bad type returned (24)
bad type returned (24)
bad type returned (24)
bad type returned (24)
bad type returned (24)
bad type returned (24)
bad type returned (24)
bad type returned (24)
bad type returned (24)
bad type returned (24)
bad type returned (24)
bad type returned (24)
bad type returned (24)
bad type returned (24)
bad type returned (24)
Bad PDU type received: 0x42
Bad PDU type received: 0x42
Bad PDU type received: 0x42
Bad PDU type received: 0x42
newCacheRTEnewCacheRTEreserve2 failed

---------------------------------------------

Best Regards,
Vic
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.672 / Virus Database: 434 - Release Date: 4/28/2004



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
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

Reply via email to