hello everybody
i need some help
i have mikrotik and 75 radio vendor “ubnt” i want get just identity from /ip neighbor and use command “put” in terminal to show the radios as list with just identity name
and here is my code
{
:local identity [/ip neighbor get value-name=identity number=[/ip neighbor find]];
:put $identity
}
but it’s not working like list it’s only print one identity name
i want print like “list”
How?
PaulsMT
November 23, 2017, 4:15pm
2
prince1990love:
hello everybody
i need some help
i have mikrotik and 75 radio vendor “ubnt” i want get just identity from /ip neighbor and use command “put” in terminal to show the radios as list with just identity name
and here is my code
{
:local identity [/ip neighbor get value-name=identity number=[/ip neighbor find]];
:put $identity
}
but it’s not working like list it’s only print one identity name
i want print like “list”
How?
foreach neighbor in=[ip neighbor find] do={
:put [ip neighbor get $neighbor identity];
}
very very thanks PaulsMT
it’s working like a charm