Community discussions

MikroTik App
 
viktorc
just joined
Topic Author
Posts: 18
Joined: Mon Jun 05, 2006 4:00 pm

Finding in /ip arp by DHCP flag don't work

Wed Jun 22, 2016 11:03 am

In RouterOS 6.35.2 find by DHCP flag in /ip arp don't work.
It looks as if DHCP keyword is not recognized (printed in red color), but after pressing TAB, there is keyword DHCP in help:

/ip arp> :put [find <TAB>
.dead  .nextid  address  complete  dynamic    invalid      published
.id    DHCP     comment  disabled  interface  mac-address  where

/ip arp> :put [find DHCP=yes]
Command returns no result. There are records with DHCP flag set - for example:
/ip arp> :put [get *3093]

.id=*3093;DHCP=true;address=10.12.84.80;complete=true;disabled=false;dynamic=true;interface=xxx;invalid=false;mac-address=xxx;published=false
Find by dynamic flag (for example) works correct (returns many results). Find by dhcp (lowercase) is not recognized too (and returns nothing). Same (no) results after replacing yes value to true (DHCP=true or dhcp=true).

In RouterOS 5.26 DHCP flag in find command is red too, but it returns results. There is just cosmetic problem.

Is it bug or I do something wrong?

Thanks.
 
eugenekotlyarov
just joined
Posts: 1
Joined: Thu Feb 18, 2021 5:38 pm

Re: Finding in /ip arp by DHCP flag don't work  [SOLVED]

Wed Dec 08, 2021 9:42 am

Greetings.
For those who still stuck on this.
It doesn't work as "/ip arp find where DHCP=.." even on 6.49 in 2021.

Solution: just add "$"
"/ip arp find where $DHCP=.." works fine

Who is online

Users browsing this forum: No registered users and 12 guests