deciphering omapi timestamps
Duane Cox
duanec at mail.illicom.net
Wed Dec 6 18:19:03 UTC 2006
I am using this function (bash):
function omapi {
omshell << EOF | grep -v "^>"
server $1
port $PORT
key $KEY $SECRET
connect
new lease
set ip-address = $2
open
EOF
}
To print out this message:
ip-address = 3f:fc:e8:de
ip-address = 3f:fc:e8:de
state = 00:00:00:02
dhcp-client-identifier = 01:00:c0:9f:e5:11:e7
client-hostname = "acer-66b71ea2a4"
subnet = 00:00:00:03
pool = 00:00:00:04
hardware-address = 00:c0:9f:e5:11:e7
hardware-type = 00:00:00:01
ends = 45:77:17:9e
starts = 45:76:fb:7e
tstp = 45:77:25:ae
tsfp = 45:77:25:ae
atsfp = 45:77:25:ae
cltt = 45:76:fb:7e
vendor-string = "MSFT 5.0"
mac-address = "00:c0:9f:e5:11:e7"
Is there any way to rewrite the timestamps for the lease ends/starts times into a human readable form?
Thanks,
Duane Cox
More information about the dhcp-users
mailing list