How to check the DHCP lease remaining time

Hello Community,
I am troubleshooting a connectivity issue on my Macbook pro which APPARENTLY ignores the DHCP ACK messages sent in reply to Unicast DHCP Requests (the ones sent when T1 timer expires at 50% of the lease time) from a particular DHCP server.
Do you happen to know the command which shows the current remaining lease time for the assigned DHCP IP address? I need that to confirm my assumptiom.
By checking in the /leases folder you may only see the original lease Start date, which is the time the initial DHCP DORA process took place. When the 'refresh' DHCP requests are sent after 50% of the lease, and consequently the DHCP ACKs from the server are received the value in that file does not change. That means that this command is not good to check what I need.
I.e.:
xxxxxxx-mac:db xxxxxxi$ sudo cat /private/var/db/dhcpclient/leases/en1-1,<omitted-MAC>
Password:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
          <key>IPAddress</key>
          <string>192.168.1.14</string>
          <key>LeaseLength</key>
          <integer>600</integer>
          <key>LeaseStartDate</key>
          <date>2012-03-02T09:16:14Z</date>
          <key>PacketData</key>
          <data>
          AgEGAKA9KL0AAAAAAAAAAMCoAQ7AqAEBAAAAAAAmuxA9XwAAAAAAAAAAAAAAAAAAAAAA
          AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
          AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
          AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
          AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABjglNjNQEFNgTAqAEBMwQAAAJY
          AQT///8AAwTAqAEBBgTAqAEBDwRob21lKgTDDQGZ/wAAAAAAAAAAAAAAAAAA
          </data>
          <key>RouterHardwareAddress</key>
          <data>
          6L6BA24U
          </data>
          <key>RouterIPAddress</key>
          <string>192.168.1.1</string>
</dict>
</plist>
Even when a subsequent DHCP ACK message is received that value remains unchanged.
I need a command or application which shows instead the actual lease timer.
thanks,
Riccardo

apparently I am not getting lucky by putting the question this way.. let me try another approach giving more background details.
PROBLEM:
When I am in a particular location my mac get disconnected from the network every 30 minutes when my DHCP IP address expires. The DHCP server grants 30 minutes IP leases only.
I took some capture (I sniffed DHCP transactions) and I could see that when 50% of the lease time is reached (T1) my mac sends a new unicast DHCP request to the DHCP server which replies immediately with a DHCP ACK confirming 30 more minutes.
Unfortunately I did not find any command to see if the lease gets actually extended.
What I see is that after few minutes (matching the 87.5% T2 timer) my match fires a new DHCP request, which is also answered immediately with a ACK. Then in the last minutes before the 30 minutes threshold I see many other requests which are also all answered. Nevertheless when the origianal 30 minutes lease expires my MAC releases the IP and start a new Discovery process (sending a bcast request). After few seconds the DORA process completes and usually the mac gets the same IP address. The issue for me is that in the meantime my VPN session to my corporate network goes down and all the services associated with that go down too (softphone, presence, chat, email etc).
I did some test in my place and I configured my DHCP server to assign IP addresses with a 30 minutes lease time too. Strangely the issue does not happen. On my place every 15 minutes (again the famous T1 timer = 50% of the lease) my mac sends a request and the DHCP replies with an ACK. This time apparently the lease gets extended as I don't see all the other requests. Needless to say that the IP does not get released at any time.
I compared the wireshark capture to spot any difference between that DHCP ACK I got in that given location and the one I got in my place but they look the same to me.
So the question is, how would you troubleshoot this issue? Which kinds of logs, outputs or debugs should I take?
thanks,
Riccardo

Similar Messages

  • How to check the number of remaining downloads on DPS dashboard?

    I think that after the renewal of Adobe DPS,
    Professionl/ Enterprise Edition users can chek the number of remaining downloads on DPS dashboard.
    How to check the number of remaining downloads on DPS dashboard?
    shimoawazu

    Is there a way to determine how many downloads have occurred on a professional account?  We have multiple apps on the Apple and Android app stores and would like to know how many downloads from our first 5,000 have been used.  Is there a way to view analytics from all of our apps at one time instead of having to log in to digitalpublishing.acrobat.com separately for each app?
    Andrew

  • How to check the Memory consumtions and time taken by a Java Program??

    HI all,
    I want to know how to check for the Memory Usage of an XML Parser.
    See, a product was developed completely in DOM parser and now I am replacing that thing with SAX Parser Completely, because the DOM parser was taking huge memory as u may have guessed.
    BUt the thig is that, now I want to check how much memory is being taken by the SAX parser alone and DOM parser alone so that I can compare them.
    Can anyone suggest me how to do that ???
    Thanx in Advance
    Kaushik

    Thanx boss ..thanx a lot
    I tried that, but in the API docs, it is mentioned that freeMemory()Returns the amount of free memory "in the system"
    and totalMemory() Returns the total amount of memory in the "Java Virtual Machine".
    So if I compare both the Values then would it give the Correct result to me ???? Beacuse the freeMemory() gives the data in terms of the Host System whereas totalMemory() provides the data in terms of Java Virtual Machine ..... are they Same ?????
    I think I am clear in explaining what exactly is going on my mind ...
    Please clarify
    Thanx again
    Kaushik

  • How to clear the dhcp leases in Cisco Network Registrar

    Hello,
    I have a setup with Cisco Network Registrar. We have a few scoops with the lease time set to forever. Now I want to reconfigure the scoops to have a 24h hour leasetime. But before this I would like to clear all the current leases. I have problems doing this. I have tried to delete the scoop and then create a new but the old leases is still there. Does anyone have any ides?

    I did not get it to work. I had to delete each lease in the subnet manually. I suggest you use the batch command to do it.
    Just go to the local/bin folder where the cnr is installed and issue the following:
    nrcmd -N username -P password -b <"PATH TO FILE"
    Just make a textfile with the commands you want to run as a batch like:
    lease 10.28.4.1 force-available
    You need to do one row for each ip.

  • How to check the contents of my time capsule back up

    My new Time Capsule has treid to back up my MAcBook since yesterday. In the Time MAchine list, I can find the folder but not the size of the back up or any other details which files etc. were backed up. The symbol in the upper part oif the sreen (what is hte name) is working or not.
    Time Capsule is also quite hot.
    I have connected the Time Capsule with ethernet to MacBook, not to my modem. Is that correct?
    BR maritafromhelsinki

    You also access it from the finder just double click on the time machine icon then you can see the backups on the drive right click on a backup and select get into.  Or you can open airport utility and click on the manual button, when your get to the next screen click on the disk up top then click on the time capsule in the window it will get you info.

  • How to check the last time a package has been compiled?

    How to check the last time a package has been compiled from sqlplus?

    LAST_DDL_TIME column in DBA_OBJECTS.

  • How to check the compilation time of C++ code on Xcode 6

    how to check the compilation time of C++ code on Xcode 6

    import java.util.Calendar;
    Calendar rightNow = Calendar.getInstance();  // gets the current date and time to millisec
    Calendar earlyTime = Calendar.getInstance().set(Calendar.HOUR_OF_DAY, 6).set(Calendar.MINUTE, 30);
    Calendar lateTime = Calendar.getInstance().set(Calendar.HOUR_OF_DAY, 8).set(Calendar.MINUTE, 0);
    if (rightNow.compareTo(earlyTime)> 0 && rightNow.compareTo(lateTime) < 0){
    // do something
    }Try this.

  • Help--how to check the exact time?

    Pls help me:
    How to check the accurate down-time when the Sun machine (with solaris 8 sparc) abnomally shutdown (eg. power failure)?
    or
    Is there any way to detect the exact time when I shutdown the Sun machine ?
    thanks.

    check /var/adm/messages ; uptime ; last ..
    there are quite a few method u can use

  • How to check the progress of statistics gathering on a table?

    Hi,
    I have started the statistics gathering on a few big tables in my database.
    How to check the progress of statistics gathering on a table? Is there any data dictionary views or tables to monitor the progress of stats gathering.
    Regds,
    Kunwar

    Hi all
    you can check with this small script.
    it lists the sid details for long running session like
    when it started
    when last update
    how much time still left
    session status "ACTIVE/INACTIVE". etc.
    -- Author               : Syed Kaleemuddin_
    -- Script_name          : sid_long_ops.sql
    -- Description          : list the sid details for long running session like when it started when last update how much time still left.
    set lines 200
    col OPNAME for a25
    Select
    a.sid,
    a.serial#,
    b.status,
    a.opname,
    to_char(a.START_TIME,' dd-Mon-YYYY HH24:mi:ss') START_TIME,
    to_char(a.LAST_UPDATE_TIME,' dd-Mon-YYYY HH24:mi:ss') LAST_UPDATE_TIME,
    a.time_remaining as "Time Remaining Sec" ,
    a.time_remaining/60 as "Time Remaining Min",
    a.time_remaining/60/60 as "Time Remaining HR"
    From v$session_longops a, v$session b
    where a.sid = b.sid
    and a.sid =&sid
    And time_remaining > 0;
    Sample output:
    SQL> @sid_long_ops
    Enter value for sid: 474
    old 13: and a.sid =&sid
    new 13: and a.sid =474
    SID SERIAL# STATUS OPNAME START_TIME LAST_UPDATE_TIME Time Remaining Sec Time Remaining Min Time Remaining HR
    474 2033 ACTIVE Gather Schema Statistics 06-Jun-2012 20:10:49 07-Jun-2012 01:35:24 572 9.53333333 .158888889
    Thanks & Regards
    Syed Kaleemuddin.
    Oracle Apps DBA
    Mobile: +91 9966270072
    Email: [email protected]

  • How to erase the existance of a Time capsule

    Hi,
    I would like to know how to erase the existance of a Time capsule, like it never existed, because sometimes I can see remains of my old network, and I'd like to know how to reset all this,
    sincerely

    Welcome to the discussions!
    You will want to do two things to get the TC back to total factory defaults:
    1)Return all configuration settings to factory defaults
    2)Erase your disk. (Do this only if you want to erase all of your backups).
    Power down the TC for a few minutes
    Hold in the reset button and KEEP holding it in as you plug the power back in
    Release the reset button after approximately 10 seconds
    Your configuration is now reset to factory defaults.
    To erase the disk:
    Open AirPort Utility, click Manual Setup
    Click the Disk icon at the top of the setup pane
    Click the Disks tab just below the icons
    Click Erase. Choose your erase options only if you want to erase all backups.
    That's it.

  • Help! how to check the SQL run in Oracle?

    Hi all,
    I have a problem. the developer said the SQL written in Java code are not the one executed in Oracle DB. that mean the query is some how manipulated by some PL/SQL so the final query run in Oracle is different. So can someone teach me how to check the actual SQL run in Oracle?
    Thanks a lot.
    Regards,
    Jason

    Hi Michel Thanks. But it looks like the query stored in v$sqlarea is not the final executable SQL. for example, the code in application is "select column_A from default_table where column_A = ?" and this ? will be given some value in run time. the query stored in v$sqlarea will be like "select column_A from default_table where column_A = :1"... what is this :1?
    Also if some PL/SQL procedure appends some condition to the SQL, is it possible to view the full query from database side?
    ok, let me try trace and tkprof first.

  • How to find the last update date time and user of record field peoplecode

    how to find the last update date time record field peoplecode?
    Thank you.

    One can check the last update date time using the following query
    SELECT LASTUPDDTTM FROM PSPCMPROG WHERE OBJECTVALUE1 LIKE 'RECNAME' AND OBJECTVALUE2 LIKE 'FIELDNAME'

  • How to check the usage of ram and cpu Performance for the particular application like sqlserver ,ms word

    how to check the usage of ram and cpu  Performance for the particular application like sqlserver ,ms word
    ranki

    Hi,
    You can use Performance Monitor and add the required counters.
    Check the below Technet article on Performance Monitor.
    http://technet.microsoft.com/en-us/library/cc749249.aspx
    Below are the steps to monitor the process in Performance Monitor.
    - Go to the Performance Monitor. 
    - Right-click on the graph and select "Add Counters".
    - In the "Available counters" list, open the "Process" section by clicking on the down arrow next to it. Select "% Processor Time" (and any other counter you want).
    - In the "Instances of selected object" list, select the process you want to track. Then click on "Add >>" button. Click on OK.
    Regards,
    Jack
    www.jijitechnologies.com

  • How to check the unused users in portal.

    Hi Guru,
    We are doing auditing in Portal server.Can any tell us
    How to check the unused users in portal?.
    Regards,
    Vivek

    Use portal activity reporting  for monitoring the users. This way you can monitor the users in the portal who logged on to the portal.
    Below are things you can monitor from portal activity report iview
    1) number of users logged on during the period of time.
    2) Details of the users who logged on
    3) monitoring particular iview/page
    Check the below threads for more help
    http://help.sap.com/saphelp_nw04s/helpdata/en/47/87329cc84a199ce10000000a42189d/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/47/87346dc84a199ce10000000a42189d/frameset.htm
    Raghu

  • How to check the all scheduled concurrent programs.

    Hi All,
    APPS : 11.5.10.2
    DB:9.2.0.8
    how to check the all scheduled concurrent programs at a time, is their any script for this?
    Thanks a million in advance.

    Hi,
    Please refer to the following threads.
    How to know The request is scheduled or not??
    How to know The request is scheduled or not??
    Need Report or Query to see all scheduled jobs
    Need Report or Query to see all scheduled jobs
    Regards,
    Hussein

Maybe you are looking for

  • Deploy Shared Variables

    I'm having an issue with using SVE. I'm using LV 8.6 (cannot upgrade to 2010 at this time, have to "make it work"). I've used shared variables before with an HMI and PXI but my setup is different now: PXI (called my target) that "talks" to different

  • My I phone 4 keeps going to voice call.  Voice call is turned off in my settings... how do i stop this?

    My I phone 4 keeps going to voice call.   This happens when I push the home button.  It also happens when the phone is just laying on my desk or in my pocket.  I have turned phone off and on.  I have done a hard restart also.  The home buttom seems s

  • To cancel GR with partial Quantity

    Dear All, i have made gr for 5 Qty now i want to cancel the GR for 2nos how can i do this regards

  • Jdeveloper 11g deployed jar not running - Windows 7

    After I deployed a simple form to a jar, the following message comes up when trying to run with command: java -jar  sw.jar Exception in thread "main" java.lang.NoClassDefFoundError: oracle/jbo/uicli/controls/JUNavigationBar Caused by: java.lang.Class

  • Procedure hangs while create or replace!

    Dear All, My Database is Oracle 11g RAC. I did few changes in one of my procedure and wanted to re-create it using CREATE OR REPLACE procedure... The statement hangs for a long time and the concurrency in OEM raises up to a very high level. I tried t