How to make static all leased ip at a time by a single command, i need this feature for scripting.
I have tried
ip dhcp-server/lease/make-static numbers=“”
Thanks in advance.
How to make static all leased ip at a time by a single command, i need this feature for scripting.
I have tried
ip dhcp-server/lease/make-static numbers=“”
Thanks in advance.
What about
/ip/dhcp-server/lease
make-static [ find ]
I don’t know if this has to be a two-liner or it can be done as one liner (with possible modification of the expression inside square blackets to also include path before find command).
In general, whichever command takes index number as unnamed parameter, index can be replaced with square-bracket construct. Find returns list of pointers to objects which match … it takes parameter where followed by match expression, which makes it pretty versatile.