Community discussions

MikroTik App
 
Grumpy
just joined
Topic Author
Posts: 16
Joined: Mon Sep 11, 2023 9:06 am

cli: customize columns for print

Fri Sep 15, 2023 6:01 pm

Hi all,
if I go in Winbox IP/ARP List I can see among other things a column "Host Name".
If I use the cli
/ip/arp> print
or
/ip/arp> print detail
"Host name" is not shown. How can I achieve this?
 
msatter
Forum Guru
Forum Guru
Posts: 2942
Joined: Tue Feb 18, 2014 12:56 am
Location: Netherlands / Nīderlande

Re: cli: customize columns for print

Fri Sep 15, 2023 6:36 pm

I think it retrieves the host from active hostnames in leases of the DHCP server by matching the MAC.
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 4441
Joined: Sun May 01, 2016 7:12 pm
Location: California
Contact:

Re: cli: customize columns for print

Fri Sep 15, 2023 6:50 pm

I think that's right: hostname ONLY comes from a DHCP server.

But OP is right... it ONLY shown in winbox, and seemingly not available in CLI via "print proplist=" or even in a ":put [/ip/arp/get [find ...]]"