Re: Repeated SET requests failing
On 07/06/07, Ward Witt <[EMAIL PROTECTED]> wrote: > // SNMP-SET 1.3.6.1.4.1.6827.10.74.3.9.1.1.2 Int 2 > > Sending 30 bytes to UDP: [10.0.0.126]:161 > : 30 1C 02 01 01 04 07 70 72 69 76 61 74 65 A3 0E > 0016: 02 04 62 17 B9 1C 02 01 00 02 01 00 30 00 > > Received 30 bytes from UDP: [10.0.0.126]:161 > : 30 1C 02 01 01 04 07 70 72 69 76 61 74 65 A2 0E > 0016: 02 04 62 17 B9 1C 02 01 00 02 01 00 30 00 OK - that particular dump corresponds to a SET request with no assignments included. So it's not too suprising that the update doesn't get applied. That would tend to point the finger at the client-side code, rather than the agent, I've no experience with using Objective-C, so wouldn't like to speculate as to how well the Net-SNMP library integrates with such an environment. But the thing that springs out immediately from your sample code is: read_objid([objectIdString UTF8String], objectid, &length); struct snmp_pdu *pdu = snmp_pdu_create(SNMP_MSG_SET); char value = intVal + 0x30; snmp_add_var(pdu, objectid, length, 'i', &intVal); you're not checking return codes. Does the 'snmp_add_var' call succeed or not? Does the 'read_objid' call succeed or not? It's certainly worth checking these two - because if there are any problems here, you will indeed end up with an empty SET request. Dave - 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-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Enterprise subtree problem...
On 07/06/07, Ken Adey <[EMAIL PROTECTED]> wrote: > How can I determine if the agent is having a problem executing my script > or understanding its output? Try oputting some debugging code into your script - that will tell you whether it is getting invoked or not. Try starting the agent with the debug option -Ducd-snmp/pass Dave - 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-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: net-snmp isn't running pass_persist script? how do i know?
On 07/06/07, Abdul-Wahid Paterson <[EMAIL PROTECTED]> wrote: > This is my whole snmpd.conf and I am accessing from 192.168.0.10 OK - that looks fine. What about the other question: > > What can you see? In particular, can you see other bits of the enterprise tree? Is it *just* the pass-persist tree that's failing, or is the problem wider? Dave - 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-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Rebuilding Net-SNMP 5.4 with IPv6
On 07/06/07, Alex Burger <[EMAIL PROTECTED]> wrote: > Dave, I had to put an #ifndef WIN32 around the feature code 1041888 in > read_config.c: > > if (!S_ISDIR(statbuf.st_mode)) { > . > . > } > > Windows doesn't have S_ISDIR. We need a proper fix, but that allowed me > to compile to test IPv6. Well the obvious fix would be to test for S_ISDIR explicitly (since this is a #define anyway). Done. SVN revision 16500, Give that a whirl, and let me know if you still have problems. Dave - 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-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Please Help: how to use netsnmp_get_timed_stash_cache_handler
On 23/05/07, Lothar Werzinger <[EMAIL PROTECTED]> wrote: > Will the code example below compile with the upcoming 5.4.1 release? It should do. The absence of the stash_cache header file was clearly an oversight, so I've just tweaked the installation setup to rectify this. The 5.4.1.pre2 tarball will still be broken (since that was released a few days ago), but pre3 and above should be fixed. Dave - 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-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: net-snmp isn't running pass_persist script? how do i know?
Yes, I can see everything else in the tree and am actively reading data of it. It just seems to be the pass_persist tree that is not failing. Is there any particular way that I can see from snmpd what is happening? Regards, Abdul-Wahid On 6/7/07, Dave Shield <[EMAIL PROTECTED]> wrote: > On 07/06/07, Abdul-Wahid Paterson <[EMAIL PROTECTED]> wrote: > > This is my whole snmpd.conf and I am accessing from 192.168.0.10 > > OK - that looks fine. > What about the other question: > > > > What can you see? > > In particular, can you see other bits of the enterprise tree? > Is it *just* the pass-persist tree that's failing, or is the problem wider? > > Dave > - 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-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: State of snmpNotifyFilterTable
> The net-snmp-5.4 FAQ says the "snmpFilterTable", etc. > is "present and can be manipulated and updated, but > the information is not consulted..." > > Does anybody know the status of if/when the > tables will be consulted? The 5.3 announcement says it's been implemented since version 5.3: http://thread.gmane.org/gmane.network.net-snmp.announce/8 > snmpd: > - implement notification logging > - implement notification filtering Art - 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-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Repeated SET requests failing
> But the thing that springs out immediately from your sample > code is: > >read_objid([objectIdString UTF8String], objectid, &length); >struct snmp_pdu *pdu = snmp_pdu_create(SNMP_MSG_SET); >char value = intVal + 0x30; >snmp_add_var(pdu, objectid, length, 'i', &intVal); > > you're not checking return codes. > Does the 'snmp_add_var' call succeed or not? > Does the 'read_objid' call succeed or not? Your right, snmp_perror reports "Bad value name (25\354)", when snmp_add_var returns with a failure. I don't see any failures on the read_objid call. I'll poke around and see if I can find out what's going on. Ward - 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-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
without snmpget ,how can the agent read the oid itselft?
hi , My agent is uclinux,and it don't have snmpget command.If the manager snmpset an oid value (0 ,for example)to the agent,how can the agent read the value?Thank you very much ! - 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-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users