Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 19714

General • How to query the entry by "unset" parameter

$
0
0
/ip f n add chain=srcnat action=src-nat src-address=172.16.0.5 dst-address=192.168.0.5 to-address=10.1.1.5 (entry 1)
/ip f n add chain=srcnat action=src-nat dst-address=192.168.0.6 to-address=10.1.1.6 (entry 2)
/ip f n add chain=srcnat action=src-nat dst-address=192.168.0.7 to-address=10.1.1.7 (entry 3)
/ip f n add chain=srcnat action=src-nat src-address=0.0.0.0/0 to-address=10.1.1.8 (entry 4)

i want print the entry which one was not set the "src-address" (entry 2 and 3)

>ip f n print where src-address=""
>ip f n print where src-address=nil
>ip f n print where src-address=nill
>ip f n print where src-address=nul
>ip f n print where src-address=null
>ip f n print where src-address=unset
>ip f n print where src-address=""
>ip f n print where src-address="nil"
>ip f n print where src-address="nill"
>ip f n print where src-address="nul"
>ip f n print where src-address="null"
>ip f n print where src-address="unset"
(all were wrong)
how to write the command

thanks

Statistics: Posted by wwj — Thu Feb 08, 2024 11:32 am



Viewing all articles
Browse latest Browse all 19714

Trending Articles