Are there DHCP logs in Puppy?
Are there DHCP logs in Puppy?
The "Auto DHCP" from Puppy Networking Wizzard has info that flies by. Is there a log file associated with the DHCP registration or that shows details of the last connection? "IP Info" from System->SystemStatus doesn't seem to have lease details etc.
/var/log/messages
Code: Select all
extract of a bit
May 24 17:23:57 MyHome daemon.info dhcpcd[8333]: wlan0: rebinding lease of 192.168.8.100
May 24 17:23:57 MyHome daemon.debug dhcpcd[8333]: wlan0: sending REQUEST (xid 0xab98417e), next in 3.4 seconds
May 24 17:23:57 MyHome daemon.debug dhcpcd[8333]: wlan0: acknowledged 192.168.8.100 from 192.168.8.1
May 24 17:23:57 MyHome daemon.debug dhcpcd[8333]: wlan0: probing for 192.168.8.100
May 24 17:23:57 MyHome daemon.debug dhcpcd[8333]: wlan0: sending ARP probe (1 of 3), next in 1.0 seconds
May 24 17:23:58 MyHome daemon.debug dhcpcd[8333]: wlan0: sending ARP probe (2 of 3), next in 1.5 seconds
May 24 17:24:00 MyHome daemon.debug dhcpcd[8333]: wlan0: sending ARP probe (3 of 3), next in 2.0 seconds
May 24 17:24:02 MyHome daemon.info dhcpcd[8333]: wlan0: leased 192.168.8.100 for 86400 seconds
May 24 17:24:02 MyHome daemon.debug dhcpcd[8333]: wlan0: renew in 43200 seconds, rebind in 75600 seconds
May 24 17:24:02 MyHome daemon.debug dhcpcd[8333]: wlan0: writing lease `/var/db/dhcpcd-wlan0.lease'
May 24 17:24:02 MyHome daemon.debug dhcpcd[8333]: wlan0: adding IP address 192.168.8.100/24
May 24 17:24:02 MyHome daemon.info dhcpcd[8333]: wlan0: adding route to 192.168.8.0/24
May 24 17:24:02 MyHome daemon.info dhcpcd[8333]: wlan0: adding default route via 192.168.8.1
May 24 17:24:02 MyHome daemon.debug dhcpcd[8333]: wlan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' REBOOT
May 24 17:24:02 MyHome daemon.err dhcpcd[8333]: script_runreason: /lib/dhcpcd/dhcpcd-run-hooks: WEXITSTATUS 1
May 24 17:24:02 MyHome daemon.debug dhcpcd[8333]: forking to background
May 24 17:24:02 MyHome daemon.info dhcpcd[8333]: forked to background, child pid 8432
May 24 17:24:02 MyHome daemon.debug dhcpcd[8432]: wlan0: sending ARP announce (1
@april = too lazy to add in the grep part
.. or maybe her pipes are just broke.
Code: Select all
cat /var/log/messages | grep dhcp > MyDhcp.log
If you run dhcpcd manually you'll find that the lines april listed above are pretty much all that gets output by dhcp.s243a wrote:I bet there is a debug level parameter that can be used to spit out more info then one wants to see in dmesg.
The OP seemed to be looking for the lease time, which is shown in the output. In fact, you could grep the output and filter for the word "renew" and get the exact line with the info needed.
Code: Select all
cat /var/log/messages | grep "renew"