Hi Wes,

I submitted 1723611 for the new RMON alarmTable code. I also have some
update bug report on netsnmp_iquery_pdu_session().

I changed to use netsnmp_iquery_pdu_session() instead of
netsnmp_iquery_user_session() by switching #if 0 to 1 at the end of
alarmTable.c.
(See attached file: alarmTable.c)
It seems netsnmp_iquery_pdu_session() only works with pdu of
SNMP_VERSION_3, the following sequence works fine to generate alarmRising
notification.

snmpset -v3 -ufoo 10.1 eventStatus.1 i 2
snmpset -v3 -ufoo 10.1 eventStatus.1 i 1
snmpset -v3 -ufoo 10.1 eventType.1 i 4
snmpset -v3 -ufoo 10.1 alarmStatus.1 i 3
snmpset -v3 -ufoo 10.1 alarmVariable.1 o ifInOctets.3
snmpset -v3 -ufoo 10.1 alarmStatus.1 i 1

But it doesn't work with pdu of SNMP_VERSION_2c, the following sequence
caused infinite loop.

snmpset -v2c -cprivate 10.1 eventStatus.1 i 2
snmpset -v2c -cprivate 10.1 eventStatus.1 i 1
snmpset -v2c -cprivate 10.1 eventType.1 i 4
snmpset -v2c -cprivate 10.1 alarmStatus.1 i 3
snmpset -v2c -cprivate 10.1 alarmVariable.1 o ifInOctets.3
snmpset -v2c -cprivate 10.1 alarmStatus.1 i 1

Since the debug log(attached at the end of the email) looks so similar to
internal query for delegated objects, only this time it is not delegated
object but the query session is derived from SNMP_VERSION_2c pdu, I suspect
there  may be some problem in internal query session creation.

Emi Yanagi

-------- Debug log --------------------------------------
sess_select: for all sessions: 13 (to in 1179849204.71662 sec) 11 10 9 8 5
6 3
sess_select: next alarm 0.1 sec
verbose:sess_select: timer due *real* soon. 1 usec
verbose:sess_select: setting timer to 0.1 sec, clear block (was 1)
sess_read: not reading 13 (fdset 0x7fc1a540 set 0)
sess_read: not reading 11 (fdset 0x7fc1a540 set 0)
sess_read: not reading 10 (fdset 0x7fc1a540 set 0)
sess_read: not reading 9 (fdset 0x7fc1a540 set 0)
sess_read: not reading 8 (fdset 0x7fc1a540 set 0)
sess_read: not reading 5 (fdset 0x7fc1a540 set 0)
sess_read: not reading 6 (fdset 0x7fc1a540 set 0)
snmp_agent: agent_sesion 0x1010c530 created
verbose:asp: asp 0x1010c530 reqinfo 0x100f5e98 created
snmp_agent: REMOVE session == 0x1010c530
snmp_agent: agent_session 0x1010c530 released
verbose:asp: asp 0x1010c530 reqinfo 0x100f5e98 freed
sess_select: for all sessions: 13 (to in 1179849204.71662 sec) 11 10 9 8 5
6 3
sess_select: next alarm 0.1 sec
verbose:sess_select: timer due *real* soon. 1 usec
verbose:sess_select: setting timer to 0.1 sec, clear block (was 1)
sess_select: for all sessions: 13 (to in 1179849204.71662 sec) 11 10 9 8 5
6 3
sess_select: next alarm 0.1 sec
verbose:sess_select: timer due *real* soon. 1 usec
verbose:sess_select: setting timer to 0.1 sec, clear block (was 1)




                                                                           
             Wes Hardaker                                                  
             <[EMAIL PROTECTED]                                             
             ourceforge.net>                                            To 
                                       [EMAIL PROTECTED]              
             05/22/2007 11:29                                           cc 
             AM                        [EMAIL PROTECTED] 
                                       et                                  
                                                                   Subject 
                                       Re: New Rmon alarmTable implemented 
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




>>>>> "EY" == Emi Yanagi <[EMAIL PROTECTED]> writes:

EY> I would like to contribute my alarmTable code to net-snmp-coders,
EY> in hoping to receive some helps from Net-SNMP experts to resolve
EY> the internal query for delegated objects problem, also reported in
EY> net-snmp-Bugs-1689163.

Thanks very much for contributing to the rmon code!  It certainly
needed work.

If possible, please always submit your patches to our patch database
so we can properly track them and ensure we can't forget about it!

  http://www.net-snmp.org/patches/

--
Wes Hardaker
Sparta, Inc.

Attachment: alarmTable.c
Description: Binary data

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to