This is a multi-part message in MIME format.

--===============1816227451==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C8A0D4.33A33B8E"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C8A0D4.33A33B8E
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hello,

=20

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.

=20

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.

=20

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.

=20

filesize OBJECT-TYPE

SYNTAX INTEGER

MAX-ACCESS read-write

STATUS current

DESCRIPTION ""

=20

::=3D { filesTblEntry 5 }

=20

=20

=20

getNtpServer OBJECT-TYPE

SYNTAX RowStatus

MAX-ACCESS read-write

STATUS current

DESCRIPTION ""

=20

::=3D { rsys 50 }

=20

ntpserverTblTable OBJECT-TYPE

SYNTAX SEQUENCE OF NtpserverTbl

MAX-ACCESS not-accessible

STATUS current

DESCRIPTION

"

"

=20

::=3D { rsys 51 }

=20

ntpserverTblEntry OBJECT-TYPE

SYNTAX NtpserverTbl

MAX-ACCESS not-accessible

STATUS current

DESCRIPTION ""

=20

=20

INDEX { ntpservername, index }

=20

::=3D { ntpserverTblTable 1 }

=20

NtpserverTbl ::=3D SEQUENCE {

ntpservername DisplayString,

index INTEGER

}

=20

ntpservername OBJECT-TYPE

SYNTAX DisplayString

MAX-ACCESS read-write

STATUS current

DESCRIPTION ""

=20

::=3D { ntpserverTblEntry 1 }

=20

=20

index OBJECT-TYPE

SYNTAX INTEGER

MAX-ACCESS read-write

STATUS current

DESCRIPTION ""

=20

::=3D { ntpserverTblEntry 2 }

=20

=20

=20

getdate OBJECT-TYPE

SYNTAX DisplayString

MAX-ACCESS read-write

STATUS current

DESCRIPTION ""

=20

::=3D { rsys 52 }

=20

=20

=20

Snmpget next output:

=20

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

=20

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

=20

=20

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.

=20

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

35 20 50 53 54 00

=20

Smnpd daemon debug output:

=20

NET-SNMP version 5.4.1

=20

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

=20

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

GETNEXT message

-- iso.3.6.1.4.1.20008.8.51.1

=20

module id =3D 7

no_of_params =3D 1

no_of_filters =3D 0

=20

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.

=20


------_=_NextPart_001_01C8A0D4.33A33B8E
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

=3D"urn:schemas-microsoft-comfficeffice" =
xmlns:w=3D"urn:schemas-microsoft-comffice:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">


charset=3Dus-ascii">









style=3D'font-size:10.0pt;
font-family:Arial'>Hello,>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>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.>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>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.>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>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.>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>filesize OBJECT-TYPE>>



style=3D'font-size:10.0pt;
font-family:Arial'>   
SYNTAX       =
INTEGER>>



style=3D'font-size:10.0pt;
font-family:Arial'>    MAX-ACCESS   =
read-write>>



style=3D'font-size:10.0pt;
font-family:Arial'>   
STATUS       =
current>>



style=3D'font-size:10.0pt;
font-family:Arial'>    DESCRIPTION  =
"">>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>    ::=3D { filesTblEntry  5 =
}>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>getNtpServer OBJECT-TYPE>>



style=3D'font-size:10.0pt;
font-family:Arial'>   
SYNTAX       =
RowStatus>>



style=3D'font-size:10.0pt;
font-family:Arial'>    MAX-ACCESS   =
read-write>>



style=3D'font-size:10.0pt;
font-family:Arial'>   
STATUS       =
current>>



style=3D'font-size:10.0pt;
font-family:Arial'>    DESCRIPTION  =
"">>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>    ::=3D { rsys  50 =
}>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>ntpserverTblTable =
OBJECT-TYPE>>



style=3D'font-size:10.0pt;
font-family:Arial'>    =
SYNTAX     
SEQUENCE OF NtpserverTbl>>



style=3D'font-size:10.0pt;
font-family:Arial'>    MAX-ACCESS  =
not-accessible>>



style=3D'font-size:10.0pt;
font-family:Arial'>    =
STATUS     
current>>



style=3D'font-size:10.0pt;
font-family:Arial'>    =
DESCRIPTION>>



style=3D'font-size:10.0pt;
font-family:Arial'>        =
">>



style=3D'font-size:10.0pt;
font-family:Arial'>        =
">>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>    ::=3D { rsys  51 =
}>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>ntpserverTblEntry =
OBJECT-TYPE>>



style=3D'font-size:10.0pt;
font-family:Arial'>   
SYNTAX       =
NtpserverTbl>>



style=3D'font-size:10.0pt;
font-family:Arial'>    MAX-ACCESS  =
not-accessible>>



style=3D'font-size:10.0pt;
font-family:Arial'>   
STATUS       =
current>>



style=3D'font-size:10.0pt;
font-family:Arial'>    DESCRIPTION  =
"">>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>    INDEX {  ntpservername,  =
index
}>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>    ::=3D { ntpserverTblTable  1 =
}>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>NtpserverTbl ::=3D SEQUENCE =
{>>



style=3D'font-size:10.0pt;
font-family:Arial'>         =
 
ntpservername   DisplayString,>>



style=3D'font-size:10.0pt;
font-family:Arial'>   index   =
INTEGER>>



style=3D'font-size:10.0pt;
font-family:Arial'>}>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>ntpservername =
OBJECT-TYPE>>



style=3D'font-size:10.0pt;
font-family:Arial'>   
SYNTAX       =
DisplayString>>



style=3D'font-size:10.0pt;
font-family:Arial'>    MAX-ACCESS   =
read-write>>



style=3D'font-size:10.0pt;
font-family:Arial'>   
STATUS       =
current>>



style=3D'font-size:10.0pt;
font-family:Arial'>    DESCRIPTION  =
"">>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>    ::=3D { ntpserverTblEntry  1 =
}>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>index OBJECT-TYPE>>



style=3D'font-size:10.0pt;
font-family:Arial'>   
SYNTAX       =
INTEGER>>



style=3D'font-size:10.0pt;
font-family:Arial'>    MAX-ACCESS   =
read-write>>



style=3D'font-size:10.0pt;
font-family:Arial'>   
STATUS       =
current>>



style=3D'font-size:10.0pt;
font-family:Arial'>    DESCRIPTION  =
"">>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>    ::=3D { ntpserverTblEntry  2 =
}>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>getdate OBJECT-TYPE>>



style=3D'font-size:10.0pt;
font-family:Arial'>   
SYNTAX       =
DisplayString>>



style=3D'font-size:10.0pt;
font-family:Arial'>    MAX-ACCESS   =
read-write>>



style=3D'font-size:10.0pt;
font-family:Arial'>   
STATUS       =
current>>



style=3D'font-size:10.0pt;
font-family:Arial'>    DESCRIPTION  =
"">>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>    ::=3D { rsys  52 =
}>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial;font-weight:bold'>Snmpget next =
output:>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>bash-3.00$ snmpgetnext 10.44.46.183 -v2c -c public -r =
0 -d
enterprises.20008.8.51.1>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>Sending 46 bytes to =
10.44.46.183>>



style=3D'font-size:10.0pt;
font-family:Arial'>0000: 30 2C 02 01  01 04 06 70  75 62 6C =
69 
63 A1 1F 02    =
0,.....public...>>



style=3D'font-size:10.0pt;
font-family:Arial'>0016: 04 28 2E 20  C9 02 01 00  02 01 00 =
30 
11 30 0F 06    .(. =
........0.0..>>



style=3D'font-size:10.0pt;
font-family:Arial'>0032: 0B 2B 06 01  04 01 81 9C  28 08 33 =
01 
05 00          =
..+......(.3...>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>Received 68 bytes from =
10.44.46.183>>



style=3D'font-size:10.0pt;
font-family:Arial'>0000: 30 42 02 01  01 04 06 70  75 62 6C =
69 
63 A2 35 02    =
0B.....public.5.>>



style=3D'font-size:10.0pt;
font-family:Arial'>0016: 04 28 2E 20  C9 02 01 00  02 01 00 =
30 
27 30 25 06    .(. =
........0'0%.>>



style=3D'font-size:10.0pt;
font-family:Arial'>0032: 0B 2B 06 01  04 01 81 9C  28 08 34 =
00 
04 16 30 33    =
..+......(.4...03>>



style=3D'font-size:10.0pt;
font-family:Arial'>0048: 2F 31 30 2F  30 36 2D 31  34 3A 30 =
31 
3A 31 35 20    =
/10/06-14:01:15>>



style=3D'font-size:10.0pt;
font-family:Arial'>0064: 50 53 54
00         =
            &=
nbsp;           &n=
bsp;         PST.>>=



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.20008.8.52.0 =3D Hex-STRING: =
30 33 2F
31 30 2F 30 36 2D 31 34 3A 30 31 3A 31>>



style=3D'font-size:10.0pt;
font-family:Arial'>35 20 50 53 54 00>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial;font-weight:bold'>Smnpd daemon debug =
output:>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>NET-SNMP version 5.4.1>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>Received 46 bytes from UDP: =
[10.44.44.72]:33460>>



style=3D'font-size:10.0pt;
font-family:Arial'>0000: 30 2C 02 01  01 04 06 70  75 62 6C =
69 
63 A1 1F 02    =
0,.....public...>>



style=3D'font-size:10.0pt;
font-family:Arial'>0016: 04 28 2E 20  C9 02 01 00  02 01 00 =
30 
11 30 0F 06    .(. =
........0.0..>>



style=3D'font-size:10.0pt;
font-family:Arial'>0032: 0B 2B 06 01  04 01 81 9C  28 08 33 =
01 
05 00          =
..+......(.3...>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>Received SNMP packet(s) from UDP: =
[10.44.44.72]:33460>>



style=3D'font-size:10.0pt;
font-family:Arial'>  GETNEXT message>>



style=3D'font-size:10.0pt;
font-family:Arial'>    -- =
iso.3.6.1.4.1.20008.8.51.1>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>module id =3D 7>>



style=3D'font-size:10.0pt;
font-family:Arial'>no_of_params =3D 1>>



style=3D'font-size:10.0pt;
font-family:Arial'>no_of_filters =3D 0>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>Sending 68 bytes to UDP: =
[10.44.44.72]:33460>>



style=3D'font-size:10.0pt;
font-family:Arial'>0000: 30 42 02 01  01 04 06 70  75 62 6C =
69 
63 A2 35 02    =
0B.....public.5.>>



style=3D'font-size:10.0pt;
font-family:Arial'>0016: 04 28 2E 20  C9 02 01 00  02 01 00 =
30 
27 30 25 06    .(. =
........0'0%.>>



style=3D'font-size:10.0pt;
font-family:Arial'>0032: 0B 2B 06 01  04 01 81 9C  28 08 34 =
00 
04 16 30 33    =
..+......(.4...03>>



style=3D'font-size:10.0pt;
font-family:Arial'>0048: 2F 31 30 2F  30 36 2D 31  34 3A 30 =
31 
3A 31 35 20    =
/10/06-14:01:15>>



style=3D'font-size:10.0pt;
font-family:Arial'>0064: 50 53 54 =
00           &nbsp=
;            =
            &=
nbsp;     
PST.>>



style=3D'font-size:10.0pt;
font-family:Arial'>>









------_=_NextPart_001_01C8A0D4.33A33B8E--


--===============1816227451==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
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;198757...un.com/javaone
--===============1816227451==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users

--===============1816227451==--