HP Openview snmpwalk will error when querying the Solaris system and snmpd will core dump (Doc ID 1466408.1)

Last updated on JULY 29, 2016

Applies to:

Solaris Operating System - Version 10 3/05 to 10 1/13 U11 [Release 10.0]
Information in this document applies to any platform.

Symptoms

When executing a snmpwalk from HP Openview network management station the snmpwalk walk would fail on the HP Openview system reporting errors such as the following:

hrSWInstalledTable.hrSWInstalledEntry.hrSWInstalledDate.1220 : OCTET STRING- (ascii): 7219-12-6,14:23:15.0,-6:0
hrSWInstalledTable.hrSWInstalledEntry.hrSWInstalledDate.1221 : OCTET STRING- (ascii): 7218-4-19,13:34:3.0,-5:0
hrSWInstalledTable.hrSWInstalledEntry.hrSWInstalledDate.1222 : OCTET STRING- (ascii): 7218-5-6,10:24:13.0,-5:0
hrSWInstalledTable.hrSWInstalledEntry.hrSWInstalledDate.1223 : OCTET STRING- (ascii): 7218-5-6,10:24:17.0,-5:0
Warning: error response .1.3.6.1.4.1.42.2.15.12 GEN_ERR ( index: 1) for getnext .1.3.6.1.2.1.25.6.3.1.5.1223
Warning: error response .1.3.6.1.4.1.42.2.15.12 GEN_ERR (status: 5, index: 1) for recover .1.3.6.1.2.1.25.6.3.1.5.1224
Warning: error response .1.3.6.1.4.1.42.2.15.12 GEN_ERR (status: 5, index: 1) for recover .1.3.6.1.2.1.25.6.3.1.6
Warning: error response .1.3.6.1.4.1.42.2.15.12 GEN_ERR (status: 5, index: 1) for recover .1.3.6.1.2.1.25.6.3.2
Warning: error response .1.3.6.1.4.1.42.2.15.12 GEN_ERR (status: 5, index: 1) for recover .1.3.6.1.2.1.25.6.4

 

During this it was detected that Solaris 10's SMA snmpd was core dumping multiple times and the stack of the snmpd core files would show the following:

# pstack /core
core '/core' of 682:    /usr/sfw/sbin/snmpd
 ffffffff7d5b9198 fgets (ffffffff7c20a9b0, 100, 0, 0, 182e84, ffffffff7d5b9f98) + 28
 ffffffff7c107c48 get_motd (100263440, 1002a59c0, 10028b680, 1002bbb80, 0, 0) + 68
 ffffffff7f41d5fc netsnmp_call_handler (100263440, 1002a59c0, 10028b680, 1002bbb80, 0, 1002bd1d0) + 184
 ffffffff7f41d784 netsnmp_call_next_handler (100263480, 1002a59c0, 10028b680, 1002bbb80, 58, 0) + 94
 ffffffff7ef0b688 netsnmp_instance_helper_handler (100263480, 1002a59c0, 10028b680, 1002bbb80, 1c00, 0) + 308
 ffffffff7f41d5fc netsnmp_call_handler (100263480, 1002a59c0, 10028b680, 1002bbb80, 0, 0) + 184
 ffffffff7f41d784 netsnmp_call_next_handler (1002634c0, 1002a59c0, 10028b680, 1002bbb80, ffffffff7f700200, 0) + 94
 ffffffff7ef09c30 netsnmp_read_only_helper (1002634c0, 1002a59c0, 10028b680, 1002bbb80, 0, 0) + 100
 ffffffff7f41d5fc netsnmp_call_handler (1002634c0, 1002a59c0, 10028b680, 1002bbb80, 1, 9367) + 184
 ffffffff7f41d784 netsnmp_call_next_handler (100263500, 1002a59c0, 10028b680, 1002bbb80, 10010d6d0, 0) + 94
 ffffffff7ef0eedc netsnmp_serialize_helper_handler (100263500, 1002a59c0, 10028b680, 1002bbb80, 0, 1002bbb80) + fc
 ffffffff7f41d5fc netsnmp_call_handler (100263500, 1002a59c0, 10028b680, 1002bbb80, 1002bbde0, 0) + 184
 ffffffff7f41d784 netsnmp_call_next_handler (100263540, 1002a59c0, 10028b680, 1002bbb80, 1c00, 0) + 94
 ffffffff7ef09eac netsnmp_bulk_to_next_helper (100263540, 1002a59c0, 10028b680, 1002bbb80, 0, 0) + 64
 ffffffff7f41d42c netsnmp_call_handlers (1002a59c0, 10028b680, 1002bbb80, ffffffff7d74354c, ffffffff7f700200, 0) + 31c
 ffffffff7f4111d0 handle_var_requests (10023c970, 0, 0, 0, 0, 0) + c8
 ffffffff7f412060 handle_getnext_loop (10023c970, 0, 0, 0, 1, 9367) + 270
 ffffffff7f412d20 handle_pdu (10023c970, 5, 0, 0, 0, 0) + 318
 ffffffff7f412790 netsnmp_handle_request (10023c970, 0, 1002bc4d0, 10023c970, 0, 10023c970) + 228
 ffffffff7f40f980 handle_snmp_packet (1, 10023ca80, 62fe1aa9, 1002bc4d0, 0, 1002bc4d0) + 298
 ffffffff7ec79b30 _sess_process_packet (10028b6e0, 10023ca80, 10023ca10, 1002aa3d0, 1002a9710, 10) + a30
 ffffffff7ec7b200 _sess_read (10028b6e0, ffffffff7fffd728, f, f, 8000, 0) + 1490
 ffffffff7ec7b26c snmp_sess_read (10028b6e0, ffffffff7fffd728, ffffffff7d7448c8, 1002bde30, 0, 0) + 24
 ffffffff7ec79d34 snmp_read (ffffffff7fffd728, ffffffff7fffd728, ffffffff7fffb728, ffffffff7fff9728, ffffffff7fff9718, 10028b6e0) + 3c
 0000000100004a60 receive (0, 4, ffffffff7ecdc7f8, 0, 0, 0) + 7c0
 00000001000040b8 main (1, ffffffff7ffffda8, ffffffff7ffffdb8, ffffffff7d54bb50, ffffffff7e700180, ffffffff7f700200) + 1708
 000000010000253c _start (0, 0, 0, 0, 0, 0) + 17c

A snmpwalk of the entire OID tree performed on a Solaris 10 system, another or the system itself, using the Solaris 10 /usr/sfw/bin/snmpwalk command would not result in a error or a snmpd core dump.

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms