Community discussions

MikroTik App
 
TroyQ
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 63
Joined: Thu Oct 20, 2016 10:02 pm

Export DHCP Leases to text file help

Mon Feb 06, 2017 10:09 am

Hi Everyone. I am trying to export my current dchp leases to a txt file for admin purposes.
I have tried "/ip dhcp-server lease print file=lease" and it works but the host names seem to be cut off, now I cannot create my document.
Please see pic attached. Any ideas?
ohs dhcp.JPG
You do not have the required permissions to view the files attached to this post.
 
neticted
Member Candidate
Member Candidate
Posts: 137
Joined: Wed Jan 04, 2012 10:36 am

Re: Export DHCP Leases to text file help

Mon Feb 06, 2017 5:08 pm

/ip dhcp-server lease export file=lease

but, that won't give you lease status.
 
frnet
just joined
Posts: 14
Joined: Fri Mar 13, 2009 1:20 pm
Location: Spain

Re: Export DHCP Leases to text file help

Tue Feb 07, 2017 9:14 am

Hi,
You can use:
/ip dhcp-server lease print file=lease terse
or
/ip dhcp-server lease print file=lease detail
to get all variables (indlude status and host-name)
 
TroyQ
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 63
Joined: Thu Oct 20, 2016 10:02 pm

Re: Export DHCP Leases to text file help

Sun Feb 12, 2017 10:18 am

/ip dhcp-server lease export file=lease

but, that won't give you lease status.
Cap.JPG
You do not have the required permissions to view the files attached to this post.
 
TroyQ
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 63
Joined: Thu Oct 20, 2016 10:02 pm

Re: Export DHCP Leases to text file help

Sun Feb 12, 2017 10:34 am

Hi,
You can use:
/ip dhcp-server lease print file=lease terse
or
/ip dhcp-server lease print file=lease detail
to get all variables (indlude status and host-name)
THANK YOU
:D :D :D :D :D

Who is online

Users browsing this forum: bp0 and 54 guests