System Administration
Showing results for 
Search instead for 
Do you mean 

Unable to interpret the timestamp of a file

SOLVED
Go to Solution
Occasional Contributor

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)

3 REPLIES
Acclaimed Contributor Acclaimed Contributor

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/

Occasional Contributor

Re: Unable to interpret the timestamp of a file

Thanks Dennis
Highlighted
Honored Contributor Honored Contributor

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