Santhosh Kumar Gunturu
2020-May-14 23:07 UTC
What is expiry time represents in this format
I see the output. root@X10SDV-8C-TLN4F:/mnt/config# cat /var/lib/libvirt/dnsmasq/mgmt-1br1.status [ { "ip-address": "192.168.27.8", "mac-address": "52:54:00:42:21:14", "hostname": "vyatta", "expiry-time": 1589500228 } ] Can you please explain what does the expiry-time mean ? What are its units ? Please let me know. Thanks & Regards Santhosh Kumar Gunturu
Seconds since UNIX epoch of midnight on 1 January 1970. See, for example, https://www.epochconverter.com/ to convert to a human readable format. Cheers, Peter On Fri, 15 May 2020, 00:08 Santhosh Kumar Gunturu, < santhosh.978.462@gmail.com> wrote:> I see the output. > > root@X10SDV-8C-TLN4F:/mnt/config# cat > /var/lib/libvirt/dnsmasq/mgmt-1br1.status > [ > { > "ip-address": "192.168.27.8", > "mac-address": "52:54:00:42:21:14", > "hostname": "vyatta", > "expiry-time": 1589500228 > } > ] > > Can you please explain what does the expiry-time mean ? What are its units > ? > Please let me know. > > Thanks & Regards > Santhosh Kumar Gunturu >
On 5/15/20 1:07 AM, Santhosh Kumar Gunturu wrote:> I see the output. > > root@X10SDV-8C-TLN4F:/mnt/config# cat > /var/lib/libvirt/dnsmasq/mgmt-1br1.status > [ > { > "ip-address": "192.168.27.8", > "mac-address": "52:54:00:42:21:14", > "hostname": "vyatta", > "expiry-time": 1589500228 > } > ] >I will just add to Peter's reply that this file is considered internal implementation and therefore its format can change at any point without warning. Is there an app that you are building on the top of it, or are you just asking out of curiosity? This file is used by NSS plugin though. So for instance if you enable 'libvirt' NSS plugin, you can 'ssh vyatta' or 'ping vyatta' directly. https://libvirt.org/nss.html Michal