Get Mac Address When Interface is Not Plumbed

Command: prtconf -pv |grep local-mac-address

SunOS nbadm01 5.10 Generic_142900-06 sun4u sparc SUNW,Sun-Fire-V210

I recently had to determine the mac addresses for all 4 interfaces on a production server which I could not touch (it’s in production…duh). Only three of the 4 interfaces were plumbed so ifconfig -a would not help getting the mac-address of the 4th interface. I searched the internet and found someone else who had the problem and saw a suggestion that I tried in my situation. A note made by the person suggesting the command left me skeptical but I tried it anyway. Turns out it was exactly what I needed. Here is the command and the output.

bash-2.05$ /usr/sbin/prtconf -pv |grep local-mac-address
local-mac-address?:  ‘true’
local-mac-address:  0003ba40.95b3
local-mac-address:  0003ba40.95b4
local-mac-address:  0003ba40.95b5
local-mac-address:  0003ba40.95b6

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s