The K Blag

Interesting Topics
  • Home
  • How To...
  • Who is The K?

Determine CSN update time from CSR in Directory Server 5/6

Published by Mike on December 22, 2008 12:50 pm under ldap, replication, sun

I needed to determine the update time for a particular attribute for one of my customers.  I knew I had ran across how to get it from a csn attribute.

If you can obtain the CSN of an attribute, ie: from the nscpentrywsi operational attribute), the timestamp is the first 8 bytes of the CSN, in hex format.

ie:

nscpentrywsi: cn;adcsn-494d685d000000010000;vucsn-494d685d000000010000: The K

The timestamp in hex is: 494d685d

With a bit of perl magic, we can obtain the localtime value:

perl -e ‘print localtime(hex(”494d685d”)) . “\n”;’

Which returns:

Sat Dec 20 16:49:17 2008

bookmark to
Add 'Determine CSN update time from CSR in Directory Server 5/6' to Del.icio.usAdd 'Determine CSN update time from CSR in Directory Server 5/6' to diggAdd 'Determine CSN update time from CSR in Directory Server 5/6' to redditAdd 'Determine CSN update time from CSR in Directory Server 5/6' to TechnoratiAdd 'Determine CSN update time from CSR in Directory Server 5/6' to Stumble Upon

No Comment

Comments are closed.

Posting your comment.

  • Categories

    • changelog
    • E-Mail
    • ldap
    • random
    • replication
    • sun
  • RSS Feeds

    • Posts RSS
    • Comments RSS
  •  

    March 2010
    M T W T F S S
    « Dec    
    1234567
    891011121314
    15161718192021
    22232425262728
    293031  
  • Blogroll

    • Konopka Family
    • The Gastromaniacs

Copyright © 2010 The K Blag