Re: Responding to MODE_GET

2008-05-04 Thread Dave Shield
[Sorry for the delay in responding to this] 2008/4/3 Christer Ekholm <[EMAIL PROTECTED]>: > I am learning to coding MIBs. My problem is that my module is not answering > to MODE_GET message. Here is code [snip] > Here is snmp agent output > > NET-SNMP version 5.0.9 > nstAgentPluginObject2:

Re: Check to prevent snmp request/response oid length more than 128 subids

2008-05-04 Thread Dave Shield
2008/5/3 saifulla Mohd Abdul <[EMAIL PROTECTED]>: > Hi, > The while loop which extracts subids ( while (length > 0 && (*objidlength)-- > > 0) { ... > in asn_parse_objid()) makes *objidlength = -1 for OIDs that contain more than > 128 subids. > So need "*objidlenth = MAX_OID_LEN;" inside if(0!=N

Re: snmpd.conf problem...

2008-05-04 Thread Dave Shield
2008/5/4 Amit Kumar <[EMAIL PROTECTED]>: > I followed the same procedure but still it is removing the line from > /var/net-snmp/snmpd.conf . > 1. killall snmpd What is in the file /var/net-snmp/snmpd.conf after having done this? I'd also suggest you run the command ps -ef | grep snm

Re: snmpd.conf problem...

2008-05-04 Thread Amit Kumar
Dave , I followed the same procedure but still it is removing the line from /var/net-snmp/snmpd.conf . 1. killall snmpd 2. run the net-snmp-config --create-snmpv3-user -ro -A authpass -X privpass -a MD5 -x DES username  it is giving me the  following errors : adding the following lin