AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  How to make vgda timestamp human readable

    Posted Thu February 21, 2008 07:31 AM

    Originally posted by: Carlyle


    Hello.

    Searching for clvgdats returns no hits so it is very probable that this topic has not been seen here.

    Does anybody know how to interpret the output of clvgdats?

    For example, what is 47ab38f737e0acd6.

    It is obviously not seconds since epoch.
    It looks hexadecimal but neither does BCD make sense (digits greater than 9) nor does converting the hex codes to characters (G«8÷7à¬Ö).

    Thanks.

    Carlyle
    #AIX-Forum


  • 2.  Re: How to make vgda timestamp human readable

    Posted Fri February 22, 2008 10:31 AM

    Originally posted by: Carlyle


    If anybody has a suggestion on where I could better ask this question, I am open for input.
    #AIX-Forum


  • 3.  Re: How to make vgda timestamp human readable

    Posted Fri February 22, 2008 08:58 PM

    Originally posted by: dukessd


    Just a guess, take the first 8 digits as the seconds from epoch, you know how unix loves to pin things down to a billionth of a second.

    This gives 38.127967243784880771182141045155 years!

    I'll let you do the rest of the maths to see if it works.

    Message was edited by: dukessd
    #AIX-Forum


  • 4.  Re: How to make vgda timestamp human readable

    Posted Sat February 23, 2008 04:44 PM

    Originally posted by: jvk


    1. you have "47ab38f737e0acd6"
    2. take first 8 and you get "47AB38F"
    3. convert this:
    # perl -e 'my $t=localtime 0x47AB38F; print $t . "\n"'
    4. and you get Fri May 19 21:03:43 1972
    #AIX-Forum


  • 5.  Re: How to make vgda timestamp human readable

    Posted Sat February 23, 2008 08:50 PM

    Originally posted by: dukessd


    jkv,

    Did you mean:

    1. you have "47ab38f737e0acd6"
    2. take first 8 and you get "47AB38F7"
    3. convert this:
    1. perl -e 'my $t=localtime 0x47AB38F7; print $t . "\n"'

    ????
    #AIX-Forum


  • 6.  Re: How to make vgda timestamp human readable

    Posted Sun February 24, 2008 07:03 AM

    Originally posted by: jvk


    yes.
    Result (date/time) is much better if you really take first 8 and not only 7 as I did it by mistake. Thx for correction.

    perl -e 'my $t=localtime 0x47AB38F7; print $t . "\n"'
    Thu Feb 7 17:59:35 2008
    #AIX-Forum


  • 7.  Re: How to make vgda timestamp human readable

    Posted Mon February 25, 2008 08:07 AM

    Originally posted by: Carlyle


    thanks guys. now why didn't i think of that?
    #AIX-Forum


  • 8.  Re: How to make vgda timestamp human readable

    Posted Mon February 25, 2008 09:16 AM

    Originally posted by: MarkTaylor


    Why not just use the readvgda command which gives you all the data you may need about the vgda in human readable format ?

    Rgds
    Mark Taylor

    Message was edited by: MarkTaylor
    #AIX-Forum


  • 9.  Re: How to make vgda timestamp human readable

    Posted Mon February 25, 2008 09:46 AM

    Originally posted by: Carlyle


    I am already getting the timestamp with clvgdats to sync the nodes of a cluster. This is a corrective routine run after discovering that somebody else forgot to sync and simply reports when it was forgotten.
    #AIX-Forum