Hi Jean Marc, I am trying to get the counter value in order to use it on a cacti graph. I have tried the snmpget command but still the same result
snmpget -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)*) To note that when i try it on an index lower than 115 i get the counter value without any problem snmpget -v2c -c public localhost jinny.generic.jar.smppsirTable.smppsirEntry.smppsir-dlvmo.111 JINNY-JAR-MIB::smppsir-dlvmo.111 = Counter32: 0 Why i am not able to get the counter values for index value greater than 114?Is there any limitation? Best Regards, Elie On Thu, Jan 24, 2019 at 6:13 PM Jurkiewicz Jean-Marc < [email protected]> wrote: > 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
