RE: SNMP-COMMUNITY-MIB security question

2008-04-22 Thread Emi Yanagi
i -Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Friday, April 18, 2008 4:56 PM To: Emi Yanagi Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: SNMP-COMMUNITY-MIB security question On 18/04/2008, Emi Yanagi <[EMAIL PROTECTE

RE: SNMP-COMMUNITY-MIB security question

2008-04-21 Thread Emi Yanagi
Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Friday, April 18, 2008 4:56 PM To: Emi Yanagi Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: SNMP-COMMUNITY-MIB security question On 18/04/2008, Emi Yanagi <[EMAIL PROTECTED]> wrot

RE: SNMP-COMMUNITY-MIB security question

2008-04-18 Thread Emi Yanagi
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Friday, April 18, 2008 4:19 PM To: Emi Yanagi Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: SNMP-COMMUNITY-MIB security question On 18/04/2008, Emi Yanagi <[EMAIL PROTECTED]> wrote: > It seems there could be a

SNMP-COMMUNITY-MIB security question

2008-04-18 Thread Emi Yanagi
Dear net-snmp-coders, I have a question on SNMP-COMMUNITY-MIB security that I need you experts' advice. It seems there could be a security hole in snmpCommunityTable. What if a user who only has access to read-only community name "public", used it to walk through snmpCommunityName, which w

[ net-snmp-Bugs-1814048 ] snmpgetnext bug on "no instance" object

2008-04-18 Thread Emi Yanagi
Hi Dave, I saw you opened Bugs item #1814048. Is there any update on this one: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1814048&gro up_id=12694 Thanks Emi -Original Message----- From: Emi Yanagi Sent: Tuesday, April 15, 2008 4:21 PM To: 'Magnus Fromre

RE: Where is the patch for [ net-snmp-Bugs-1758212 ]notification-log agent does not support all variable types

2008-04-15 Thread Emi Yanagi
ogVariableValueType.0.2.1 RFC1155-SMI::enterprises.2021.10.1.1.1 = INTEGER: 1 # Thanks for your support. Emi -Original Message- From: Magnus Fromreide [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 15, 2008 2:50 PM To: Emi Yanagi Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: Where is the

Where is the patch for [ net-snmp-Bugs-1758212 ] notification-log agent does not support all variable types

2008-04-15 Thread Emi Yanagi
Hi Dave, I am glad to know this bug was fixed, but I couldn't find the patch. Could you please point me where I can download the patch for 5.3.1. I am using Net-SNMP 5.3.1. Thanks for your support. Best regards, Emi

RE: trap2sink IPv6 support

2007-11-20 Thread Emi Yanagi
fyRestart The trap2sink in my snmpd.conf are: trap2sink localhost notify 162 trap2sink udp6:[::1]:162 notify 162 Emi -Original Message----- From: Emi Yanagi Sent: Thursday, November 15, 2007 4:33 PM To: net-snmp-coders@lists.sourceforge.net Subject: trap2sink IPv

trap2sink IPv6 support

2007-11-15 Thread Emi Yanagi
Dear net-snmp-coders, I tried the following syntax but neither worked for me. trap2sink udp6:[fe80::214:22ff:fe7b:fca2]:162 trap2sink udp6:'[fe80::214:22ff:fe7b:fca2]':162 trap2sink with IPv4 address works just fine. How to specify trap2sink with IPv6? Thanks for your support. Emi

RE: Failed to query IPv6 enabled snmpd remotely

2007-11-07 Thread Emi Yanagi
- From: Mitsuru Chinen [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 06, 2007 5:01 PM To: Emi Yanagi Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: Failed to query IPv6 enabled snmpd remotely On Tue, 6 Nov 2007 08:06:16 -0800 "Emi Yanagi" <[EMAIL PROTECTED]> wrote: >

RE: Failed to query IPv6 enabled snmpd remotely

2007-11-06 Thread Emi Yanagi
, November 06, 2007 10:11 AM To: Emi Yanagi Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: Failed to query IPv6 enabled snmpd remotely On 06/11/2007, Emi Yanagi <[EMAIL PROTECTED]> wrote: > $ snmpwalk udp6:'[fe80::200:50ff:fe3d:7aac]':161 sysUpTime > SNMPv2-MIB::sysUpTime.0

RE: Failed to query IPv6 enabled snmpd remotely

2007-11-06 Thread Emi Yanagi
] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Monday, October 29, 2007 6:09 AM To: Emi Yanagi Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: Failed to query IPv6 enabled snmpd remotely On 24/10/2007, Emi Yanagi <[EMAIL PROTECTED]> wrote: > But when I query remotely from

Failed to query IPv6 enabled snmpd remotely

2007-10-24 Thread Emi Yanagi
at was missing then? Thanks for your support. Emi Yanagi - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJA

RE: When there is "no instance" object in a table, snmpgetnext skip the rest of the objects in the table and search for the next table

2007-10-15 Thread Emi Yanagi
I submitted 1814048 for this bug. Emi -Original Message- From: Robert Story [mailto:[EMAIL PROTECTED] Sent: Monday, October 15, 2007 12:07 PM To: Emi Yanagi Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: When there is "no instance" object in a table, snmpgetnext skip t

RE: When there is "no instance" object in a table, snmpgetnext skip the rest of the objects in the table and search for the next table

2007-10-15 Thread Emi Yanagi
ntion ;-) Please fix it. Best regards, Emi -Original Message- From: Robert Story [mailto:[EMAIL PROTECTED] Sent: Monday, October 15, 2007 10:06 AM To: Emi Yanagi Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: When there is "no instance" object in a table, snmpgetnext skip

RE: When there is "no instance" object in a table, snmpgetnext skip the rest of the objects in the table and search forthe next table

2007-09-06 Thread Emi Yanagi
0x7f9a9db4) at snmpd.c:1011 (gdb) Thanks Emi From: Jayaprakasha Guddenahalli Naganna [mailto:[EMAIL PROTECTED] Sent: Thursday, September 06, 2007 2:19 AM To: Emi Yanagi; net-snmp-coders@lists.sourceforge.net Subject: RE: When there is "no instance" object in a table,snmpgetnext skip

RE: When there is "no instance" object in a table, snmpgetnext skip the rest of the objects in the table and search for the next table

2007-09-06 Thread Emi Yanagi
ble:results: found 2 indexes helper:table:results: column: 4, indexes: 2 index: type=4(04), value="" index: type= 66(42), value=Gauge32: 1 Thanks Emi -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Thursday, September 06, 2007 4:

When there is "no instance" object in a table, snmpgetnext skip the rest of the objects in the table and search for the next table

2007-09-05 Thread Emi Yanagi
-MIB::nlmLogVariableID."".3.1 = OID: SNMPv2-MIB::sysUpTime.0 Any idea how to improve snmpgetnext in this case? Emi Yanagi - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files

RE: snmpCommunityTable support implemented

2007-08-22 Thread Emi Yanagi
snmpTargetAddrExtTable. Unfortunately, the MIB itself and RFC didn't give me enough understanding how these objects suppose to work. Thanks in advance for any insight. Emi -Original Message- From: Thomas Anders [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 22, 2007 9:41 AM To: Emi Yana

snmpCommunityTable support implemented

2007-08-09 Thread Emi Yanagi
are not implemented yet, but I think they could be done by calling UDP6/UNIX _getsnmpCommunity functions from vacm_conf.c in the same way as I have done with UDP. Plesae let me know if the snmpCommunityTable implementation is acceptable, I welcome any feedbacks. Best

netsnmp_table_data_add_row() problem

2007-07-19 Thread Emi Yanagi
populations below. Please advice how to fix or work around this problem. I need to make this part work for our customers. Thanks for your support. Emi Yanagi -Original Message- From: Nobody [mailto:[EMAIL PROTECTED] On Behalf Of SourceForge.net Sent: Thursday, July 19, 2007 2:36 PM To

Re: NOTIFICATION-LOG-MIB status

2007-07-11 Thread Emi . Yanagi
able NOTIFICATION-LOG-MIB::nlmLogVariableTable = No Such Object available on this agent at this OID Is there anyone actually see this working? Thanks for your support. Emi

NOTIFICATION-LOG-MIB status

2007-07-11 Thread Emi . Yanagi
Dear net-snmp-coders, It seems NOTIFICATION-LOG-MIB in 5.3.1 is only partially implemented. That is, only nlmLogTime and nlmLogDateAndTime are supported. The rest of nlmLogTable objects as well as other tables: nlmConfigLogTable nlmStatsLogTable nlmLogVariableTable are not implemente

[ net-snmp-Patches-1737439 ] on linkUp/linkDown traps generation

2007-06-14 Thread Emi . Yanagi
Dear net-snmp-coders, I submitted a patch for linkUp/linkDown traps generation. It also fixed ifLinkUpDownTrapEnable effectiveness. Regards, Emi Yanagi - This SF.net email is sponsored by DB2 Express Download DB2 Express

Re: How to support subagent.conf update

2007-06-01 Thread Emi . Yanagi
Hi Robert, I have another CLI process to control enable/disable the subagent traps configuration. Currently I made the CLI work by snmpset the trap configuration objects and save the p tokens in the permanent subagent .conf file. This is working successfully to turn on/off subagent traps generatio

Re: How to support subagent.conf update

2007-05-30 Thread Emi . Yanagi
Hi Dave, The subagent framework is from mib2c.mfd.conf, I added snmpd_register_config_handler() by myself so it can read from subagent .conf file and save the p tokens to permanent subagent .conf file. That part is working successfully. I'm just wondering if there is a way to automatically re-rea

How to support subagent.conf update

2007-05-30 Thread Emi . Yanagi
.conf is updated, how to make the subagent read the new configuration without restart the subagent application? Thanks for your support. Emi Yanagi - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the

Re: New Rmon alarmTable implemented

2007-05-24 Thread Emi . Yanagi
Dave, Thank you. I've been struggling with this problem for quite a while and couldn't go any further, now I finally see some hope ;-) Emi "Dave Shield"

Re: New Rmon alarmTable implemented

2007-05-24 Thread Emi . Yanagi
Thanks for the comments. I tested INTEGER case of course, but not COUNTER64 case. I should remove it for now, although I don't think it's too hard to adjust for COUNTER64. Emi Magnus Fromreide

Re: New Rmon alarmTable implemented

2007-05-24 Thread Emi . Yanagi
Dave, The reason for my implementing RMON is that my customers want it, not that to reproduce the DISMAN-EVENT-MIB problem. If you agreed it's an important one to fix internal queries over a delegated session, please concentrate on fixing it. I'd be glad to help but it's so deep into AgentX proto

netsnmp_iquery_pdu_session() with v2c pdu didn't work

2007-05-23 Thread Emi . Yanagi
Subject Re: New Rmon alarmTable implemented

Re: New Rmon alarmTable implemented

2007-05-22 Thread Emi . Yanagi
gated 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 (

Fw: Internal query fails to get delegated object's value

2007-04-27 Thread Emi . Yanagi
should be then? I appreciate any helps on this, because I am really stuck =). Emi Yanagi ----- Forwarded by Emi Yanagi/Radisys_Corporation/US on 04/27/2007 03:46 PM -

Re: Internal query fails to get delegated object's value

2007-04-19 Thread Emi . Yanagi
f the analysis is correct, the resolution then is to set internal query session's callback_magic correctly, so the delegated session pointing to the internal session's callback_magic. Does it make sense? How to set callback_magic to do this in a right way? Thanks for your supp

Internal query fails to get delegated object's value

2007-04-18 Thread Emi . Yanagi
er due *real* soon. 533115 usec verbose:sess_select: setting timer to 0.533115 sec, clear block (was 0) I would like to continue debugging this problem but I need your help. I would appreciate any insight or advice on how to solve this problem. Thanks for your support.

mib2c dynamic row creation not generating _mfd_${context}_rowreq_from_index in Net-SNMP 5.3.1

2007-04-04 Thread Emi . Yanagi
creation [DEFAULT] 2) do not generate code for row creation the _mfd_${context}_rowreq_from_index( ) function is not generated. This function is called by _mfd_${context}_object_lookup( ) . Thanks for your support. Emi Yanagi

A question about SNMPERR_BAD_SENDTO error

2007-03-12 Thread Emi . Yanagi
ATCA-2210 snmpd[21197]: agent_session 0x100ef610 released I have hard time to figure out why this error occurs, and how to avoid this error. Any advices are greatly appreciated. Emi Yanagi - Take Surveys. Earn Cash. Influenc

SNMP-COMMUNITY-MIB status

2007-02-22 Thread Emi . Yanagi
Hi Dave, Thank you for sending me the patch on "error on subcontainer insert(-1)". I got it. On another thread, I have a question for you. I found the email on SNMP-COMMUNITY-MIB you wrote a year ago. I would like to know what is the status on SNMP-COMMUNITY-MIB development? Do you plan to publi

Patch for error on subcontainer insert(-1)

2007-02-20 Thread Emi . Yanagi
Hi Robert, I found the email below on "error on subcontainer insert(-1)" from net-snmp-coders emails, but I couldn't find the attached patch in the email. Would you please send me a copy of the patch, maybe provide some details? Than

Re: 5.3.1 mib2c.mfd.conf generated function xxxTable_container_load()

2007-02-20 Thread Emi . Yanagi
Mark, It seems "container-cache" is not the default anymore in 5.3.1. So when you generate mfd templates, you 'd have to choose "container-cache" in the interactive setup. Emi Mark Atwood

5.3.1 mib2c.mfd.conf generated function xxxTable_container_load()

2007-02-16 Thread Emi . Yanagi
am surprised to find 5.3.1 replaced xxxTable_cache_load() with xxxTable_container_load(), and this function is called nowhere from the generated templates. Would you please advice where to call xxxTable_container_load in the generated templates? Thanks Emi Yanagi

5.3.1 does not compile if undef LOCK_PER_CALLBACK_SUBID

2007-02-05 Thread Emi . Yanagi
LOCK_PER_CALLBACK_SUBID is not defined. Best regards Emi Yanagi - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download

snmpNotifyFilterRowStatus Segmentation Fault in 5.3.1

2007-01-28 Thread Emi . Yanagi
Dear net-snmp-coders, I was able to reproduce RowStatus segmentation fault with snmpNotifyFilterRowStatus in 5.3.1 master agent. This problem can be easily reproduced by the following steps: $ snmpset 10.1 snmpNotifyFilterRowStatus.3.65.66.67.1 i 4 SNMP-NOTIFICATION-MIB::snmpNotifyFilterRowS

Re: RowStatus type mib2c template problem

2007-01-24 Thread Emi . Yanagi
Hi Robert, Robert Story <[EMAIL PROTECTED] com>

Re: RowStatus type mib2c template problem

2007-01-18 Thread Emi . Yanagi
Hi Robert, The code was generated using 5.2.1 with mib2c.mfd.conf. I recently upgraded to Net-SNMP 5.3.1, although my subagent didn't change, the master agent and shared library are using 5.3.1. Then the reported RowStatus segmentation fault occurs. The same code didn't cause segmentation fault wi

RowStatus type mib2c template problem

2007-01-17 Thread Emi . Yanagi
quest mode get from set inside _mfd_dot1qVlanStaticTable_object_lookup, there is a way to do that. Any advice? Thanks for your support. Emi Yanagi Debug log: internal:dot1qVlanStaticTable:_mfd_dot1qVlanStaticTable_object_lookup: c

Re: Looking for the patch for fetch_var_val()

2006-10-12 Thread Emi . Yanagi
Hi Dave, I copied the netsnmp_query_xxx code from 5.3 to 5.2.1, and compiled without problem. My next question is how do I get session ID from a AgentX subagent? Since RMON support is required in our subagent, netsnmp_query_get() needs to be called from the subagent. I appreciated your advice. T

Re: Looking for the patch for fetch_var_val()

2006-10-11 Thread Emi . Yanagi
Hi Dave, Thank you for your prompt response. These netsnmp_query_xxx are really nice API supported in 5.3. Unfortunately, we are using 5.2.1 and have no plan to upgrade to 5.3. Therefore, any suggestions on doing the equivalent to get variable and its value in 5.2.1 would be greatly appreciated.

Re: Looking for the patch for fetch_var_val()

2006-10-09 Thread Emi . Yanagi
Hello Dave, Okay, I understand RMON code is unsupported by Net-SNMP. But I still have to make it work because my customers request RMON support in our SNMP agent. My questions then are the following: Is there a Net-SNMP function to get netsnmp_subtree variable and its value? If not, plea

Looking for the patch for fetch_var_val()

2006-10-06 Thread Emi . Yanagi
udpInDatagrams.0 By searching from net-snmp-coders Email Archive, I found the following email, however, I couldn't see the patch. Would you please supply the patch for fixing fetch_var_val()? Thank you very much for your support. Emi Y

Re: Net-SNMP 5.2.1, disable snmpEnableAuthenTraps does not work

2006-08-09 Thread Emi . Yanagi
Thanks, Dave! It solved the problem. Emi "Dave Shield" <[EMAIL PROTECTED] iv.ac.uk>

Re: Net-SNMP 5.2.1, disable snmpEnableAuthenTraps does not work

2006-08-09 Thread Emi . Yanagi
Hi Dave, Thank you for your prompt response. We have no plan to upgrade from 5.2.1 to 5.2.2. Do you have a patch just to fix this problem? Thanks for you support, Emi "Dave Shield"

Net-SNMP 5.2.1, disable snmpEnableAuthenTraps does not work

2006-08-08 Thread Emi . Yanagi
entOIDs.10 Please point me to a solution to this problem. Thanks for your support. Emi Yanagi - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to

ipNetToPhysicalTable problem in 5.2.1

2006-05-16 Thread Emi . Yanagi
Dear net-snmp-coders, I am reporting a problem with IP-MIB in 5.2.1. When I do "snmpwalk 10.0.0.1 ip", snmpd crashes after RFC1213-MIB::ip.35.1.4.4.4.4.10.0.0.2 = Hex-STRING: 00 14 22 7B FE 07 I know this OID is the beginning of ipNetToPhysicalTable, but I couldn't find ipNetToPhysicalTable in

With non-default contaxtName, snmpwalk populate extra line for SNMP_ENDOFMIBVIEW

2006-03-27 Thread Emi . Yanagi
Hi Robert, After I applied your patch of Feb.15,2005 to fix non-default contaxtName, I see another problem. Index: mibgroup/agentx/master_admin.c === RCS file: /cvsroot/net-snmp/net-snmp/agent/mibgroup/agentx/master_admin.c,v r

snmpget on a non-existing instance returns wrong error code in Version 5.3.0.1

2006-03-16 Thread Emi . Yanagi
Dear net-snmp-coders, In Version 5.3.0.1, snmpget on a nonexistent instance returns wrong error code "noCreation". $ snmpget localhost ifDescr.111 Error in packet Reason: noCreation (That table does not support row creation or that object can not ever be created) Failed object: IF-

A question on support IPv4 interfaces linkUp/linkDown traps

2006-03-16 Thread Emi . Yanagi
Dear net-snmp-coders, I have a question on support IPv4 interfaces linkUp/linkDown traps. I am trying to use disman/event-mib. I have a snmpd.conf that has these three line: agentSecName disman_event rouser disman_event linkUpDownNotifications yes (See attached file: snmpd.conf) But

Use ASN_PRIV_IMPLIED_OCTET_STR for string that is not the last object in the INDEX

2006-01-09 Thread Emi . Yanagi
Dear net-snmp-coders, I found a bug in parse_one_oid_index() in snmplib/mib.c, this function doesn't work when using ASN_PRIV_IMPLIED_OCTET_STR for MacAddress that is not the last object in the INDEX, for example, dot1qStaticMulticastAddress in dot1qStaticMulticastTable. Output of ASN_PRIV_IMPLI

Re: How to force a cache reload when dynamic interfaces creating/removing happen

2005-12-09 Thread Emi . Yanagi
Dear net-snmp-coders, Thanks for your replies. RS>You created a new implementation, right? No copying of the existing code? Yes, I created a new implementation using mib2c.mfd.conf, not copying of the agent/mibgroup/if-mib. RS>So what flags *are* you using? The only flag I am using is NETSNMP_CA

How to NOT populate some OID in the mib2c.mfd.conf generated subagent?

2005-12-09 Thread Emi . Yanagi
Dear net-snmp-coders, I have a question about mib2c.mfd.conf generated template. If I want to NOT populate ifOutQLen in ifTable for example, what is the graceful way to do this in the subagent? I tried to let ifOutQLen_get() return MFD_SKIP, but then if I do a "snmpwalk ifOutQLen", I got "Timeou

How to force a cache reload when dynamic interfaces creating/removing happen

2005-11-23 Thread Emi . Yanagi
Dear coders, I implemented ifTable subagent using mib2c.mfd.conf, it works great but I have some questions about CACHE. I want to trigger a cache reload only when dynamic interfaces creating/removing happen. I do not want to use cache flag NETSNMP_CACHE_AUTO_RELOAD because of performance reason.

mib2c generate BITS variable as 4-byte u_long, while dot3adAggPortPartnerAdminState actually is 1-byte

2005-09-29 Thread Emi . Yanagi
Dear coders, I used mib2c.mfd.conf generated dot3adAggPortTable template. After implemented the glue logic, everything works great on a snmpwalk. But there is a problem to set dot3adAggPortActorAdminState. According to IEEE8023-LAG mib, dot3adAggPortActorAdminState is a 8 bits string. However, mi

Implementing MODE_SET_XXX in mib2c.scalar.conf template

2005-08-18 Thread Emi . Yanagi
I finished implementing tables in BRIDGE-MIB and started implementing scalar objects. After generated mib2c template using mib2c.scalar.conf, I've got GET request work correctly for dot1dStpPriority. Now I have question about implementing SET request, what exactly I need to do in MODE_SET_RESERVE2

Re: mib2c OID type populate OID of length 4 times longer, e.g. historyControlDataSource

2005-08-10 Thread Emi . Yanagi
Hi Dave, That piece of code(lines 196-198) is generated by mib2c. In fact, besides the change mentioned in your email, there is another change needs to be done inside memcpy. I have verified the following code works correct. rowreq_ctx->data.historyControlDataSource_len = h

Re: mib2c for RMON

2005-08-09 Thread Emi . Yanagi
I used mib2c.mfd.conf for RMON. Emi ">"Fong Tsui" <[EMAIL PROTECTED]> "Fong Tsui" <[EMAIL PROTECTED]> 08/08/2005 05:40 PM To , <[EMAIL PROTECTED]> cc Subject mib2c for RMON What mib2c conf file(s) should be used for creating full RMON and RMON2 code? Thanks, FT

mib2c OID type populate OID of length 4 times longer, e.g. historyControlDataSource

2005-08-09 Thread Emi . Yanagi
Hi Robert, Using the patch you sent me on 7/25, I still have problem with mib2c generated OID type such as historyControlDataSource. See the snmpwalk result below, the populated oid length is 4 times of it should be. $ snmpwalk localhost historyControlDataSource RMON-MIB::historyControlDataSourc

Re: mib2c for oid type cause segmentation fault, e.g. etherStatsDataSource

2005-07-28 Thread Emi . Yanagi
Robert, Yes, I was running with -Dall option when "Broken pipe" happened. Then what is the condition that -Dall will not cause "Broken pipe"? If running without debug option, snmpwalk on etherStatsDataSource works okay now. Thanks for the patch, it fixed the mib2c oid type segmentation fault pro

Re: mib2c for oid type cause segmentation fault, e.g. etherStatsDataSource

2005-07-26 Thread Emi . Yanagi
Robert, I applied the patch, re-make, re-generate mib2c for etherStatsTable. It's still broke, but at different place "Broken pipe". Please see the debug messages below: $ snmpwalk localhost etherStatsTable RMON-MIB::etherStatsIndex.1 = INTEGER: 1 RMON-MIB::etherStatsIndex.2 = INTEGER: 2 RMON-MI

Re: mib2c for oid type cause segmentation fault, e.g. etherStatsDataSource

2005-07-22 Thread Emi . Yanagi
the subagent works just fine. Only when I set etherStatsDataSource_len to none-zero it causes segmentation fault. I attached the zip file with all the source code, see if you can find any problem. [attachment "etherStatsTable.zip" deleted by Emi Yanagi/Radisys_Corporation/US] Well, I

Re: mib2c for oid type cause segmentation fault, e.g. etherStatsDataSource

2005-07-21 Thread Emi . Yanagi
Robert, It's easy to reproduce the problem in two steps: 1. Generate mib2c template for etherStatsTable using mib2c.mfd.conf , mib2c -c mib2c.mfd.conf etherStatsTable 2. The only change is to add the following lines in etherStatsTable_cache_load( ) oid etherStatsDataSource[] = {1

Re: mib2c for oid type cause segmentation fault, e.g. etherStatsDataSource

2005-07-20 Thread Emi . Yanagi
This is hard-coded just as the piece of code I copy&pasted in my email. Please notice the following error happened before the error message in your email. RMON-MIB::etherStatsDataSource = Wrong Type (should be OBJECT IDENTIFIER): Variable has bad type I attached the head file etherStatsTable.h.

mib2c for oid type cause segmentation fault, e.g. etherStatsDataSource

2005-07-20 Thread Emi . Yanagi
I have implemented several subagents for BRIDGE-MIB tables using mib2c and mib2c.mfd.conf. They all worked well. Now I came across a problem with RMON-MIB etherStatsTable etherStatsDataSource which is an oid type. If I don't set etherStatsDataSource and let it be the default 0.0, the etherStatsTab

more debug information: snmpd select() stopped working when a subagent sent traps

2005-06-24 Thread Emi . Yanagi
I also noticed that agent_session created twice after the send_trap, I suspect the problem is the first agent_session was never released. Will that cause select() stop and master agent lose response? snmp_agent: agent_sesion 0x1015de90 created agentx/master: handle pdu (req=0x2104c5ba,trans=0x0,s

more debug information: snmpd select() stopped working when a subagent sent traps

2005-06-24 Thread Emi . Yanagi
I got more debug information of the problem in the master agent when a subagent sent traps. I started snmpd with debug tokens as below: snmpd -f -Le -Dsnmpd/select -Dsnmp_agent -Dtrap -Dagentx/master In the working case, I see snmpd/select is called right after agent_session release and before

snmpd select() stopped working when a subagent sent linkUp/linkDown traps

2005-06-23 Thread Emi . Yanagi
I am seeing a problem in the master agent snmpd when a subagent sent linkUp/linkDown traps. I started snmpd as below: snmpd -f -Le -Dsnmpd/select -Dtimer -Dtrap The debug log shows snmpd blocked after "snmpd: send_trap: TImeout". The select loop simply stopped working from there. snmpd/select:

Re: Lost response problem, call cache_load again before populate all rows

2005-06-22 Thread Emi . Yanagi
No, it was not cache timeout problem. Neither am I using ifXTable. I have found the problem, it was caused by fdset not being cleared after read. I added FD_CLR, and the problem went away. Anyway, I am interested in registering a handler for the pipe. Would you please point me some example for th

Lost response problem, call cache_load again before populate all rows

2005-06-22 Thread Emi . Yanagi
I customized ifTable subagent from netsnmp/agent/mibGroup/if-mib for our switch port interfaces. It works fine most of times, but I had this problem occasionally. When I do a snmpwalk for example on ifOperStatus, Okay case: after ifTable_cache_load(), it goes through from pre_request to post_reque

Re: after the second cache_load, got "Error: OID not increasing"

2005-06-02 Thread Emi . Yanagi
Hi, Thanks for the accurate diagnostics. I found that NETSNMP_CACHE_DONT_FREE_BEFORE_LOAD cache flag was on. After I removed this flag, the problem disappeared. Then I have another question, NETSNMP_CACHE_DONT_FREE_BEFORE_LOAD cache flag is set in ifTable_container_init() in if-mib/ifTable_dat

after the second cache_load, got "Error: OID not increasing"

2005-05-27 Thread Emi . Yanagi
Hi, I implemented EtherLike-MIB AgentX subagent after generating template by mib2c and mib2c.mfd.conf. Everything is working fine during the first cache_load, I can snmpwalk through the whole dot3StatsTable. (debug message from the subagent below) _mfd_dot3StatsTable_get_column: column=1, Ind

IF-MIB, how to register additional rows but exclude /proc/net/dev interfaces

2005-04-08 Thread Emi . Yanagi
Hello Robert, Thanks for you advice. I understand table container is the way to add rows to ifTable in the code IF-MIB/data_access/interface_linux.c and interface_common.c. The function to create more rows is netsnmp_access_interface_entry_create(), so I modified it to create row #5 to #8 for exa

ifTable iterate_access

2005-03-29 Thread Emi . Yanagi
Hi Robert, Thanks for writing. I have been working on mib2c.iterate_access.conf to generate ifTable iterate_access, because that looks most close to what I want. The obstacle I met here is in ifTable_access.c line 40, *my_loop_context = /** XXX */ ; *my_data_context = /** XXX */ ; How

Fw: ifIndex and its instances

2005-03-24 Thread Emi . Yanagi
. Would you give me some advise on how this subagent should register or allocate a single row of ifTable? Thank you very much. -Emi ----- Forwarded by Emi Yanagi/Radisys_Corporation/US on 03/24/2005 09:33 AM ----- Emi Yanagi/Radisys_Corporation/US 03/15/2005 03:39 PM

ifIndex and its instances

2005-03-15 Thread Emi . Yanagi
Hi, I have a question about ifIndex and its instances. If I do a snmpwalk on ifIndex, I got $snmpwalk 10.1 ifIndex IF-MIB::ifIndex.1 = INTEGER: 1 IF-MIB::ifIndex.2 = INTEGER: 2 IF-MIB::ifIndex.3 = INTEGER: 3 IF-MIB::ifIndex.4 = INTEGER: 4 In order to avoid some sort of collision with my switchp