Query dhcp server for last time Ip address was leased

Good Day !
i just ask if any one can get the last time an IP address was leased to a client in windows server 2008 R2 DHCP server
Mahmoud Sabry IT System Engineer

You can probably find it in the DHCP log if logging is enabled.
More About DHCP Audit and Event Logging

Similar Messages

  • AirPort Express DHCP Server for distribution of IP-addresses?

    Does the AirPort Express have an DHCP server that distribute local IP-addresses like other Wi-FI router does? If so, how do I set it up in the AirPort Utillity?

    +Seems I cant force it to only use a specific subset of the IP address range?+
    That would be up to the Netcomm router to provide the IP addresses to be used. I'm not familiar with Netcom, but a router with the type of capability I was thinking of could be configured to provide a certain range of IP addresses to a given device based on the MAC address of the device.
    The additional information that you just furnished indicates that you probably have a basic featured router designed for home network use that would not have this type of capability. In that case, the AirPort Express would not be able to be configured to Distribute a Range of IP Addresses. It would have to be configured as a "bridge" on the network and receive IP addresses from the main router.
    Or, the AirPort Express might be able to distribute the IP addresses that you want if you configure it to Share a public IP address. The rub here is that you will have what is known as a Double NAT on your network. You'll have two devices handling DHCP on the network when there should only really be one. It may or may not function correctly as this is not a recommended configuration.
    Message was edited by: Bob Timmons

  • Script to query DHCP server for computer name if IP address is known

    I run vulnerability scans of my company’s network. After scanning my network I have a lists of IP addresses with no computer names. Most of them appear to be VTC or telephony
    systems so they are don’t respond to NBTSTAT. I can manually
    find them in my DHCP server but the lists is quite long. Does anyone know of a script that I can run against the IP address lists that would query the DHCP server and return the associated machine name that is listed in the DHCP server? 

    Surely you have a DNS server and this is all set up and you're not relying on NetBIOS broadcasts or a WINS server?
    PowerShell:
    ([Net.Dns]::GetHostByAddress("123.123.123.123")).HostName
    -- Bill Stewart [Bill_Stewart]

  • Cisco Catalyst 6500 version 12.2(33)SXI13 configured as DHCP server for a VLAN responds to Windows 7 client with status code NOA

    Can anyone help figure out why the Catalyst 6509 is not able to assign an IPv6 address? Thank you.
    Cisco Catalyst 6500 version 12.2(33)SXI13 configured as DHCP server for a VLAN responds to Windows 7 client with status code NOADDRS-AVAIL(2). My configuration on the 6500 for the DHCPv6 server is:
    ipv6 dhcp database disk0://DHCPV6-DB
    ipv6 dhcp pool VLAN206IPV6
     prefix-delegation pool VLAN206IPV6-POOL
     dns-server 2620:B700:0:1001::53
     domain-name global.bio.com
    ipv6 local pool VLAN206IPV6-POOL 2620:B700:0:12C7::/65 65
    interface Vlan206
     description *** IPv6 Subnet ***  
     ip address 10.2.104.2 255.255.255.0
     ipv6 address 2620:B700:0:12C7::2/64
     ipv6 nd prefix 2620:B700:0:12C7::/64 14400 14400 no-autoconfig
     ipv6 nd managed-config-flag
     ipv6 dhcp server VLAN206IPV6
     standby version 2
     standby 0 ip 10.2.104.1
     standby 0 preempt
     standby 6 ipv6 2620:B700:0:12C7::1/64
     standby 6 preempt
    I'm getting a result from my debug as follows:
    Apr 10 16:28:02.873 PDT: %LINK-3-UPDOWN: Interface GigabitEthernet2/2, changed state to up
    Apr 10 16:28:02.873 PDT: %LINK-SP-3-UPDOWN: Interface GigabitEthernet2/2, changed state to up
    Apr 10 16:28:02.877 PDT: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet2/2, changed state to up
    Apr 10 16:28:03.861 PDT: IPv6 DHCP: Received SOLICIT from FE80::5D5E:7EBD:CDBF:2519 on Vlan206
    Apr 10 16:28:03.861 PDT: IPv6 DHCP: detailed packet contents
    Apr 10 16:28:03.861 PDT:   src FE80::5D5E:7EBD:CDBF:2519 (Vlan206)
    Apr 10 16:28:03.861 PDT:   dst FF02::1:2
    Apr 10 16:28:03.861 PDT:   type SOLICIT(1), xid 8277025
    Apr 10 16:28:03.861 PDT:   option ELAPSED-TIME(8), len 2
    Apr 10 16:28:03.861 PDT:     elapsed-time 101
    Apr 10 16:28:03.861 PDT:   option CLIENTID(1), len 14
    Apr 10 16:28:03.861 PDT:     00010001195FD895F01FAF10689E
    Apr 10 16:28:03.861 PDT:   option IA-NA(3), len 12
    Apr 10 16:28:03.861 PDT:     IAID 0x0FF01FAF, T1 0, T2 0
    Apr 10 16:28:03.861 PDT:   option UNKNOWN(39), len 32
    Apr 10 16:28:03.861 PDT:   option VENDOR-CLASS(16), len 14
    Apr 10 16:28:03.861 PDT:   option ORO(6), len 8
    Apr 10 16:28:03.861 PDT:     DOMAIN-LIST,DNS-SERVERS,VENDOR-OPTS,UNKNOWN
    Apr 10 16:28:03.861 PDT: IPv6 DHCP: Option IA-NA(3) is not supported yet
    Apr 10 16:28:03.861 PDT: IPv6 DHCP: Sending ADVERTISE to FE80::5D5E:7EBD:CDBF:2519 on Vlan206
    Apr 10 16:28:03.861 PDT: IPv6 DHCP: detailed packet contents
    Apr 10 16:28:03.861 PDT:   src FE80::21D:E6FF:FEE4:4400
    Apr 10 16:28:03.861 PDT:   dst FE80::5D5E:7EBD:CDBF:2519 (Vlan206)
    Apr 10 16:28:03.861 PDT:   type ADVERTISE(2), xid 8277025
    Apr 10 16:28:03.861 PDT:   option SERVERID(2), len 10
    Apr 10 16:28:03.865 PDT:     00030001001DE6E44400
    Apr 10 16:28:03.865 PDT:   option CLIENTID(1), len 14
    Apr 10 16:28:03.865 PDT:     00010001195FD895F01FAF10689E
    Apr 10 16:28:03.865 PDT:   option STATUS-CODE(13), len 15
    Apr 10 16:28:03.865 PDT:     status code NOADDRS-AVAIL(2)
    Apr 10 16:28:03.865 PDT:     status message: NOADDRS-AVAIL

    Hello,
    maybe hitting the following bug.
    Pv6 Address Assignment Support for IPv6 DHCP Server
    CSCse81385
    Hope this helps

  • DHCP Server not giving out IP Address to APPLE iPhone

    Hi, First off, I hope this is the correct forum....
    A little background, I have a very nice 16GB 3G iPhone (from Apple of course). It has no problem connecting to my wireless access point (cisco 1240). I have an old windows server that I can turn on as a dhcp server and it gets an address back right away, however my mac server (10.5) will no give it an address and I do not understand why. Here is the log.....
    Mar 16 19:06:37 macserver bootpd[37021]: server starting
    Mar 16 19:06:37 macserver bootpd[37021]: server name macserver.schmittg.com
    Mar 16 19:06:37 macserver bootpd[37021]: interface en0: ip 192.168.1.75 mask 255.255.255.0
    Mar 16 19:06:37 macserver bootpd[37021]: interface en2: ip 10.211.55.2 mask 255.255.255.0
    Mar 16 19:06:37 macserver bootpd[37021]: interface en3: ip 10.37.129.2 mask 255.255.255.0
    Mar 16 19:06:49 macserver bootpd[37021]: DHCP DISCOVER [en0]: 1,0:21:e9:5:d3:de <iPhone-5>
    Mar 16 19:06:49 macserver bootpd[37021]: service time 0.008083 seconds
    Mar 16 19:08:11 macserver bootpd[37021]: DHCP DISCOVER [en0]: 1,0:21:e9:5:d3:de <iPhone-5>
    Mar 16 19:08:11 macserver bootpd[37021]: service time 0.003807 seconds
    Mar 16 19:08:12 macserver bootpd[37021]: DHCP DISCOVER [en0]: 1,0:21:e9:5:d3:de <iPhone-5>
    Mar 16 19:08:12 macserver bootpd[37021]: service time 0.000683 seconds
    Mar 16 19:08:13 macserver bootpd[37021]: DHCP REQUEST [en0]: 1,0:21:e9:5:d3:de <iPhone-5>
    Mar 16 19:08:13 macserver bootpd[37021]: service time 0.001844 seconds
    Mar 16 19:08:24 macserver bootpd[37021]: DHCP DISCOVER [en0]: 1,0:21:e9:5:d3:de <iPhone-5>
    Mar 16 19:08:24 macserver bootpd[37021]: service time 0.000587 seconds
    Mar 16 19:08:25 macserver bootpd[37021]: DHCP REQUEST [en0]: 1,0:21:e9:5:d3:de <iPhone-5>
    Mar 16 19:08:25 macserver bootpd[37021]: service time 0.000409 seconds
    Mar 16 19:08:27 macserver bootpd[37021]: DHCP DECLINE [en0]: 1,0:21:e9:5:d3:de
    Mar 16 19:08:27 macserver bootpd[37021]: dhcpd: host 1,0:21:e9:5:d3:de declines IP 192.168.1.227 from server 192.168.1.1
    Mar 16 19:08:27 macserver bootpd[37021]: service time 0.001994 seconds
    What is wrong?
    Thanks!

    I am having a similar problem:
    ---------------- Client Request --------------------
    op = BOOTREQUEST
    htype = 1
    flags = 0
    hlen = 6
    hops = 0
    xid = 20714
    secs = 27
    ciaddr = 0.0.0.0
    yiaddr = 0.0.0.0
    siaddr = 0.0.0.0
    giaddr = 0.0.0.0
    chaddr = 0:4:13:2a:2f:ed
    sname =
    file =
    options:
    Options count is 9
    dhcpmessagetype (uint8): REQUEST 0x3
    maxdhcp_messagesize (uint16): 0x224
    requestedipaddress (ip): 192.168.1.66
    server_identifier (ip): 192.168.1.200
    host_name (string): m3-0004132A2FED
    parameterrequestlist (uint8_mult): {0x1, 0x3, 0x6, 0xf, 0x21, 0x42, 0xa0}
    vendorclassidentifier (string): snom-m3-SIP/01.25//10-Mar-09 16:36
    client_identifier (uint8_mult): {0x1, 0x0, 0x4, 0x13, 0x2a, 0x2f, 0xed}
    end (none):
    bootpd[3138]: DHCP REQUEST [en1]: 1,0:4:13:2a:2f:ed <m3-0004132A2FED>
    SELECT
    state=SELECT
    Sending: DHCP ACK (size 300)
    bootpd[3138]: replying to 192.168.1.66
    =================== Server Reply =====================
    op = BOOTREPLY
    htype = 1
    flags = 0
    hlen = 6
    hops = 0
    xid = 20714
    secs = 0
    ciaddr = 0.0.0.0
    yiaddr = 192.168.1.66
    siaddr = 192.168.1.200
    giaddr = 0.0.0.0
    chaddr = 0:4:13:2a:2f:ed
    sname = ryan-perrys-computer.local
    file =
    options:
    Options count is 8
    dhcpmessagetype (uint8): ACK 0x5
    server_identifier (ip): 192.168.1.200
    lease_time (uint32): 0xdec
    subnet_mask (ip): 255.255.255.0
    router (ip_mult): {192.168.1.1}
    domainnameserver (ip_mult): {208.67.222.222, 208.67.220.220}
    domain_name (string): wha
    end (none):
    bootpd[3138]: ACK sent <no hostname> 192.168.1.66 pktsize 300
    bootpd[3138]: service time 0.001879 seconds
    destination address 255.255.255.255
    ---------------- Client Request --------------------
    op = BOOTREQUEST
    htype = 1
    flags = 0
    hlen = 6
    hops = 0
    xid = 11587
    secs = 27
    ciaddr = 0.0.0.0
    yiaddr = 0.0.0.0
    siaddr = 0.0.0.0
    giaddr = 0.0.0.0
    chaddr = 0:4:13:2a:2f:ed
    sname =
    file =
    options:
    Options count is 4
    dhcpmessagetype (uint8): DECLINE 0x4
    server_identifier (ip): 192.168.1.200
    requestedipaddress (ip): 192.168.1.66
    end (none):
    bootpd[3138]: DHCP DECLINE [en1]: 1,0:4:13:2a:2f:ed
    bootpd[3138]: dhcpd: IP 192.168.1.66 declined by 1,0:4:13:2a:2f:ed
    marking host 192.168.1.66 as declined
    state=<none>
    bootpd[3138]: service time 0.001143 seconds
    destination address 255.255.255.255

  • How get the RVS4000's DHCP server to assign another IP address other than its own as the default gateway to its DHCP clients?

    Hi,
    I have a RVS4000 router with DHCP enabled and in router mode. 
    The LAN is 192.168.2.x.  The RVS4000 static IP address is 192.168.2.8
    The router is not the RVS4000 and is at 192.168.2.1
    The RVS4000 dhcp is assigning it's clients a default gateway of 192.168.2.8 instead of what I want 192.168.2.1.
    How can I get the RVS4000's DHCP server to assign another IP address other than its own as the default gateway to its DHCP clients?
    Thanks

    Hi Gail, you cannot do this. The router, as the DHCP server will only assign a default gateway of what IP interface the DHCP server runs on. If you have the default IP, the gateway is 192.168.1.1. If you create a second vlan, by default it would be 192.168.2.1.
    There are not configuration options for the built-in DHCP server. If you'd like to expand this functionality, you would need an external dhcp server.
    -Tom
    Please mark answered for helpful posts

  • DHCP Server for AIR-LAP521

    Hi,
    i have a test setup with a WLC-526, a few AIR-LAP521 and a 2621 with an ios 12.2.31 . I' not abel to associate the 521 to the WLC. I have configured an DHCP server on the Router with option 43 ascii "ap-managent-address" of the WLC. The DHCP server packet debug looks like :
    DHCPD: DHCPDISCOVER from
    DHCPD: Sending DHCPOFFER to
    DHCPD: broadcasting BOOTREPLY to
    DHCPD: DHCPDREQUEST received
    DHCPD: Sending DHCPACK to
    DHCPD: broadcasting BOOTREPLY to
    and about 20 sec later :
    DHCPD: DHCDPRELEASE message received
    Has someone an idea how to configure a dhcp server for a 521 correctly. ?
    Thankx
    J?rg

    Hi Carl
    It's the real address. And if you are using secondary IP's it's still the primary real address.
    Simon

  • I can't seem to decide between the 13" or the 15" MacBook Pro. I had a 14.5 in Dell which crashed on me for the third and last time. It was also my primary home computer. Is the 15" necessary or should I just get the 13"?

    I can't seem to decide between the 13" or the 15" MacBook Pro. I had a 14.5" I'm just used to that size. Dell which crashed on me for the third and last time. It was also my primary home computer. Is the 15" necessary or should I just get the 13"? I probably won't be doing any graphics or anything like that.

    It is really a matter of your personal preference. You have to choose between the extra carrying convenience of the smaller machine and the greater "real estate" of the bigger. I use a 15", and have not found it inconvenient for carrying, even on aircraft, where it has to share backpack space with an SLR camera and assorted lenses.

  • How to get the last time a record was modified or created ?

    Is there a way (hidden system fields for example, system view, other ?) to get the last time a record of a table was modified or the date it was created.
    Thanks for any help.
    Stiphane CAMPION

    blarman74 wrote:
    I know I could do this with a trigger, but I was wondering if there is a data dictionary view I can query to find the date/time a table was last updated. What I have is a table that is constantly getting hammered with new data being uploaded from a third party. We need to keep close tabs to verify that this datafeed is constantly running and bringing in new data. Because the data that comes in comes from multiple timezones and there are hundreds of lines, our attempts at monitoring by just looking at the data leave something to be desired.
    Any ideas?refer this links
    How to find Last modified/updated time of a particular table
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1590655700346557237
    Thanks

  • When was the last time a program was run?

    Experts, is there a way to know when was the last time a program was run (particularly, Z Program). We are trying to identify obsolete programs and avoid working on those programs that weren't touched for more than 3 years during our next upgrade. How can I find this? Any suggestion would be highly appreciated.
    Thank you.

    Hi,
    One way is to check TRDIR table(se11/se16) and display it. In the next screen once you will get 'Data Browser Table TRDIR' selection screen. There either you put the individual 'Z' program name in the 'Name' field & execute it or for all multiple entries execute it.
    Once you execute it with the particular Z prog. name then you will get the required details like CDAT(Created on),UNAM(Last changed by),UDAT(Changed On),SDATE(Standard selection screen generation: Date),IDATE(Selection screen generation: Date) etc.
    Hope this can help you.

  • The last time an index was used

    Hi to all, 
    I would like to know, if there is a way of knowing  the last time an index was used, or what indexes have never been used.
    Regards
    Eduardo Barrios
    Compañía Cervecera de Canarias S.A.
    Tfno.     922 568 246
    Fax.      922 670 600
    Correo   [email protected]

    Hi Eduardo,
    reading through the updates from Thomas and Volker, I was wondering if there was a bug in i5/OS that causes the "Last used date" information in the file description not to be updated properly for indexes. If you have the plan cache dump or database monitor active (i.e. quite current data in ST04), you could do the following to find out if indexes have been used by the SAP system without a proper update in the file description:
    1. List all indexes into a temporary output file:
        DSPFD FILE(R3<sid>DATA/ALL) TYPE(MBR) OUTPUT(*OUTFILE)
              FILEATR(*LF) OUTFILE(QTEMP/DSPFD)
    2. Compare output with database monitor data using STRSQL or SQLUTIL:
        SELECT T1.MBFILE, T1.MBUDAT, T2.QQTIME, T2.QQLIFN
          FROM QTEMP/DSPFD T1, R3<sid>DATA/SQ3001_DB4 T2,
               R3<sid>DATA/SYSINDEXES T3
         WHERE T1.MBFILE = T3.SYSTEM_INDEX_NAME
           AND T3.INDEX_NAME = T2.QQLIFN
         ORDER BY T1.MBUDAT
    If you find indexes, where the "Last Used Date" is smaller than the QQTIME value, you know that the
    file statistics are not updated properly. You could then open a PMR at IBM for that.
    On one of our internal systems I did not see a discrepancy, so it seems to me that the information is correct. Volker's experiences could be explained by the fact that indexes are not just used to implement SQL statements, but also for table statistics. I assume that the "Last used date" is not updated when the index was only used to obtain table statistics. With incomplete statistics, the optimizer may choose a different join order or access method, which can result in poor performance. So there is some risk involved when dropping an index that has a very old "Last used date", and you can only decide it by trying (with care!).
    Kind regards,
    Christian Bartels.

  • How to tell the last time a table was updated

    I know I could do this with a trigger, but I was wondering if there is a data dictionary view I can query to find the date/time a table was last updated. What I have is a table that is constantly getting hammered with new data being uploaded from a third party. We need to keep close tabs to verify that this datafeed is constantly running and bringing in new data. Because the data that comes in comes from multiple timezones and there are hundreds of lines, our attempts at monitoring by just looking at the data leave something to be desired.
    Any ideas?

    blarman74 wrote:
    I know I could do this with a trigger, but I was wondering if there is a data dictionary view I can query to find the date/time a table was last updated. What I have is a table that is constantly getting hammered with new data being uploaded from a third party. We need to keep close tabs to verify that this datafeed is constantly running and bringing in new data. Because the data that comes in comes from multiple timezones and there are hundreds of lines, our attempts at monitoring by just looking at the data leave something to be desired.
    Any ideas?refer this links
    How to find Last modified/updated time of a particular table
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1590655700346557237
    Thanks

  • Find Last time a procedure was called

    Hi DBAs,
    How to find when a procedure or function was called last time in 10g. For that matter even when a table was last accessed. If this can be done without enabling audit ? are there any such views or tricks to find such changes ?
    Thanks!

    Without auditing, this is not possible as a general rule.
    If a procedure has side effects, you could potentially look through the database to find those side effects. If it inserts a new row in a table with a CREATE_DATE of SYSDATE, that would be very helpful. If you're talking about a function that doesn't have side effects, however, that isn't an option. If the function or procedure runs for a relatively long period of time, its executions may be picked up in an AWR/ statspack report. But it's unlikely that every execution would be captured, it's unlikely that the history is kept particularly long, and it's not always trivial to search these reports for the last time a procedure was executed. And if you have a relatively quick procedure, it's unlikely that executions would ever be recorded.
    Segment-level statistics might give you hints about table accesses. But those statistics are cumulative since the last reboot. And there are likely background processes that touch every table at some interval (i.e. statistics gathering), which probably isn't the sort of "access" you're interested in.
    Justin

  • Need to find last time a table was used.

    I am in the process of cleaning out a group of staging tablespaces and I would appreciate some help finding the last time a table was used. (ie: records added, deleted, ect.) Is there an SQL statement that will do it? Any other suggestions?
    I will Appreciate any assistance.

    How can I activate the auditing? http://download-east.oracle.com/docs/cd/B19306_01/network.102/b14266/auditing.htm#i1011984
    Daljit Singh

  • HT1212 If I never synced to itunes and I restore the device. Will I lose unstored data? How can I check to see the last time my phone was backed up if I forgot the passcode to my phone?

    If I never synced to itunes and I restore the device. Will I lose unstored data? How can I check to see the last time my phone was backed up if I forgot the passcode to my phone?

    If you can't remember your passcode, you'll need to restore your phone.  If you never synched to iTunes, all data on your phone will be erased.  No way around this.

Maybe you are looking for

  • How To Change FONTS in NOTES

    Really does anyone know how to change the Font in NOTES? I have not seen a resolve in the discussions

  • Append SFW file name in action

    Sorry if this has been answered before. I found a lot of similar questions but no answers. If I record an action that includes Save for Web, I can either leave the name unchanged (and the individual file name will be used when I play the action) or c

  • Viewing Cannon Raw images in Bridge

    I normally shoot with my Nikon D3, But I recently borrowed a Canon. When viewing my Nikon Raw images in Bridge, I am able to see the Images. But when I try to view the Canon Raw Images, all I see are Icons. Is there a setting that allows me to see th

  • Crash when syncing iphone

    Itunes used to work fine, but now crashes everytime I plug my iphone in.  It gets partway through the sync, then quits with no error message.  If I stop the syncying, itunes is fine.  If i then select my iphone in the lefthand column, iTunes crashes.

  • Oracle Forms10g Study Documentation

    Please help me to find Oracle Forms10g Study Documentation Thank You