RE: Net-SNMP installation on a Windows 2008 x64 server.
Thanks Dave for your fast reply! Thank You, David Phillips Systems Administrator 407.418.0021 office 407.488.5037 cell 407.895.7401 fax david.phill...@credability.org CredAbility Nonprofit Credit Counseling Education 3191 Maguire Boulevard, Suite 100 Orlando, FL 32803 800.251.2227 www.CredAbility.org -Original Message- From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield Sent: Tuesday, January 10, 2012 3:40 AM To: David Phillips Cc: net-snmp-users@lists.sourceforge.net; James Sean; Ryan Thompson Subject: Re: Net-SNMP installation on a Windows 2008 x64 server. On 9 January 2012 23:02, David Phillips david.phill...@credability.org wrote: I installed net-snmp-5.7.0-1.x86.. When I began to edit C:\usr\etc\snmp\snmptrapd.conf I discovered that the file was not present. No - it's not installed automatically. You should create this yourself with your favourite text editor, or using snmpconf Dave CREDABILITY CONFIDENTIAL COMMUNICATION NOTICE. The information contained in this email message is confidential and proprietary, and is intended solely for the use of the addressee. Any unauthorized dissemination, distribution or copying of this email is expressly prohibited. If you have received this email message in error, please notify the sender immediately and delete this message and any attachments. CredAbility is a registered trademark of Consumer Credit Counseling Service of Greater Atlanta, Inc. -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox ___ 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
help
hi I used : ./configure --with-mib-modules=nscrtvRoot make make install Running at linux Red hat ,can Get、Set OK; same code,use: ./configure --host=x86-linux --target=powerpc-linux-gnu --with-cc=powerpc-e300c3-linux-gnu-gcc --with-endianness=big --disable-debugging --enable-mini-agent --without-kmem-usage --disable-manuals --with-cflags=-Os --without-openssl --with-out-transports=TCP --disable-embedded-perl --disable-perl-cc-checks --without-perl-modules --with-default-snmp-version=2 --with-sys-contact=hubin309@... --with-sys-location=China --with-logfile=/var/log/snmpd.log --with-persistent-directory=/var/net-snmp --with-mib-modules=nscrtvRoot --with-libs=-lpthread make make install Running at freescale 8308,Get can work right,but Set return OnSuchName, It seem when received the packet,not into the Set deal function,It return. Get: Received 46 bytes from UDP: [10.0.0.226]:1567 : 30 2C 02 01 00 04 06 70 75 62 6C 69 63 A0 1F 020,.public... 0016: 01 5D 02 01 00 02 01 00 30 14 30 12 06 0E 2B 06.]..0.0...+. 0032: 01 04 01 81 88 01 02 04 01 01 01 00 05 00 .. Received SNMP packet(s) from UDP: [10.0.0.226]:1567 GET message -- KINGVON-EOC-MIB::eocCBATAdminLogicalID.0 into handle Get Sending 53 bytes to UDP: [10.0.0.226]:1567 : 30 33 02 01 00 04 06 70 75 62 6C 69 63 A2 26 0203.public.. 0016: 01 5D 02 01 00 02 01 00 30 1B 30 19 06 0E 2B 06.]..0.0...+. 0032: 01 04 01 81 88 01 02 04 01 01 01 00 04 07 4B 56..KV 0048: 48 30 30 33 35 Set: Received 50 bytes from UDP: [10.0.0.226]:1567 : 30 30 02 01 00 04 06 70 75 62 6C 69 63 A3 23 0200.public.#. 0016: 01 5E 02 01 00 02 01 00 30 18 30 16 06 0E 2B 06.^..0.0...+. 0032: 01 04 01 81 88 01 02 04 01 01 01 00 04 04 35 35..55 0048: 35 35 55 Received SNMP packet(s) from UDP: [10.0.0.226]:1567 SET message -- KINGVON-EOC-MIB::eocCBATAdminLogicalID.0 Sending 50 bytes to UDP: [10.0.0.226]:1567 : 30 30 02 01 00 04 06 70 75 62 6C 69 63 A2 23 0200.public.#. 0016: 01 5E 02 01 02 02 01 00 30 18 30 16 06 0E 2B 06.^..0.0...+. 0032: 01 04 01 81 88 01 02 04 01 01 01 00 04 04 35 35..55 0048: 35 35 why?-- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox___ 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: help
2012/1/11 胡斌 hubin...@163.com: Running at freescale 8308,Get can work right,but Set return NoSuchName, How have you configured the agent? What do the access control elements of snmpd.conf look like? It's fairly common to allow read-only access, so GET* requests will work, but SET will not. If you do allow community based SET requests, then we would *STRONGLY* suggest that you use a community string other than public. Dave -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox ___ 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: Solaris 10, with SMCperl (5.8.8) and net-snmp (5.6.1/5.7.1)
Trying to debug this, I get the following crash when: starting /usr/local/sbin/snmpd -D ALL and the EM7 server queries the host: libc.so.1`strlen+0x50(ff0ee2b8, ffbfdbac, 152ead, 0, 0, 0) libc.so.1`vsnprintf+0x6c(ffbfd6d8, 400, ff0ee2a8, ffbfdba4, 7c00, 1494) libnetsnmp.so.30.0.1`snmp_vlog+0x20(7, ff0ee2a8, ffbfdba4, ffbfdc5c, 0, 0) libnetsnmp.so.30.0.1`debugmsg+0x30(ff0ee298, ff0ee2a8, 152ea0, 0, 33a, 1494) libnetsnmp.so.30.0.1`netsnmp_getaddrinfo+0x14c(152ea0, 0, ffbfdc60, ffbfdc5c, 0, 0) libnetsnmp.so.30.0.1`netsnmp_gethostbyname_v4+0x50(152ea0, ffbfdd74, 3235, 31302e32, 80808080, 1010101) libnetsnmp.so.30.0.1`netsnmp_sockaddr_in2+0x524(ffbfdd70, 152ea0, 152ea0, ff0f21c8, 0, ff0f2420) libnetsnmp.so.30.0.1`netsnmp_udp_create_tstring+0x10(ffbff129, 0, 295c0, ffbff129, 0, ff10e35c) libnetsnmp.so.30.0.1`netsnmp_tdomain_transport_full+0x3cc(ff0f2308, ffbff129, ff0f21d8, ff0f21c8, 0, ff0f2420) libnetsnmpagent.so.30.0.1`create_trap_session2+0xb8(ffbff129, 0, ff33a868, 0, a4, 0) libnetsnmpagent.so.30.0.1`snmpd_parse_config_trapsink+0xb8(ffbfed20, ffbff129, ffbff13d, ffbff13c, fecc6c99, fecc6c99) libnetsnmp.so.30.0.1`run_config_handler+0xdc(26ad8, ffbfed20, ffbff129, 0, ffbff120, ff10eefc) libnetsnmp.so.30.0.1`read_config+0x268(ffbff638, 26a98, ff0ef148, ff0ee8d0, ff0ee8c8, ffbff520) libnetsnmp.so.30.0.1`read_config_files_in_path+0x4e4(ffbff638, 28310, 0, 1502e0, 0, 1502e0) libnetsnmp.so.30.0.1`read_config_files_of_type+0xd8(0, 28310, 0, ff10e344, 17f0, 2c1c) libnetsnmp.so.30.0.1`read_config_files+0x44(, ff0ef6b0, ff0ef6a0, ff0ee8e0, 3f8, 1798) libnetsnmp.so.30.0.1`read_configs+0x88(0, 0, 0, 0, 154e1, 154e0) main+0xbf4(3, ffbffc04, 0, , 0, 0) _start+0x5c(0, 0, 0, 0, 0, 0) Comparing our version 5.4.2.1, the PS command works correctly, however the builds of 5.6.1 and 5.7.1, lose the arguments, truncate the first character of the full path, and populate that truncated path to the arguements. Ben ben.tay...@sybase.com 01/06/2012 12:21 PM To net-snmp-users@lists.sourceforge.net cc Subject Solaris 10, with SMCperl (5.8.8) and net-snmp (5.6.1/5.7.1) I have a rather generic build of netsnmp 5.6.1 and more recently 5.7.1. We are using EM7 for monitoring, and we notice that in both 5.6.1 and 5.7.1, we are seeing some problems with the process information. Specifically, we are seeing the following: 1) truncation of the first character in the process name 2) dropping of all arguments 3) truncation of the full path of the process name Anyone got some pointers? Thanks, Ben Taylor -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox ___ 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 -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox___ 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
snmptrap question
Hi, I'm issuing the following snmptrap command: snmptrap -v 3 -u testrwauth -a MD5 -A authentication test -l authNoPriv 172.27.57.34 *42 *MPBC-RMH-MIB::mpbcRMH-Mon-HPU-State 1) This is returning the ObjectID in the summary of my trap window (i.e, my trap log has 4 columns: Time, Source, Type and Summary). Instead of getting the ObjectdID in the Summary, is it possible to get the 'Value' this OID? 2) the 42 right after the IP address, what does it do? Thanks, S. -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox___ 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: snmptrap question
On 11 January 2012 21:31, Simon Chamlian simon.chaml...@gmail.com wrote: I'm issuing the following snmptrap command: snmptrap -v 3 -u testrwauth -a MD5 -A authentication test -l authNoPriv 172.27.57.34 42 MPBC-RMH-MIB::mpbcRMH-Mon-HPU-State What is the definition of the MIB object mpbcRMH-Mon-HPU-State ? Is this defined as OBJECT-TYPE or NOTIFICATION-TYPE? If it's defined as a MIB object (rather than as a Notification), then it's not valid to use it here. 1) This is returning the ObjectID in the summary of my trap window (i.e, my trap log has 4 columns: Time, Source, Type and Summary). Instead of getting the ObjectdID in the Summary, is it possible to get the 'Value' this OID? The snmptrap command takes two basic parameters: - an integer (the sysUpTime value) - an OID(of a Notification-Type object) This is then optionally followed by a number of OID-type-value triplets (in the same form as would be used for snmpset) So if the notification definition lists four payload objects, then the snmptrap command should look something like snmptrap 42 myTrapOID myTime.1 t 12345 mySource.1 a 1.2.3.4 myType.1 i99 mySummary.1 s The Good, the Bad and the Ugly (with suitable varbind triples for the four payload elements) Yes, the trap can contain the required values, but you'll need to specify these as part of the snmptrap command. 2) the 42 right after the IP address, what does it do? This is the sysUpTime.0 value. From the snmptrap(1) man page: snmptrap -v [2c|3] [COMMON OPTIONS] [-Ci] uptime trap-oid [OID TYPE VALUE]... In your exapmle 42 is the parameter 'uptime' mpbcRMH-Mon-HPU-State is the parameter 'trap-oid' Dave -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox ___ 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
using monitor to trap (extend vs proxy)
I've been banging my head most of the day trying to make something work. I'm trying to use the monitor feature to trap (resulting in email) to notify me when another process's snmp engine is not responding. I have a mix of java jvms and regular system tasks to monitor. The system tasks are trivial, but since java only shows java in the proc table, I am using the jvm's built-in snmp server to query health. This all works dandy. I have extended the enterprise mib with shell scripts that walk the JVM servers (all one machine, several different ports), and that is successful. I have also proxyed them to the jvm's snmp monitors, and that works as well (quite a bit cleaner too).. I have an issue with each, and I know I'm trying to take the easy way out, but here are my issues: The extend method returns the get as a string of the original walk command, so I can do no compares. Both methods do not trap if the remote snmp is unavailable (main issue). So, if the jvm is up and running, everything is a-ok. If it is not, the monitor does not fail, just says: disman:event:trigger:monitor: Running trigger (TEST) proxy: proxy handler starting, mode = 160 proxy: length=16, base_len=2, name_len=2 proxy: sending pdu proxy: got timed out... requests = 0x908c858 proxy: ignoring timeout disman:event:trigger:monitor: Trigger query (get) failed: 5 failed to run mteTrigger query Successful: disman:event:trigger:monitor: Running trigger (TEST) proxy: proxy handler starting, mode = 160 proxy: length=16, base_len=2, name_len=2 proxy: sending pdu proxy: got response... JVM-MANAGEMENT-MIB::jvmOSProcessorCount.0 Is there any way to make it trap on this failure? relevant portions snmpd.conf included for proxy test since that solution seems much cleaner. I will have several lines (1 for each jvm when completed) if I can somehow get the trap to fire when the monitor fails to get any results from the proxied connection. proxy -v 2c -c public 127.0.0.1:9089 .1.4 .1.3 monitor -r 20 -S -I TEST ! .1.4.6.1.4.1.42.2.145.3.163.1.1.6.4.0 Thanks! -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 ___ 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
creating persistent directory
Hi, I have compiled netsnmp 5.7.1 for windows version and I am using netsnmp.dll for client side programming.(netsnmp.dll placed in my application directory) I am loading mibs from my application directory in the code using setenv(mibdirs,path, 0) but it is creating the index files in c:\\usr\snmp\persist directory. In ealier version, it is used to create the index in folders where mibs are present( which is my appliation dir) but now it is creating a new directory c:\\usr\snmp\persist. How can I override this, please suggest. -- Thanks Regards, Harish attachment: harish.vcf-- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2___ 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: creating persistent directory
On Thu, Jan 12, 2012 at 7:01 AM, Harish Jadhav har...@tecknodreams.com wrote: I have compiled netsnmp 5.7.1 for windows version and I am using netsnmp.dll for client side programming.(netsnmp.dll placed in my application directory) I am loading mibs from my application directory in the code using setenv(mibdirs,path, 0) but it is creating the index files in c:\\usr\snmp\persist directory. In ealier version, it is used to create the index in folders where mibs are present( which is my appliation dir) but now it is creating a new directory c:\\usr\snmp\persist. How can I override this, please suggest. Have you already tried to set the environment variable SNMP_PERSISTENT_DIR ? Bart. -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 ___ 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: creating persistent directory
No, I have not set the environment variable SNMP_PERSISTENT_DIR. In earlier version also , I never used to. Only difference I noticed is in old version, it creates .index file in same directory where my mibs are present but in newer version it creates by name 0, 1 in c:\usr\snmp\persist and some times if these files are empty ( dont know the reason), my executables are crashing. On 1/12/2012 12:40 PM, Bart Van Assche wrote: On Thu, Jan 12, 2012 at 7:01 AM, Harish Jadhavhar...@tecknodreams.com wrote: I have compiled netsnmp 5.7.1 for windows version and I am using netsnmp.dll for client side programming.(netsnmp.dll placed in my application directory) I am loading mibs from my application directory in the code using setenv(mibdirs,path, 0) but it is creating the index files in c:\\usr\snmp\persist directory. In ealier version, it is used to create the index in folders where mibs are present( which is my appliation dir) but now it is creating a new directory c:\\usr\snmp\persist. How can I override this, please suggest. Have you already tried to set the environment variable SNMP_PERSISTENT_DIR ? Bart. -- Thanks Regards, Harish attachment: harish.vcf-- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2___ 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