:put [/interface ethernet get 0 mac-address ]
works too , but much shorter to type.
But it's also bullshit because numbers and ids shouldn't be used.
You could have saved yourself from necroposting with that shit.
The apparently correct one:
:put [/interface ethernet get [find where default-name=ether1] mac-address]
The apparently correct until someone not change the interface name
:put [/interface ethernet get ether1 mac-address]
The apparently correct shortest possible (until MikroTik do not add ambiguos values)
:put [/in et g [f default-name=ether1] ma]
The apparently correct short, but more readable (until MikroTik do not add ambiguos values)
:put [/int eth get [find default-name=ether1] mac]
But the only correct answer from the OP "
Get Mac Address first interface" is:
:put [/int get ([find]->0) mac-address]
So literally is "put on the CLI what is obtained from
Get the
Mac Address from the
first interface found"