Operating System - HP-UX
1752511 Members
4875 Online
108788 Solutions
New Discussion юеВ

Re: Time Stamp of Files generated on HP-UX

 
SOLVED
Go to solution
Narendra Uttekar
Regular Advisor

Time Stamp of Files generated on HP-UX

Hi,
The time stamp of files generated on HP-UX is in hh:mm format. Is there any possiblity to change the time stamp to hh:mm:ss format.
This is required to check the oracle logs generated on system with hh:mm:ss format, So that i can calculate the number of logs generated in seconds.

Thanks,
Narendra
4 REPLIES 4
Dennis Handly
Acclaimed Contributor
Solution

Re: Time Stamp of Files generated on HP-UX

Dennis Handly
Acclaimed Contributor

Re: Time Stamp of Files generated on HP-UX

I don't think any of the above threads talked about modifying ls.cat:
$ dumpmsg /usr/lib/nls/msg/C/ls.cat > ls.msg
$ vi ls.msg
Change message 12 to: 12 %b %2d %H:%M:%S
$ gencat ls.cat ls.msg
$ NLSPATH=%N.cat ll
... 369 Mar 4 21:31:15 ls.cat
Hein van den Heuvel
Honored Contributor

Re: Time Stamp of Files generated on HP-UX

Just google for: +hpux +file +time +seconds

You want to use the stat funrtion from perl or a program, or get ahold of the 'fstat' tool.

Perl will happily do all the file lookups (glob) and math and output formatting as well.

Mind you, IMHO... If you truly need the 'number of logs per second', then you are living in a crazy world!
Either this is a very sophisticate application doing lots of log-shipping to keep a DR site in sync, or it is a very dumb application which totaly undersized the redo logs.

WHY is the system creating more than 1 redo log every 'several minutes' ?

What will you do with the redo logs/second number?

Why not sample for a minute, count and divide?

hth,
Hein.
Narendra Uttekar
Regular Advisor

Re: Time Stamp of Files generated on HP-UX

Thanks for the solution.