Novell Home

Decoding MAC addresses

Novell Cool Solutions: Question & Answer

Posted: 14 Dec 2005

Q:
When I export the MAC-Address - attribute 'dNIPMACAddress', then the result is like this: BwEIAAm08mM=

How can I convert or decode that result?

A:
It's Base64 encoded, because it's a binary value. If you decode it and then convert it to its ASCII representation, using the following command,

perl -e 'use MIME::Base64; print
unpack("H*",decode_base64("BwEIAAm08mM=")) . "\n";'

you'll get this:

0701080009b4f263

My guess would be that your MAC address is at the end, so it would be 08:00:09:b4:f2:63 (an HP one).

Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

Novell® Making IT Work As One

© 2008 Novell, Inc. All Rights Reserved.