hey guys,
pretty new to scripting here....i'm looking for a way to add to an existing script the ability to automatically set the system identity, based on the MAC address of the WAN interface.
what i want it to do is get the MAC address of the interface of choice (which will be specified by the variable) and set the system identity to that value.
so basically:
:global IDENTITY xxx (where xxx is the name of the interface, i.e., ether1, ether2, etc).
i know that /system identity set name=xx:xx:xx:xx:xx:xx is how to set the system identity, but i just don't know how to get the name set to the value that is pulled when setting the variable.
i'd appreciate any help you guys could provide