Hi, i need a variable with the MAC. I’ve experience with bash but nothing with RouterOS. If i run:
interface print
i can see the MAC, but how i put it on a variable?
hello,
for example:
:local macaddress [/interface get ether1 mac-address]
i’m doing something wrong:
[admin@MikroTik] > :local macaddress [/interface get ether1 mac-address]
[admin@MikroTik] > :put $macaddress
[admin@MikroTik] >
![]()
together:
:local macaddress [/interface get ether1 mac-address]; :put $macaddress