- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- snmpdm coredumps
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 07:10 AM
08-20-2007 07:10 AM
snmpdm coredumps
I have a VM running 11.23 where the snmp daemons refuse to run. I have other identical virtual machines that have no problem. Okay, obviously they are not identical because it runs there, but they are on the same software versions/patches. Even the Microsoft solution (rebooting) didn't help. Here's what I get if I run the snmpdm command myself:
(root@sapbde)# snmpdm -apall -n
SNMP Research SNMP Agent Resident Module Version 15.3.1.0
Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 SNMP Research, Inc.
Successfully opened log file /var/adm/snmpd.log
at line 593 in file ../mastmain.c
init_fnames: searching for configuration files in /etc/srconf/agt (default)
at line 134 in file ../../../snmpd/shared/fnames.c
Binding to port 161
at line 482 in file /view/anu.IA.6.2/DE/snmpr/seclib/t_ip.c
Attempt #5 to bind to socket
at line 484 in file /view/anu.IA.6.2/DE/snmpr/seclib/t_ip.c
GetLocalIPAddress: hostname is sapbde
at line 166 in file /view/anu.IA.6.2/DE/snmpr/seclib/t_ip.c
Memory fault(coredump)
I haven't been able to find any differences in any configuration files I know of (/etc/rc.config.d/SnmpMaster.conf or /etc/snmpd.conf. The only line there is trap-dest: xxxx.xxxx.com)
Any help would be appreciated.
Thanks,
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 07:33 AM
08-20-2007 07:33 AM
Re: snmpdm coredumps
Microsoft solution. Cute phrase but so true.
I would check the patch levels of the working VM machines against this one. Perhaps a critical patch for snmp is missing.
swlist -l product
Maybe use diff to compare the output.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 07:40 AM
08-20-2007 07:40 AM
Re: snmpdm coredumps
Unfortunately, they are patched identically and on the same software versions.
Thanks,
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 09:21 AM
08-20-2007 09:21 AM
Re: snmpdm coredumps
Could you write a sample C program on the machine where it is dumping core to evaluate this call
LocalIPAddress = inet_addr(hostname);
Regards
Padma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2007 01:59 AM
08-21-2007 01:59 AM
Re: snmpdm coredumps
#include
#include
#include
#include
int main () {
struct sockaddr_in sa;
sa.sin_addr.s_addr = inet_addr("xxx");
printf ("%s\n",sa.sin_addr.s_addr);
}
The result? "Memory fault(coredump)"
The interesting thing (and which makes my program suspicious) is that I get the same result on the other VM guests and the host as well, even though the snmpdm is running on them.
So, obvious bug in my C program or a bug in my server configurations?
Thanks much,
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2007 05:39 PM
08-21-2007 05:39 PM
Re: snmpdm coredumps
>obvious bug in my C program
If you used a real C compiler it would have told you the format was wrong:
warning #2181-D: argument is incompatible with corresponding format string conversion
The right format is %lx in 32 bit mode and %x in 64 bit mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2007 02:35 AM
08-22-2007 02:35 AM
Re: snmpdm coredumps
Sorry for coming late on this. Is it okay with you to get me the core file and snmpd.conf file . I can try to get you the c program which you can run on your system.
Padma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2007 03:24 AM
08-22-2007 03:24 AM
Re: snmpdm coredumps
The revised program returns 'ffffff' with the nodename and 'a5688e6b' with the IP (wasn't positive which one to use).
I've attached the core file. /etc/snmpd.conf file only has one line: trap-dest: xxxx.xxxx.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2007 10:55 AM
08-22-2007 10:55 AM
Re: snmpdm coredumps
Corefiles are useless if you are not on the original machine. You must use gdb's packcore so you capture ALL of the loadmodules used by the application.
All I get is:
ELF-32 core file - IA64 from 'snmpdm' - received SIGSEGV
But you can use gdb and get a stack trace:
$ gdb snmpdm core
(gdb) bt
(gdb) info reg
(gdb) disas $pc-16*8 $pc+16*4
(gdb) q
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2007 04:36 AM
08-23-2007 04:36 AM
Re: snmpdm coredumps
Sorry to be obtuse, but I can't find gdb for 11.23. I did find a website 'Merjin's HP-UX software for ITRC users' that says gdb is not supported under 11.23. Is this still true? If not, where can I find it (not hpux.cs.utah.edu, apparently) and if so, is there a different debugger available?
Thanks,
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2007 04:46 AM
08-23-2007 04:46 AM
Re: snmpdm coredumps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2007 07:44 AM
08-24-2007 07:44 AM
Re: snmpdm coredumps
Ran commands listed above and attached the output. I'm sad to say it doesn't mean a whole lot to me...
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2007 07:41 PM
08-24-2007 07:41 PM
Re: snmpdm coredumps
Not much to me either unless I look into it more or I'm able to run it in the debugger.
Perhaps it will be useful to Padma?
Basically what you have is a null pointer dereference in readSnmpdConf:
#0 0x4054b60:0 in readSnmpdConf+0x680
#1 0x4030690:0 in InitMaster+0xac0
#2 0x4029970:0 in main+0x550
The result from HpTranslateAddress contains a pointer to a pointer, which contains a null pointer, R8. 5 is being added to it, giving R9. And we die on the store.