Community discussions

MikroTik App
 
cusco
newbie
Topic Author
Posts: 34
Joined: Tue Jun 29, 2010 2:34 pm

print parameter last-seen in dhcp lease -- format change req

Mon Jan 26, 2015 8:38 pm

Hi,

I've spent a few hours building a script to read dhcp leases, and parse them into a mysql db, with php

First of all, let me state that the 'terse' parameter, is not really machine friendly, but is parsable

That said, my real struggle was to be able to parse the last-seen parameter. At first sight seems like a time interval format.

But it is not ISO 8601 compliant ( http://en.wikipedia.org/wiki/ISO_8601 )

So could you please uniformize the time period format? Total seconds ago could be great, or the TIMESTAMP of when last seen ...

Thank you in advance

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], RBrogen and 145 guests