Hello there
i want to get in print command only the one column results.
ip interface print , BUT to get only the NAME
or
ip hotspot user print , and AGAIN ONLY the usernames
How is that possible?
Thank you!
foreach a in=[/interface find] do={:put [interface get $a name]}Hello there
i want to get in print command only the one column results.
ip interface print , BUT to get only the NAME
or
ip hotspot user print , and AGAIN ONLY the usernames
How is that possible?
Thank you!
{
:local list
/interface ethernet
:foreach i in=[find] do={
:set list ($list,[get $i name])
}
:put $list
}
ether1;ether2;ether3;ether4;ether5
:put ([/system clock print as-value ]->"date")
feb/05/2021
:put ([/interface ethernet print as-value ]->"name")
This is exactly what I want. I tried with "print as-value" but no luck. Looks like it is not possible to "print as-value" for only one properties/field.This will get all interface in to array list and then print it: