Re: net-snmp-5.5_CrossCompiling_xscale_be
Queenie de Melo wrote: Iam a newbie to linux and I recently downloaded net-snmp, Iam getting errors when i try cross compiling net-snmp-5.5 for my target platform having xscale big endian architecture. http://www.net-snmp.org/wiki/index.php/FAQ:General_07 +Thomas -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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: Building NET_SNMP-5.5 using Visual Studio-2008
On Tue, Feb 9, 2010 at 11:08 AM, ganeshyell...@bel.co.in wrote: [ ... ] snmpwalk.obj : error LNK2019: unresolved external symbol _optind referenced in function _optProc [ ... ] You have to modify win32/net-snmp/net-snmp-config.h as follows when building libnetsnmp as a dll: change the line /* #undef NETSNMP_USE_DLL */ into #define NETSNMP_USE_DLL 1 Bart. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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: trapsink with variable ip destination
On 20 February 2010 11:06, majid namnabat maj@gmail.com wrote: snmp_set_var_typed_value(var, ASN_OBJECT_ID, oidnetsnmpUDPDomain3, oidnetsnmpUDPDomain3_len ); The final parameter of this routine is the size of the data being passed. Not the number of subidentifiers (since the same routine can be used for integers, strings and OID values). Try snmp_set_var_typed_value( oidnetsnmpUDPDomain3_len * sizeof(oid)); (and similarly for the others). Dave -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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: statically linking netsnmplib
anand prasad worte: Now, I am trying to use snmptrap command: sudo ./snmptrap -v 2c -Ci -c public 192.168.1.137 NET-SNMP-EXAMPLES-MIB::netSnmpExampleHeartbeatNotification netSnmpExampleHeartbeatRate i 1234561 I am getting the follwing error: Cannot find module (IP-MIB): At line 0 in (none) [...] NET-SNMP-EXAMPLES-MIB::netSnmpExampleHeartbeatNotification: Unknown Object Identifier If I build snmptrap without -static, then it works fine i.e I am able to send/receive informReqeust and get-response. But, I need to build my application by linking netsnmplib statically. net-snmp warns about missing MIB files, not libraries. If you didn't use make install, you may need to copy them manually. See net-snmp-config --default-mibdirs for where your build expects them. +Thomas -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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: trap sending
maxim maxim wrote: How i can to send a SNMPv1 and SNMPv2 traps by net-snmp api?, i need some examples of code, i know how to do it from the command line, but i need this in code. apps/snmptrap.c has the full source code of the command-line tool you're familar with. +Thomas -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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
SNMPGET...[NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject]
Hi, i am facing trobles in using snmpget for more than oneweek. Also i am not knowing whether i am doing mistakes in configuring agent(snmpd. I am extending agent using microsoft visual c++. what i have done is below. 1. i put NET-SNMP-TUTORIAL-MIB in the folder c:\usr\share\snmp\mibs 2. i copied nstAgentModuleObject.h nstAgentModuleObject.h into C:\net-snmp-5.5\agent\mibgroup\ folder 3. i added #include mibgroup/nstAgentModuleObject.h to the file c:\net-snmp-5.5\win32\mib_module_includes.h and i added if (should_init(nstAgentModuleObject)) init_nstAgentModuleObject(); to the file c:\net-snmp-5.5\win32\mib_module_inits.h 4. i compile nstAgentmoduleobject.c into agent.( netsnmpmibssdk project) The object file nstAgentModuleObject.o is located inthe folder C:\net-snmp-5.5\win32\netsnmpmibssdk\debug\ 5. i built snmpdsdk project(net snmp agent). Next i configured the agent . snmpd.conf contains the following: # snmpd.conf # # - created by the snmpconf configuration program # ### # SECTION: Access Control Setup # # This section defines who is allowed to talk to your running # snmp agent. # rocommunity: a SNMPv1/SNMPv2c read-only access community name # arguments: community [default|hostname|network/bits] [oid] rocommunity public localhost # rwcommunity: a SNMPv1/SNMPv2c read-write access community name # arguments: community [default|hostname|network/bits] [oid] rwcommunity private localhost ### # SECTION: System Information Setup # # This section defines some of the information reported in # the system mib group in the mibII tree. # syslocation: The [typically physical] location of the system. # Note that setting this value here means that when trying to # perform an snmp SET operation to the sysLocation.0 variable will make # the agent return the notWritable error code. IE, including # this token in the snmpd.conf file will disable write access to # the variable. # arguments: location_string syslocation COMMUNICATIONS-CRL # syscontact: The contact information for the administrator # Note that setting this value here means that when trying to # perform an snmp SET operation to the sysContact.0 variable will make # the agent return the notWritable error code. IE, including # this token in the snmpd.conf file will disable write access to # the variable. # arguments: contact_string syscontact GANESH YELLAPU I restarted the agent. c:\usr\bin\snmptranslate -On -IR nstAgentModuleObject.0 .1.3.6.1.4.1.8072.2.4.1.1.1 C:\usr\bin\snmpget -c public -v 2c localhost nstAgentModuleObject.0 NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0 :: No suchobnject available on this agent at this OID C:\usr\bin\snmpset -c private -v 2c localhost nstAgentModuleObject.0 i 999 Error in packet. Reason:not writable that object doesnot support modification Failed object: NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0 I tried the below command also. C:\usr\bin\snmptranslate -Dparse NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject this command showed parse-mibs:Module NET-SNMP-TUTORIAL-MIB already loaded. NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject What is the mistake? whether snmpd.conf contains correct configur inforamtion? i have been sending the same mail for one week. kinldy help and suggest me inthis regard. Looking forward to the response. Thank you very much withregards Ganesh Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Bharat Electronics or supp...@bel.co.in immediately and destroy all copies of this message and any attachments. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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
Little help! (net-snmp 5.5 under Cygwin on WinXP)
My snmp.conf contains: (does it even matter?) mibdirs C:/cygwin/share/snmp/mibs;C:/cygwin/home/bkamen/mibs persistentDir C:/cygwin/snmp/persist tempFilePattern C:/cygwin/temp/snmpdXX mibs +TZ-MIB;TRANZEO-MIB;MICROCHIP-MIB My snmptrapd.conf contains: (does it even matter?) authCommunity log public logOption f /cygwin/var/log/snmptrapd.log I'm starting up the trap daemon with the following command: snmptrapd -m +TZ-MIB -M c:/cygwin/share/snmp/mibs;c:/cygwin/home/bkamen/mibs -a -Lo (my created MIB's are in my homedir) I'm assuming the c:/ is ok (the docs list that the parms should be COLON separated when they seem to need being SEMI-COLON separated. In any case, when my device tosses out TRAP's, I get this: $ snmptrapd -L o -m ALL -M c:/cygwin/share/snmp/mibs;c NET-SNMP version 5.5 Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it 2010-02-21 23:16:27 NET-SNMP version 5.5 Stopped. Stopping snmptrapd I'm using the same MIB file for WireSHark -- and it decodes the packet just fine. so I'm missing something on my setup for SNMPtrapd.exe Little help? Thanks in advance, -Ben -- Ben Kamen - O.D.T., S.P. = Email: bkamen AT benjammin DOT net Web: http://www.benjammin.net Fortune says: Once, there was NO fun ... This was before MENU planning, FASHION statements or NAUTILUS equipment ... Then, in 1985 ... FUN was completely encoded in this tiny MICROCHIP ... It contain 14,768 vaguely amusing SIT-COM pilots!! We had to wait FOUR BILLION years but we finally got JERRY LEWIS, MTV and a large selection of creme-filled snack cakes! attachment: snmp-snmp-trap-working.PNG-- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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: Little help! (net-snmp 5.5 under Cygwin on WinXP)
On Mon, Feb 22, 2010 at 11:02 AM, Ben Kamen bka...@benjammin.net wrote: My snmp.conf contains: (does it even matter?) mibdirs C:/cygwin/share/snmp/mibs;C:/cygwin/home/bkamen/mibs persistentDir C:/cygwin/snmp/persist tempFilePattern C:/cygwin/temp/snmpdXX mibs +TZ-MIB;TRANZEO-MIB;MICROCHIP-MIB My snmptrapd.conf contains: (does it even matter?) authCommunity log public logOption f /cygwin/var/log/snmptrapd.log I'm starting up the trap daemon with the following command: snmptrapd -m +TZ-MIB -M c:/cygwin/share/snmp/mibs;c:/cygwin/home/bkamen/mibs -a -Lo (my created MIB's are in my homedir) I'm assuming the c:/ is ok (the docs list that the parms should be COLON separated when they seem to need being SEMI-COLON separated. In any case, when my device tosses out TRAP's, I get this: $ snmptrapd -L o -m ALL -M c:/cygwin/share/snmp/mibs;c NET-SNMP version 5.5 Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it Can't determine trap identifier; refusing to authorize it 2010-02-21 23:16:27 NET-SNMP version 5.5 Stopped. Stopping snmptrapd I'm using the same MIB file for WireSHark -- and it decodes the packet just fine. so I'm missing something on my setup for SNMPtrapd.exe Little help? Thanks in advance, -Ben -- Ben Kamen - O.D.T., S.P. = Email: bkamen AT benjammin DOT net Web: http://www.benjammin.net Fortune says: Once, there was NO fun ... This was before MENU planning, FASHION statements or NAUTILUS equipment ... Then, in 1985 ... FUN was completely encoded in this tiny MICROCHIP ... It contain 14,768 vaguely amusing SIT-COM pilots!! We had to wait FOUR BILLION years but we finally got JERRY LEWIS, MTV and a large selection of creme-filled snack cakes! -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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 My snmptrapd.conf contains: (does it even matter?) authCommunity log public logOption f /cygwin/var/log/snmptrapd.log you can try below config line authCommunity log,execute,netpublic -- Rakesh P. Zingade +919420626099 -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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