Title: NetSNMP 5.0.3.1 Questions

Ive been working with Net-SNMP 5.3.0.1 for the past 6 months.  I started using mib2c.mfd.conf to generate the default template codes and modified them along the way to meet my project.  My snmp agent is functional and working well.  However, Ive a questions for the net-snmp-codes community:

1.      The index in one of my tables is a mac address, and the framework generates the following structure:

typedef struct myTable_mib_index_s {

   char       macAddress[6];

   size_t    macAddress_len;

} myTable_mib_index;

This in turn produces an oid with .1.3.6.1.4.1.x.x.x.x.6.0.71.76.16.84.46 where (0.71.76.16.84.46 is my mac address) I must include the 6 in front of the mac address for snmpget and snmpset commands, and here is an example:

snmpget v 1 c demo localhost myTableRowStatus.6.0.71.76.16.84.46

snmpset v 1 c demo localhost myTableRowStatus.6.0.71.76.16.84.46 = 2

My question is how can I get rid of the 6 (mac address len) so my index is simply the mac address itself?

Thank you.

Hao Phan

Network Administration System

Wireless Systems Business Unit

M/A-COM Lowell, MA

www.macom.com

P: 978-442-4049

F: 978-442-5353

_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to