Hi,
In MIB I have a table defined with three index of type integer.MacAddress.integer.
I had generated code using mib2c.create-dataset.conf ( version : net-snmp-5.2.1 in Linux ). When I am sending snmpget as myColumn.1.6.170.170.170.170.170.170.1 in agent/helper/table.c snmpd log prints index as 1 , AA AA AA AA AA AA and 1, but if I send as myColumn.1.170.170.170.170.170.170.1 in agent/helper/table.c snmpd prints 1, “ “ and 1.
In the second case ( 1.170.170.170.170.170.170.1 , with out giving the index length ) table handler is not called and for the snmpget request I getting reply as “No Such Instance currently exists at this OID”
As per my understanding for fixed string index ( MacAddress is OCTECT-STRING of type 6 ), no need to give the length ( 6) as prefix. If I give MacAddress index with length mib2c table handler get called for get/set queries, but if I give with out index mib2c handler is not called and returned error for get/set queries )
In snmpget/snmpset request do I have to give index in some other format for MacAddress?
Do I have to change any code to support get/set call if length is not prefixed for MacAddress index ?
I had searched for some sample MacAddress index tables , I am not able to find the same , Please some one point a place where I can get details ?
Thanks in advance …
-SIGTERM
Santhosh
