Are there DHCP logs in Puppy?

Using applications, configuring, problems
Post Reply
Message
Author
OldAcer
Posts: 55
Joined: Fri 22 Jul 2016, 17:52

Are there DHCP logs in Puppy?

#1 Post by OldAcer »

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.

april

#2 Post by april »

/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 

jafadmin
Posts: 1249
Joined: Thu 19 Mar 2009, 15:10

#3 Post by jafadmin »

@april = too lazy to add in the grep part :roll:

Code: Select all

cat /var/log/messages | grep dhcp > MyDhcp.log
.. or maybe her pipes are just broke. :wink:

april

#4 Post by april »

I am certain that I don't have your proficiency with the command line . Wish I did.

jafadmin
Posts: 1249
Joined: Thu 19 Mar 2009, 15:10

#5 Post by jafadmin »

"cat" burps out the file to the console, but this pipe '|' grabs that output and redirects it to "grep" which discards all lines except those with the text "dhcp" in it. Then this pipe '>' redirects the remaining output to your file. (if you just ignore this last step it will go to the screen.)

s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

#6 Post by s243a »

I bet there is a debug level parameter that can be used to spit out more info then one wants to see in dmesg.

jafadmin
Posts: 1249
Joined: Thu 19 Mar 2009, 15:10

#7 Post by jafadmin »

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.
If you run dhcpcd manually you'll find that the lines april listed above are pretty much all that gets output by dhcp.

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"

OldAcer
Posts: 55
Joined: Fri 22 Jul 2016, 17:52

#8 Post by OldAcer »

The "Network Interfaces" tab of "Frisbee" tool (from Connection Wizard) has a button "View DHCP log", might be easier to navigate.

Post Reply