RE: snmpwalk problem

Jurkiewicz Jean-Marc <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <VI1PR03MB28792968088D728C7FFD4CB2B39A0@VI1PR03MB2879.eurprd03.prod.outlook.com>
Hi Elie,

In my comprehension of SNMP, I use snmpwalk to get all the" leaves" of a "branch" (and "under-branches"), and snmpget to get a specific "leave" of a branch.

So  snmpwalk localhost jinny.generic.jar.smppsirTable.smppsirEntry.smppsir-dlvmo.115 make not really sense, or am I wrong ?

I think you should either

Snmpwalk         localhost jinny.generic.jar.smppsirTable.smppsirEntry.smppsir-dlvmo
Or
Snmpget           localhost jinny.generic.jar.smppsirTable.smppsirEntry.smppsir-dlvmo.115

What do you expect to get returned by an
Snmpwalk localhost jinny.generic.jar.smppsirTable.smppsirEntry.smppsir-dlvmo.115

Best regards
JM

De : Elie Elia [mailto:[email protected]]
Envoyé : jeudi, 24. janvier 2019 14:49
À : [email protected]
Objet : snmpwalk problem

Hi Team,

I am having a problem when retrieving the value of dynamic counters having an index greater than 114 as shown below on my Linux box

snmpwalk -v2c -c public localhost jinny.generic.jar.smppsirTable.smppsirEntry.smppsir-dlvmo.115
jinny.generic.jar.smppsirTable.smppsirEntry.smppsir-dlvmo.115: Unknown Object Identifier (Index out of range: 115 (name))

While if i perform the same command on an index lower than 115 the value is properly returned

snmpwalk -v2c -c public localhost jinny.generic.jar.smppsirTable.smppsirEntry.smppsir-dlvmo.111
JINNY-JAR-MIB::smppsir-dlvmo.111 = Counter32: 0

The related part of the MIB is the following:

-- JAR- SMPP SI RX dynamic counters
smppsirTable    OBJECT-TYPE
SYNTAX      SEQUENCE OF SMPPSIREntry
ACCESS      not-accessible
STATUS      mandatory
DESCRIPTION ""
::= { jar 60 }

smppsirEntry    OBJECT-TYPE
SYNTAX      SMPPSIREntry
ACCESS      not-accessible
STATUS      mandatory
DESCRIPTION ""
INDEX       { name }
::= { smppsirTable 1 }

SMPPSIREntry    ::= SEQUENCE {
        name        OCTET STRING,
        smppsir-bndrx   Counter,
        smppsir-bndrx-a Counter,
        smppsir-dlvmo   Counter,
        smppsir-dlvmo-a Counter,
        smppsir-dr  Counter,
        smppsir-dr-a    Counter,
        smppsir-alive   Gauge,
        smppsir-slink   Counter,
        smppsir-slink-a Counter,
        smppsir-rlink   Counter,
        smppsir-rlink-a Counter,
        smppsir-dmo-ack   Counter,
        smppsir-dr-ack    Counter,
        smppsir-dr-dlv       Counter,
        smppsir-dr-udlv   Counter }

name        OBJECT-TYPE
SYNTAX          OCTET STRING (SIZE(0..255))
ACCESS          not-accessible
STATUS          mandatory
DESCRIPTION "The dynamic name of the counter"
::= { smppsirEntry 2 }

smppsir-bndrx   OBJECT-TYPE
SYNTAX      Counter
ACCESS      read-only
STATUS      mandatory
DESCRIPTION "Total receiver binds"
::= { smppsirEntry 3 }

smppsir-bndrx-a OBJECT-TYPE
SYNTAX      Counter
ACCESS      read-only
STATUS      mandatory
DESCRIPTION "Total receiver binds (ack)"
::= { smppsirEntry 4 }

smppsir-dlvmo   OBJECT-TYPE
SYNTAX      Counter
ACCESS      read-only
STATUS      mandatory
DESCRIPTION "Total Received MO messages"
::= { smppsirEntry 5 }

smppsir-dlvmo-a OBJECT-TYPE
SYNTAX      Counter
ACCESS      read-only
STATUS      mandatory
DESCRIPTION "Total Received MO messages (ack)"
::= { smppsirEntry 6 }


If we run the snmpwalk to retrieve all the dlvmo counters values all the counters are displayed even the ones having an index higher than 114

snmpwalk -v2c -c public localhost jinny.generic.jar.smppsirTable.smppsirEntry.smppsir-dlvmo
JINNY-JAR-MIB::smppsir-dlvmo.1 = Counter32: 0
JINNY-JAR-MIB::smppsir-dlvmo.2 = Counter32: 0
JINNY-JAR-MIB::smppsir-dlvmo.3 = Counter32: 0
JINNY-JAR-MIB::smppsir-dlvmo.4 = Counter32: 0
JINNY-JAR-MIB::smppsir-dlvmo.5 = Counter32: 0

...
...

JINNY-JAR-MIB::smppsir-dlvmo.118 = Counter32: 0
JINNY-JAR-MIB::smppsir-dlvmo.119 = Counter32: 19136
JINNY-JAR-MIB::smppsir-dlvmo.120 = Counter32: 38025
JINNY-JAR-MIB::smppsir-dlvmo.121 = Counter32: 113871
JINNY-JAR-MIB::smppsir-dlvmo.122 = Counter32: 190952

...
...


Thus the problem is only when trying to retrieve dynamic counters with index greater than 114
The server has SNMP version 5.3.2.2

snmpwalk -V
NET-SNMP version: 5.3.2.2

Can you advice concerning this problem

Thanks in advance.

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.