Currently we can do the following in our script to create variable which holds the serial of the device:
:global serial [/system routerboard get serial-number]
However, we would like to set a variable which holds the version of the device for example:
:global serial [/system routerboard get version]
The above does not work…
I have tried doing the following:
:global version [/system resource print]
However, not only does it contain more information than what we need, when I print out the variable with
:put $version
it comes up with
input does not match any value of value-name
.
Any help would be much appreciated…