Re: MAC Address As Index

2019-09-17 Thread Krishna Chaitanya
On Tue, Sep 17, 2019 at 5:09 PM Krishna Chaitanya wrote: > > On Tue, Sep 17, 2019 at 4:51 PM Bill Fenner wrote: > > > > On Tue, Sep 17, 2019 at 4:27 AM Krishna Chaitanya > > wrote: > >> > >> On Tue, Sep 17, 2019 at 5:18 AM Bill Fenner wrote: > >> > > >> > You can do this if you use

Re: MAC Address As Index

2019-09-17 Thread Krishna Chaitanya
On Tue, Sep 17, 2019 at 4:51 PM Bill Fenner wrote: > > On Tue, Sep 17, 2019 at 4:27 AM Krishna Chaitanya > wrote: >> >> On Tue, Sep 17, 2019 at 5:18 AM Bill Fenner wrote: >> > >> > You can do this if you use snmp_varlist_add_variable() to create the index >> > info (you can't use

Re: MAC Address As Index

2019-09-17 Thread Bill Fenner
On Tue, Sep 17, 2019 at 4:27 AM Krishna Chaitanya wrote: > On Tue, Sep 17, 2019 at 5:18 AM Bill Fenner wrote: > > > > You can do this if you use snmp_varlist_add_variable() to create the > index info (you can't use netsnmp_table_helper_add_indexes). The code > would be something like > > > >

Re: MAC Address As Index

2019-09-17 Thread Krishna Chaitanya
On Tue, Sep 17, 2019 at 5:18 AM Bill Fenner wrote: > > You can do this if you use snmp_varlist_add_variable() to create the index > info (you can't use netsnmp_table_helper_add_indexes). The code would be > something like > > table_info = SNMP_MALLOC_TYPEDEF(

Re: MAC Address As Index

2019-09-16 Thread Bill Fenner
at 2:12 PM Krishna Chaitanya > > wrote: > > > > > > On Mon, Aug 26, 2019 at 9:22 PM Bill Fenner wrote: > > > > > > > > On Tue, Aug 20, 2019 at 8:45 AM Krishna Chaitanya < > chaitanya.m...@gmail.com> wrote: > > > >> > > > >

Re: MAC Address As Index

2019-09-16 Thread Krishna Chaitanya
gt; wrote: > > >> > > >> Hi, > > >> > > >> When using MAC Address as an index ( I am using MacAddress type from > > >> SNMPv2-TC.) the output is incorrect because the length of the string > > >> is prefixed as mac a

Re: MAC Address As Index

2019-09-12 Thread Krishna Chaitanya
On Thu, Sep 12, 2019 at 6:59 PM Krishna Chaitanya wrote: > > On Wed, Sep 11, 2019 at 3:04 PM Niels Baggesen > wrote: > > > > On Wed, Sep 11, 2019 at 12:40:38PM +0530, Krishna Chaitanya wrote: > > > > BTW, somehow the response from Neils is missed but found it in the > > > > archive. > > > > > >

Re: MAC Address As Index

2019-09-12 Thread Krishna Chaitanya
On Wed, Sep 11, 2019 at 3:04 PM Niels Baggesen wrote: > > On Wed, Sep 11, 2019 at 12:40:38PM +0530, Krishna Chaitanya wrote: > > > BTW, somehow the response from Neils is missed but found it in the > > > archive. > > > > > >

Re: MAC Address As Index

2019-09-11 Thread Niels Baggesen via Net-snmp-coders
On Wed, Sep 11, 2019 at 12:40:38PM +0530, Krishna Chaitanya wrote: > > BTW, somehow the response from Neils is missed but found it in the archive. > > > > https://www.mail-archive.com/net-snmp-coders@lists.sourceforge.net/msg21705.html > > > > MacAddress TC from SNMPv2-TC is a fixed size string,

Re: MAC Address As Index

2019-09-11 Thread Krishna Chaitanya
ya.m...@gmail.com> wrote: > > >> > > >> Hi, > > >> > > >> When using MAC Address as an index ( I am using MacAddress type from > > >> SNMPv2-TC.) the output is incorrect because the length of the string > > >> is prefixed as mac

Re: MAC Address As Index

2019-09-03 Thread Krishna Chaitanya
On Tue, Aug 27, 2019 at 2:12 PM Krishna Chaitanya wrote: > > On Mon, Aug 26, 2019 at 9:22 PM Bill Fenner wrote: > > > > On Tue, Aug 20, 2019 at 8:45 AM Krishna Chaitanya > > wrote: > >> > >> Hi, > >> > >> When using MAC Address

Re: MAC Address As Index

2019-08-27 Thread Krishna Chaitanya
On Mon, Aug 26, 2019 at 9:22 PM Bill Fenner wrote: > > On Tue, Aug 20, 2019 at 8:45 AM Krishna Chaitanya > wrote: >> >> Hi, >> >> When using MAC Address as an index ( I am using MacAddress type from >> SNMPv2-TC.) the output is incorrect because the len

Re: MAC Address As Index

2019-08-26 Thread Bill Fenner
On Tue, Aug 20, 2019 at 8:45 AM Krishna Chaitanya wrote: > Hi, > > When using MAC Address as an index ( I am using MacAddress type from > SNMPv2-TC.) the output is incorrect because the length of the string > is prefixed as mac address is defined as OCTET STR there is

Re: MAC Address As Index

2019-08-22 Thread Niels Baggesen via Net-snmp-coders
On Tue, Aug 20, 2019 at 06:14:34PM +0530, Krishna Chaitanya wrote: > Hi, > > When using MAC Address as an index ( I am using MacAddress type from > SNMPv2-TC.) the output is incorrect because the length of the string > is prefixed as mac address is defined as OCTET STR there is

Re: MAC Address As Index

2019-08-20 Thread Krishna Chaitanya
On Tue, Aug 20, 2019 at 6:14 PM Krishna Chaitanya wrote: > > Hi, > > When using MAC Address as an index ( I am using MacAddress type from > SNMPv2-TC.) the output is incorrect because the length of the string > is prefixed as mac address is defined as OCTET STR there

MAC Address As Index

2019-08-20 Thread Krishna Chaitanya
Hi, When using MAC Address as an index ( I am using MacAddress type from SNMPv2-TC.) the output is incorrect because the length of the string is prefixed as mac address is defined as OCTET STR there is an extra byte and the last byte of mac address is interpreted as next OID. snmpwalk

Re: Need clarification regarding Mac Address as Index

2010-02-08 Thread Dave Shield
On 8 February 2010 05:00, Sasikumar sasi_bku...@yahoo.co.in wrote:    I am implementing Q-BRIDGE-MIB in this table is dot1qTpFdbTable which as dot1qTpFdbAddress as one of the Index. My question is when this table was queried the output contains length of the Mac address, Is this valid. No.

Need clarification regarding Mac Address as Index

2010-02-07 Thread Sasikumar
Hi All,    I am implementing Q-BRIDGE-MIB in this table is dot1qTpFdbTable which as dot1qTpFdbAddress as one of the Index. My question is when this table was queried the output contains length of the Mac address, Is this valid. Since length is present if the index(string) whose length is