Hello, Sorry, but now I find out, what (on the earth) is happening. Strange thing.
When I started snmpd, logged in as *root* (or with sudo) 1) snmpd -f -c ~/snmpd.conf normaly works. And 2) snmpd -c ~/snmpd.conf doesn't. Because it is trying to take snmpd.conf from the /root/snmpd.conf (!). Configuration file is not there, snmpd is not complaining neither work... Anyway, if anybody want to see *very* simple example of table, do not hesitate to contact me. Have a nice day from Slovenia, Igor -----Original Message----- From: Grasic Igor [mailto:[EMAIL PROTECTED] Sent: 7. julij 2004 11:29 To: '[EMAIL PROTECTED]' Subject: Re: When snmpd is started as daemon, stops responding Dear Robert and Bryan, The snmpd is started with the following command line parameters as *root*: 1) in daemon mode: snmpd -c ~/snmpd.conf 2) in "application" mode: snmpd -f -c ~/snmpd.conf Down bellow is content of the snmpd.conf file: ============================================================================ ==== syslocation "Alpha space station" syscontact "George W. Bush" sysservices 79 rwuser grasic noauth rouser plevel noauth rwcommunity public master agentx ============================================================================ ==== and also snmp.conf file: ============================================================================ ==== mibs +ENTITY-MIB debugTokens mibII/tcpTable,entityTable,netSnmpHostsTable doDebugging 1 ============================================================================ ==== and still does not working :( in the daemon mode. I also try to comment out debug sentences in the snmp.conf file, but nothing changed. By the way, at the begining daemon worked. I personally think, that is somethink wrong in my code. Does anybody have any idea? Greetings, Igor -----Original Message----- From: Grasic Igor [mailto:[EMAIL PROTECTED] Sent: 6. julij 2004 16:09 To: '[EMAIL PROTECTED]' Subject: When snmpd is started as daemon, stops responding Hello, I'm newcomer at net-snmp community. In our firm we want to build snmp agent, responsible for collecting data about status of connected HW modules to the main platform, running on embedded Linux. Our test system is still running on RH 9.0. I used mib2c compiler, access_functions template and ENTITY-MIB (part of mib-2) to build source c and h files. For the test example I added necessary code in every get/set function that every function return static value, declarated and defined in function itself. For example: oid * get_entPhysicalVendorType(void *data_context, size_t * ret_len) { static u_long iPhysDVendType= 1; my_data_info *datainfo = data_context; DEBUGMSGTL(("entityTable", "get_entPhysicalVendorType: %d\n", iPhysDVendType)); *ret_len = sizeof (iPhysDVendType); return &iPhysDVendType; /** XXX: replace this with a pointer to a real value */ } Example works fine... until I start it in deamon mode (without swich -f). Then process is started (viewable with ps -ef), default udp port is opened (viewable with netstat), but deamon does not respond any more. Does anybody have any idea what happens? Thanks, Igor Igor Grasic, Ms. D. Development Engineer Iskra Transmission, d. d., Ljubljana Stegne 11, SI-1000 Ljubljana, Slovenia phone: +386 1 5003 000 fax: +386 1 5003 500 www.iskratr.si, www.iskratr.com ........................................................ ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders