Solaris CPU Counters return zero

From: John Marrett (JMarrett@mediagrif.com)
Date: Mon Feb 23 2004 - 09:44:39 EST


I have a system that returns 0 for it's snmp cpu counters. All of my other
systems respond properly. I have upgraded the snmp daemon to version 108869-22
but it still returns 0 for all cpu counters.

Here is a sample snmpget on the machine with a problem.

ptimspr1:johnf$ snmpget -v 1 -c public pquedb4 1.3.6.1.4.1.42.3.13.4.0
SNMPv2-SMI::enterprises.42.3.13.4.0 = Counter32: 0

Here is a sample snmpget on a machine that works properly.

ptimspr1:johnf$ snmpget -v 1 -c public ttimdb1 1.3.6.1.4.1.42.3.13.4.0
SNMPv2-SMI::enterprises.42.3.13.4.0 = Counter32: 135079049

I ran the snmp agent in debug mode to see if it would suggest anything. It
didn't but the output follows nonetheless. According to the snmp agent it is
working properly, it's just that 0 cpu ticks have been used in the past 195
days...

I will summarize,

-JohnF

snmp debug output (failed)

SESSIONS:
---------
NUMBER OF SESSIONS: 0

<< received 45 bytes from 10.1.10.33.36132

PACKET:
-------
30 2B 02 01 00 04 06 70 75 62 6C 69 63 A0 1E 02
04 01 9E AA 01 02 01 00 02 01 00 30 10 30 0E 06
0A 2B 06 01 04 01 2A 03 0D 04 00 05 00

PDU:

----
version:      0
community:    public
type:         GET_REQ_MSG (0xa0)
request id:   27175425
error status: noError(0)
error index:  0
--------------------------------------------------
name:    1.3.6.1.4.1.42.3.13.4.0
type:    NULL (0x5)
length:  0
value:    ( )
--------------------------------------------------
## Open session 0
subtree_match() returned 1.3.6.1.4.1.42 supported by snmpd
        address:        10.1.10.33.36132
        n_variables:    1
        o_flags:        0x0
        i_flags:        0x0
        request 0:
                session:     0
                subtree:     1.3.6.1.4.1.42
                visited agents:
                        snmpd
                agent:       snmpd (localhost.50560)
                flags:       0x1
                state:       0
                variables:
                        1.3.6.1.4.1.42.3.13.4.0
                time:        0 sec 0 usec
                expire:      0 sec 0 usec
PDU:
----
version:      0
community:    public
type:         GET_REQ_MSG (0xa0)
request id:   0
error status: noError(0)
error index:  0
--------------------------------------------------
name:    1.3.6.1.4.1.42.3.13.4.0
type:    NULL (0x5)
length:  0
value:    ( )
--------------------------------------------------
PACKET:
-------
30 28 02 01 00 04 06 70 75 62 6C 69 63 A0 1B 02
01 00 02 01 00 02 01 00 30 10 30 0E 06 0A 2B 06
01 04 01 2A 03 0D 04 00 05 00
>> sent 42 bytes to localhost.50560
SESSIONS:
---------
session 0:
        address:        10.1.10.33.36132
        n_variables:    1
        o_flags:        0x1
        i_flags:        0x0
        request 0:
                session:     0
                subtree:     1.3.6.1.4.1.42
                visited agents:
                        snmpd
                agent:       snmpd (localhost.50560)
                flags:       0x1
                state:       1
                variables:
                        1.3.6.1.4.1.42.3.13.4.0
                time:        1070028488 sec 832187 usec
                expire:      1070028490 sec 832187 usec
NUMBER OF SESSIONS: 1
<< received 43 bytes from localhost.50560
PACKET:
-------
30 29 02 01 00 04 06 70 75 62 6C 69 63 A2 1C 02
01 00 02 01 00 02 01 00 30 11 30 0F 06 0A 2B 06
01 04 01 2A 03 0D 04 00 41 01 00
PDU:
----
version:      0
community:    public
type:         GET_RSP_MSG (0xa2)
request id:   0
error status: noError(0)
error index:  0
--------------------------------------------------
name:    1.3.6.1.4.1.42.3.13.4.0
type:    COUNTER (0x41)
length:  4
value:   0
--------------------------------------------------
PDU:
----
version:      0
community:    public
type:         GET_RSP_MSG (0xa2)
request id:   27175425
error status: noError(0)
error index:  0
--------------------------------------------------
name:    1.3.6.1.4.1.42.3.13.4.0
type:    COUNTER (0x41)
length:  4
value:   0
--------------------------------------------------
PACKET:
-------
30 2C 02 01 00 04 06 70 75 62 6C 69 63 A2 1F 02
04 01 9E AA 01 02 01 00 02 01 00 30 11 30 0F 06
0A 2B 06 01 04 01 2A 03 0D 04 00 41 01 00
>> sent 46 bytes to 10.1.10.33.36132
## Close session 0
snmp debug output (working)
SESSIONS:
---------
session 0:
        address:        ptimspr1.dev.mediagrif.com.36140
        n_variables:    1
        o_flags:        0x1
        i_flags:        0x0
        request 0:
                session:     0
                subtree:     1.3.6.1.4.1.42
                visited agents:
                        snmpd
                agent:       snmpd (localhost.52671)
                flags:       0x1
                state:       1
                variables:
                        1.3.6.1.4.1.42.3.13.4.0
                time:        1070028598 sec 592655 usec
                expire:      1070028600 sec 592655 usec
NUMBER OF SESSIONS: 1
<< received 45 bytes from ptimspr1.dev.mediagrif.com.36140
PACKET:
-------
30 2B 02 01 00 04 06 70 75 62 6C 69 63 A0 1E 02
04 64 49 C4 18 02 01 00 02 01 00 30 10 30 0E 06
0A 2B 06 01 04 01 2A 03 0D 04 00 05 00
PDU:
----
version:      0
community:    public
type:         GET_REQ_MSG (0xa0)
request id:   1682555928
error status: noError(0)
error index:  0
--------------------------------------------------
name:    1.3.6.1.4.1.42.3.13.4.0
type:    NULL (0x5)
length:  0
value:    ( )
--------------------------------------------------
!! This request is already being processed by session 0
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:28:06 EDT