wrong values on restfull api

Document ID : KB000095653
Last Modified Date : 16/05/2018
Show Technical Document Details
Issue:
Interface MAC are correct shown in Oneclick, but API request give us a wrong value but not for all interfaces.
Running the following restful api xml call:
<?xml version="1.0" encoding="UTF-8"?> 
<rs:model-request xmlns:rs="http://www.ca.com/spectrum/restful/schema/request" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.ca.com/spectrum/restful/schema/request ../../../xsd/Request.xsd "> 
  <rs:target-models> 
    <rs:model mh="0x54e0021d"/>
  </rs:target-models> 
  <rs:requested-attribute id="0x11348"/>
  <rs:requested-attribute id="0x11f6f"/>
  <rs:requested-attribute id="0x1134b"/>
  <rs:requested-attribute id="0x12a1f"/>
  <rs:requested-attribute id="0x11f7e"/>
  <rs:requested-attribute id="0x10e3f"/>
  <rs:requested-attribute id="0x110df"/>
  <rs:requested-attribute id="0x10e40"/>
  <rs:requested-attribute id="0x1134c"/>
  <rs:requested-attribute id="0x220018"/>
  <rs:requested-attribute id="0x12e82"/>
  <rs:requested-attribute id="0x11ee3"/>
  <rs:requested-attribute id="0x12b45"/>
  <rs:requested-attribute id="0x12bbd"/>
  <rs:requested-attribute id="0x11319"/>
  <rs:requested-attribute id="0x11321"/>
  <rs:requested-attribute id="0x11318"/>
  <rs:requested-attribute id="0x1131f"/>
  <rs:requested-attribute id="0x11ee2"/>
  <rs:requested-attribute id="0x12980"/> 
</rs:model-request>

for some interfaces customer is getting in output for the attribute "0x220018"  some garbage eg:
...
 <attribute id="0x220018">,A8$M?
...

Via CLI interface the attribute shows the correct value:

> show attributes mh=0x54e0021d | grep 0x220018
0x220018 Physical_Addr 2C.41.38.24.4D.20


 
Environment:
Spectrum 10.2.3 
Cause:
Customer found the root cause of issue with another SNMP-Tool. It looks like the switch does deliver the garbage.
Resolution:
Work-around
To get the MAC address of interfaces modify the xml file and use the 0x110df attribute instead of 0x220018
The restful api call returned the correct values for the 0x110df attribute.