problem getting table values - net-snmp-5.4.1

"Farooq Maniar" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello,

 

I am facing a strange problem, I am not sure if any body has faced this
before or not. I am trying to get table values by using snmpgetnext
command. My problem is that even if I give values for table oids it
returns me the next scalar value with in the tree.

 

I ran the snmpd daemon with -d option and it was showing that it
received the packet with the correct oid but I don't know some how it
does not reach to my handler for table.

 

I am using net-snmp-5.4.1, I have pasted part off my MIB where I am
getting this problem. I have also added the snmpgetnext statement that I
am sending and the debug output of the snmpd daemon. I am sure there is
something very obvious thing that I am missing because of which it is
not hitting my table handler. Let me know if any more information is
required.

 

filesize OBJECT-TYPE

    SYNTAX       INTEGER

    MAX-ACCESS   read-write

    STATUS       current

    DESCRIPTION  ""

 

    ::= { filesTblEntry  5 }

 

 

 

getNtpServer OBJECT-TYPE

    SYNTAX       RowStatus

    MAX-ACCESS   read-write

    STATUS       current

    DESCRIPTION  ""

 

    ::= { rsys  50 }

 

ntpserverTblTable OBJECT-TYPE

    SYNTAX      SEQUENCE OF NtpserverTbl

    MAX-ACCESS  not-accessible

    STATUS      current

    DESCRIPTION

        "

        "

 

    ::= { rsys  51 }

 

ntpserverTblEntry OBJECT-TYPE

    SYNTAX       NtpserverTbl

    MAX-ACCESS  not-accessible

    STATUS       current

    DESCRIPTION  ""

 

 

    INDEX {  ntpservername,  index }

 

    ::= { ntpserverTblTable  1 }

 

NtpserverTbl ::= SEQUENCE {

           ntpservername   DisplayString,

   index   INTEGER

}

 

ntpservername OBJECT-TYPE

    SYNTAX       DisplayString

    MAX-ACCESS   read-write

    STATUS       current

    DESCRIPTION  ""

 

    ::= { ntpserverTblEntry  1 }

 

 

index OBJECT-TYPE

    SYNTAX       INTEGER

    MAX-ACCESS   read-write

    STATUS       current

    DESCRIPTION  ""

 

    ::= { ntpserverTblEntry  2 }

 

 

 

getdate OBJECT-TYPE

    SYNTAX       DisplayString

    MAX-ACCESS   read-write

    STATUS       current

    DESCRIPTION  ""

 

    ::= { rsys  52 }

 

 

 

Snmpget next output:

 

bash-3.00$ snmpgetnext 10.44.46.183 -v2c -c public -r 0 -d
enterprises.20008.8.51.1

 

Sending 46 bytes to 10.44.46.183

0000: 30 2C 02 01  01 04 06 70  75 62 6C 69  63 A1 1F 02
0,.....public...

0016: 04 28 2E 20  C9 02 01 00  02 01 00 30  11 30 0F 06    .(.
.......0.0..

0032: 0B 2B 06 01  04 01 81 9C  28 08 33 01  05 00
.+......(.3...

 

 

Received 68 bytes from 10.44.46.183

0000: 30 42 02 01  01 04 06 70  75 62 6C 69  63 A2 35 02
0B.....public.5.

0016: 04 28 2E 20  C9 02 01 00  02 01 00 30  27 30 25 06    .(.
.......0'0%.

0032: 0B 2B 06 01  04 01 81 9C  28 08 34 00  04 16 30 33
.+......(.4...03

0048: 2F 31 30 2F  30 36 2D 31  34 3A 30 31  3A 31 35 20
/10/06-14:01:15

0064: 50 53 54 00                                           PST.

 

SNMPv2-SMI::enterprises.20008.8.52.0 = Hex-STRING: 30 33 2F 31 30 2F 30
36 2D 31 34 3A 30 31 3A 31

35 20 50 53 54 00

 

Smnpd daemon debug output:

 

NET-SNMP version 5.4.1

 

Received 46 bytes from UDP: [10.44.44.72]:33460

0000: 30 2C 02 01  01 04 06 70  75 62 6C 69  63 A1 1F 02
0,.....public...

0016: 04 28 2E 20  C9 02 01 00  02 01 00 30  11 30 0F 06    .(.
.......0.0..

0032: 0B 2B 06 01  04 01 81 9C  28 08 33 01  05 00
.+......(.3...

 

Received SNMP packet(s) from UDP: [10.44.44.72]:33460

  GETNEXT message

    -- iso.3.6.1.4.1.20008.8.51.1

 

module id = 7

no_of_params = 1

no_of_filters = 0

 

Sending 68 bytes to UDP: [10.44.44.72]:33460

0000: 30 42 02 01  01 04 06 70  75 62 6C 69  63 A2 35 02
0B.....public.5.

0016: 04 28 2E 20  C9 02 01 00  02 01 00 30  27 30 25 06    .(.
.......0'0%.

0032: 0B 2B 06 01  04 01 81 9C  28 08 34 00  04 16 30 33
.+......(.4...03

0048: 2F 31 30 2F  30 36 2D 31  34 3A 30 31  3A 31 35 20
/10/06-14:01:15

0064: 50 53 54 00                                           PST.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

_______________________________________________
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.