I’ve found that under Device > TCPIP > Address – There is the IP address of the device, Padded and unpadded. Very convenient. Why is there not the same for Physical Address? I’ve checked among the different manufactures of devices that we have and there simply isn’t one.
The first and fourth child Network Adapter record does not contain and physical address field or is null. The second and third have a value, but the 2nd record’s Physical address field is all zeros. Clearly in this situation the third record would be the obvious real mac address to use. However not all are this obvious.
So my Idea is that using some VBS and a calculation rule, I may be able to iterate through the child records and write them all to an array, then identify the best mac to grab. Then write it to the Physical address field on the MP_AP_Devices table.
|Calculation Rule VBS|
For x = 1 to 10
macAddress(x-1) = !Device.Network Adapters.Network Adapter.Physical Address!
RetValue = (Join(!Device.Network Adapters.Network Adapter.Physical Address!) & " ")
There's a few obvious issues here:
1. I am able to iterate through the MacAddress Array, however, not able to iterate through the variable reference to Physical Address. Not sure if that's even possible or how to try that..
2. I decided to join all the strings together on the final line. There is no mechanism here to break down the strings and device which is most likely the MAC address.
Btw, in case anyone wants to ask for some reason, were on version 18.3 about 7500 Managed and 3000 Asset Control..