Re: Sl 7: where did the dhcp.leases file go?

2015-06-21 Thread ToddAndMargo

On 06/21/2015 11:22 AM, Tom H wrote:

On Sun, Jun 21, 2015 at 2:22 AM, ToddAndMargo toddandma...@zoho.com wrote:


Okay, I give up.  What happened to

/var/lib/dhcp/dhclient-eth0.leases


ps ax | grep dhc | grep -v grep

and the -lf file will show you the lease.



Hi Tom,

Ah Ha!  This on SL7:

$ ps ax | grep dhc | awk -F -lf  '{print $2}' | awk '{print $1}' | 
grep lease


/var/lib/NetworkManager/dhclient-43af4b20-79ba-4ca8-aa9f-c0cdec45e25f-eth0.lease

Thank you for helping me with this!

-T


Re: Sl 7: where did the dhcp.leases file go?

2015-06-21 Thread ToddAndMargo

On 06/21/2015 03:35 PM, Steven Miano wrote:

Square brackets around your searched for expression will allow you to
remove a pipe (no need to grep -v grep):

ps ax | egrep -e d[h]cp.'*\.lease'


Hi Steve
   I see that is works, but don't not understand why.

-T


Re: Sl 7: where did the dhcp.leases file go?

2015-06-21 Thread ToddAndMargo

On 06/21/2015 11:22 AM, Tom H wrote:

On Sun, Jun 21, 2015 at 2:22 AM, ToddAndMargo toddandma...@zoho.com wrote:


Okay, I give up.  What happened to

/var/lib/dhcp/dhclient-eth0.leases


ps ax | grep dhc | grep -v grep

and the -lf file will show you the lease.



This is on SL6.  I haven't got my Sl7 VM fired up yet.

$ ps ax | grep dhc | awk -F -lf  '{print $2}' | awk '{print $1}'

/var/lib/dhclient/dhclient-eth1.leases


Thank you!

-T


Re: Sl 7: where did the dhcp.leases file go?

2015-06-21 Thread Tom H
On Sun, Jun 21, 2015 at 2:22 AM, ToddAndMargo toddandma...@zoho.com wrote:

 Okay, I give up.  What happened to

 /var/lib/dhcp/dhclient-eth0.leases

ps ax | grep dhc | grep -v grep

and the -lf file will show you the lease.