Need help with parsing data

I am trying to export only static ip addresses from the lease table. So far I have this that includes everything, but I just want the leases that have an actual static lease.

/ip dhcp-server lease
:foreach i in=[find] do={
   :put ([get $i comment].",".[get $i mac-address].",".[get $i address])
}

Try

/ip dhcp-server lease
:foreach i in=[find dynamic=no] do={
   :put ([get $i comment].",".[get $i mac-address].",".[get $i address])
}

Thanks Eric I’ll try. Good to see you back.

I’m always around. Just my main job takes more time now… :slight_smile: