Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 18 Oct 2018, 18:16
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Are there DHCP logs in Puppy?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
OldAcer

Joined: 22 Jul 2016
Posts: 28

PostPosted: Wed 23 May 2018, 20:55    Post subject:  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.
Back to top
View user's profile Send private message 
april

Joined: 14 Sep 2013
Posts: 1241
Location: Green Island baby!

PostPosted: Thu 24 May 2018, 05:30    Post subject:  

/var/log/messages

Code:
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
Back to top
View user's profile Send private message Yahoo Messenger 
jafadmin

Joined: 19 Mar 2009
Posts: 853

PostPosted: Thu 24 May 2018, 14:04    Post subject:  

@april = too lazy to add in the grep part Rolling Eyes

Code:
cat /var/log/messages | grep dhcp > MyDhcp.log


.. or maybe her pipes are just broke. Wink
Back to top
View user's profile Send private message 
april

Joined: 14 Sep 2013
Posts: 1241
Location: Green Island baby!

PostPosted: Fri 25 May 2018, 03:47    Post subject:  

I am certain that I don't have your proficiency with the command line . Wish I did.
Back to top
View user's profile Send private message Yahoo Messenger 
jafadmin

Joined: 19 Mar 2009
Posts: 853

PostPosted: Fri 25 May 2018, 05:29    Post subject:  

"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.)
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 1216

PostPosted: Fri 25 May 2018, 10:08    Post subject:  

I bet there is a debug level parameter that can be used to spit out more info then one wants to see in dmesg.
Back to top
View user's profile Send private message 
jafadmin

Joined: 19 Mar 2009
Posts: 853

PostPosted: Fri 25 May 2018, 10:13    Post subject:  

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:
cat /var/log/messages | grep "renew"
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0487s ][ Queries: 14 (0.0125s) ][ GZIP on ]