- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to get the core creation date
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2002 10:15 PM
06-17-2002 10:15 PM
how to get the core creation date
Thanks and Regards
Vishal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2002 10:43 PM
06-17-2002 10:43 PM
Re: how to get the core creation date
But be aware that this value can be modified by a user if he so desires.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2002 11:09 PM
06-17-2002 11:09 PM
Re: how to get the core creation date
I hope this help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2002 12:35 AM
06-18-2002 12:35 AM
Re: how to get the core creation date
Take the scenario where u have a coredump and u have ftped to another machine after a day. The ctime of the core will not reflect the true value. I don't think 'what' helps.
I reckon, we can get it from the data structures of the core header, if it stores the creation time there. I am searching the net to get the format.
Can any one help me ...
Thanks and Regards
Vishal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2002 01:04 AM
06-18-2002 01:04 AM
Re: how to get the core creation date
Assuming that the core-file is from an
application, not from a system-panic,
I do not think you will find info about when
the core-file was generated in the core-file
itself.
man core
will give you some info about the format of
the file.
You will probably have to get the time-info
from the file-system where the core-file
was created.
Regards
Olav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2002 01:13 AM
06-18-2002 01:13 AM
Re: how to get the core creation date
I have just tried a
strings core | grep :
and the very last line displayed the time and date of the core dump.
strings core | grep "/2002"
does the same, but better.
Hth
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2002 02:03 AM
06-18-2002 02:03 AM
Re: how to get the core creation date
Bad luck if they don't write tht info into the core. Correct me if I am wrong. HP execs follow the elf format ... right? So I shud be able to read the core if I know the elf structures. What do you think ? Checkout this site http://sources.redhat.com/ml/binutils/1999-10/msg00104.html
Paula, I tried that ... one problem here is - if it has some string tht has stored an older time (say I stored the time in a string when the program started and after 5 hours the program/server crashed), that will also come up. Or else there should be some field which says tht the creation time is so and so. Were u mentioning something like tht ?
Thanks and Regards
Visha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2002 02:22 AM
06-18-2002 02:22 AM
Re: how to get the core creation date
I would more than guess that the latest time within the file would be the time that the server wrote the contents of memory to the file?
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2002 03:34 AM
06-18-2002 03:34 AM
Re: how to get the core creation date
Hi,
Sorry for the dealy - I have had lunch..
I must admit I do not know the details here.
But, yes HP uses the elf format for 64-bit
binaries.
But it must be the format of the core-file
that determins if you will find the time
for the core-file creation - not the elf-
format.
Remeber the core file is a core image of
a process - and I would think that not all
info found in the elf-objects that make up
the executable file is loaded into memory
by the loader when the the program is started.
Olav