Danke... Now my snmpd and snmptrapd runs well. But my snmptrapd seems cant do "traphandle".
in my snmptrapd.conf, I wrote: traphandle .1.3.6.1.4.1.2004.10 /bin/echo test then I restarted my snmptrapd. After that I sended my trap with snmptrap -v 2c -c <my_community_name> <my_comp_IP> "" .1.3.6.1.4.1.2004.10 but nothing happened. When I dumped , Log my snmptrapd with snmptrapd -f -d -Lo , there's seen that the trap was accepted but there no action. The question is 1. Is it true that snmptrapd in QNX can't do "traphandle"? 2. Is there a way to solve this problem? --- "Fernández_Piñas,_David" <[EMAIL PROTECTED]> wrote: > > od: illegal option -- x > > I have seen that messages also. Does anybody knows > the meaning and/or probable cause? > > making all in /net-snmp-5.1/agent > make[1]: Entering directory `/net-snmp-5.1/agent' > making all in /net-snmp-5.1/agent/helpers > make[2]: Entering directory > `/net-snmp-5.1/agent/helpers' > /bin/sh ../../libtool --mode=compile gcc > -I../../include -I../../include -I. -I > .. -I../.. -I. -I./.. -I./../mibgroup -I./../.. > -I./../../snmplib -g -O2 -Dnto > -c -o baby_steps.lo baby_steps.c > od: illegal option -- x > > Regarding the problem with applications, they are > not compiled due to --disable-applications configure > option. > > Try this configure options to build the apps: > > configure --enable-mini-agent --with-defaults > --with-out-mib-modules="snmpv3 snmpv3mibs smux > agentx" --with-out-transports="Callback Unix" > --with-transports="UDP" --with-out-transports="TCP" > --disable-privacy --with-openssl=no > --with-default-snmp-version="2" > > then make and make install. > > Make sure you are running the net-snmp snmptrapd, > located at /usr/local/sbin, instead of the one > provided by QNX (at /usr/sbin). > > If you want to use the net-snmp snmpwalk, snmpget, > etc, they are at /usr/local/bin. QNX includes its > own snmp command-line utilities. > > # snmpwalk -c public 127.0.0.1 system > Usage: snmpwalk -v 1 hostname community [objectID] > or: > Usage: snmpwalk [-v 2 ] hostname noAuth [objectID] > or: > Usage: snmpwalk [-v 2 ] hostname srcParty dstParty > context [objectID] > # /usr/local/bin/snmpwalk -c public 127.0.0.1 system > SNMPv2-MIB::sysDescr.0 = STRING: QNX ATLAS 6.2.1 > 2003/01/18-02:12:22est x86pc > SNMPv2-MIB::sysObjectID.0 = OID: > SNMPv2-SMI::enterprises.8072.3.2.255 > SNMPv2-MIB::sysUpTime.0 = Timeticks: (6067) > 0:01:00.67 > SNMPv2-MIB::sysContact.0 = STRING: jeacin > SNMPv2-MIB::sysName.0 = STRING: ATLAS > SNMPv2-MIB::sysLocation.0 = STRING: Indra Espacio > Barcelona > SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) > 0:00:00.00 > SNMPv2-MIB::sysORID.1 = OID: SNMPv2-MIB::snmpMIB > SNMPv2-MIB::sysORID.2 = OID: > SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup > SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module > for SNMPv2 entities > SNMPv2-MIB::sysORDescr.2 = STRING: View-based Access > Control Model for SNMP. > SNMPv2-MIB::sysORUpTime.1 = Timeticks: (0) > 0:00:00.00 > SNMPv2-MIB::sysORUpTime.2 = Timeticks: (0) > 0:00:00.00 > # /usr/local/bin/snmpwalk -c public localhost system > snmpwalk: Unknown host (No such file or directory) > > Does anybody knows why snmpwalk is not able to > translate localhost to 127.0.0.1 ? > > I can ping localhost. > # ping localhost > PING localhost.localdomain (127.0.0.1): 56 data > bytes > 64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 > time=0.000 ms > > /etc/hosts file looks like this: > > # > # Host Database > # > 127.0.0.1 localhost > 127.1 localhost.localdomain localhost > ::1 localhost.localdomain localhost > > > > > -----Original Message----- > > Sent: Thursday, July 29, 2004 11:03 AM > > To: [EMAIL PROTECTED] > > Subject: Another problem with Installing new-snmp > in QNX 6.x > > Architechture > > > > > > Thanx. I followed your suggestion and it worked, > > eventhough there're always messages "od: illegal > > option -- x" after every compiling line. after > that, I > > tried to add my own module to snmpd, it work > nicely > > (at least, when I tried them globally). > > > > But there's another problem. Files in directory > > "net-snmp-5.1.1/apps" have not been compiled. So I > > compiled them with "make", it run OK (with > messages > > "od: illegal option -- x" after every compiling > line > > :-\ ), but It couldn't link snmptrapd file. > there's > > error message: > > > > ./.libs/libnetsnmptrapd.a(snmptrapd_handlers.o): > in > > function 'command_handler' : > > > /root./net-snmp-5.1.1/apps/snmptrapd_handlers.c:809: > > undefined reference to 'run_exec_command' > > > > Can anyone help? > > > > > > > > I am using these configure options with QNX > 6.2.1 on > > > a PC, net-snmp 5.1: > > > > > > ./configure --enable-mini-agent --with-defaults > > > --disable-applications --disable-manuals > > > --disable-scripts --disable-mibs > --disable-debugging > > > --disable-mib-loading --enable-shared > > > --disable-static > > > --with-out-mib-modules="mibII/snmp_mib > > > mibII/sysORTable mibII/vacm_vars > utilities/execute > > > notification target utilities snmpv3 snmpv3mibs > smux > > > ucd_snmp agentx agent_mibs" > > > --with-out-transports="Callback Unix TCP AAL5PVC > > > UDPIPv6 TCPIPv6 IPX" --with-transports="UDP" > > > --without-kmem-usage --with-out-zlibc > > > --disable-privacy --with-openssl=no > > > --with-default-snmp-version="2" > > > --disable-internal-md5 > > > --with-out-security-modules="ksm" > > > > [deleted] > > > > ===== > > Mohammad Ridwan Agustiawan :: 13599066 > > ------------------------------------------------ > > LAPI-Divusi ITB > > Departemen Sistem dan Telekomunikasi > > Ganesha 10 Bandung 40122 > > [EMAIL PROTECTED] > > [EMAIL PROTECTED] > > > ------------------------------------------------------------------------------------------------------------------- > Este correo electrónico y, en su caso, cualquier > fichero anexo al mismo, contiene información de > carácter confidencial exclusivamente dirigida a su > destinatario o destinatarios. Queda prohibida su > divulgación, copia o distribución a terceros sin la > previa autorización escrita de Indra. En el caso de > haber recibido este correo electrónico por error, se > ruega notificar inmediatamente esta circunstancia > mediante reenvío a la dirección electrónica del > remitente. > > The information in this e-mail and in any > attachments is confidential and solely for the > attention and use of the named addressee(s). You are > hereby notified that any dissemination, distribution > or copy of this communication is prohibited without > the prior written consent of Indra. If you have > received this communication in error, please, notify > the sender by reply e-mail > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic > Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 > today. > http://ads.osdn.com/?ad_idG21&alloc_id040&op=click > _______________________________________________ > Net-snmp-users mailing list > [EMAIL PROTECTED] > Please see the following page to unsubscribe or > change other options: > === message truncated === ===== Mohammad Ridwan Agustiawan :: 13599066 ------------------------------------------------ LAPI-Divusi ITB Departemen Sistem dan Telekomunikasi Ganesha 10 Bandung 40122 [EMAIL PROTECTED] [EMAIL PROTECTED] ________________________________________________________________________ Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Net-snmp-users mailing list [EMAIL PROTECTED] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users