Re: Unable to interpret the timestamp of a file (232 Views)
Reply
Occasional Contributor
chanjee
Posts: 4
Registered: ‎01-11-2013
Message 1 of 4 (269 Views)
Accepted Solution

Unable to interpret the timestamp of a file

Hello Friends.

 

 

I am getting following error when Verifying the patch PHCO_40072 

It gives the error that one of the file  /usr/lib/security/hpux32/libpam_hpsec.so.1 has wrong mtime and should be corrected,How can i set mtime = 1251040080 for the file  /usr/lib/security/hpux32/libpam_hpsec.so.1 as i am unable to interpret 1251040080 in date format.Appreciate your comments..Thanks

 

#swjob -a log PPCBTS01-0072 @ PPCBTS01:/
=======  01/11/13 14:00:37 EAT  BEGIN verify AGENT SESSION (pid=9434)
         (jobid=PPCBTS01-0072)

       * Agent session started for user "root@PPCBTS01". (pid=9434)

       * Beginning Analysis Phase.
       * Target:           PPCBTS01:/
       * Target logfile:   PPCBTS01:/var/adm/sw/swagent.log
       * Reading source for file information.
       *     Configured    PHCO_40072.CORE-64SLIB,l=/,r=1.0
       *     Configured    PHCO_40072.CORE-ENG-A-MAN,l=/,r=1.0
       *     Configured    PHCO_40072.CORE-SHLIBS,l=/,r=1.0
       *     Configured    PHCO_40072.CORE2-64SLIB,l=/,r=1.0
       *     Configured    PHCO_40072.CORE2-SHLIBS,l=/,r=1.0
ERROR:   File "/usr/lib/security/hpux32/libpam_hpsec.so.1" should have
         mtime "1250998997" but the actual mtime is "1251040080".
ERROR:   Fileset "PHCO_40072.CORE2-SHLIBS,l=/,r=1.0" had file errors.

       * Summary of Analysis Phase:
             Verified      PHCO_40072.CORE-64SLIB,l=/,r=1.0
             Verified      PHCO_40072.CORE-ENG-A-MAN,l=/,r=1.0
             Verified      PHCO_40072.CORE-SHLIBS,l=/,r=1.0
             Verified      PHCO_40072.CORE2-64SLIB,l=/,r=1.0
ERROR:       Verify failed PHCO_40072.CORE2-SHLIBS,l=/,r=1.0
ERROR:   1 of 5 filesets had Errors.
       * 4 of 5 filesets had no Errors or Warnings.
ERROR:   The Analysis Phase had errors.  See the above output for
         details.


=======  01/11/13 14:00:39 EAT  END verify AGENT SESSION (pid=9434)
         (jobid=PPCBTS01-0072)

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,700
Registered: ‎03-06-2006
Message 2 of 4 (256 Views)

Re: Unable to interpret the timestamp of a file

You can simply use "swverify -F".

That time is of type time_t, seconds since the epoch, 1970: Sun, 23 Aug 2009 15:08:00 GMT

Mr google finds:

http://www.epochconverter.com/

Please use plain text.
Occasional Contributor
chanjee
Posts: 4
Registered: ‎01-11-2013
Message 3 of 4 (252 Views)

Re: Unable to interpret the timestamp of a file

Thanks Dennis
Please use plain text.
Honored Contributor
Bill Hassell
Posts: 14,170
Registered: ‎05-29-2000
Message 4 of 4 (232 Views)

Re: Unable to interpret the timestamp of a file

Here'a a tip on how to encode and decode EPOC time:

 

perl -le "print time"   ### shows the current EPOC time
1358026817

echo "0d1250998997=Y" | adb  ### decode your time stamp
         2009 Aug 22 23:43:17

 

 

 

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation