|
Regarding MacAddress usage in net-snmp
From: Sasikumar <sasi_bkumar@ya...> - 2009-04-29 14:44
|
Hi,
I have implemented a MIB with one attribute whose data type is MacAddress in the *.c files are generated using mib2c and data type is mentioned as ASN_OCTET_STR
hence I am filling the unsigned char ucMacAddr[6] with hex values but when i do snmp get I am getting the following value as the output.
Data is being filled like this for testing purpose
ucMacAddr[0] = 0x11;
ucMacAddr[1] = 0x22;
ucMacAddr[2] = 0x33;
ucMacAddr[3] = 0x44;
ucMacAddr[4] = 0x55;
ucMacAddr[5] = 0x55;
MAC_ADDR-MIB::MacAddress.11.1 = STRING: 11:22:33:44
Please let me know anything is workng with this implementation.
Regards,
Sasikumar.B
Bring your gang together. Do your thing. Find your favourite Yahoo! group at http://in.promos.yahoo.com/groups/
|
| Thread | Author | Date | |
|---|---|---|---|
| Regarding MacAddress usage in net-snmp | Sasikumar <sasi_bkumar@ya...> |
|
|