Title: Sending MacAddress type index for getBulk on table request


Hi,

     I have to send getbulk response for a table which has index MacAddress type. I am using net-snmp-5.2.1 in linux.
      I am putting the column name ( MIB-NAME::myColumn )  appended with index mac address into one string and calling read_objid as follows,

requests->agent_req_info->asp->pdu->variables->name_length += 1;
read_objid(Str,requests->agent_req_info->asp->pdu->variables->name,requests->agent_req_info->asp->pdu->variables->name_length);

and filling the value by calling set_var_typed_value() with values.

     This approach is works good for integer indexes, but it prints some "..K~``" as a index for snmpbulkget request.

sample snmpbulkget request response;

MY-MIB::myColumn."..K~``"=123


      How i can send tha MacAddress type values as a index, which can display MacAddress in the response as

MY-MIB::myColumn.'00:11:22:33:44:55"=123


     Since it is very critical for the product, Please help me if you have any idea on this Immediatly. ( I had gone throug standard i had tried lot of other ways, still i am getting the same output ). Please help me on this to solve this.


Regards
Kanda

Reply via email to