HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Core file management with HP-UX
Operating System - HP-UX
1832690
Members
2575
Online
110043
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-06-2005 03:41 AM
06-06-2005 03:41 AM
All,
Is there way in HP-UX 11.11 to manage core files just like Solaris does with coreadm ?
On Solaris machines, we configured coreadm so that whenever a user generates a core file the OS automatically stores it in directory $HOME/corefiles/...
The core file removal is then made easy as we know where the core files exactly are (preventing high ressource consuming with "find / -name core -type f").
As most volumes are NFS imported is it important that the core file names contain the name of the machine.
Thx in advance for your help.
Rgds,
Sabrina
Is there way in HP-UX 11.11 to manage core files just like Solaris does with coreadm ?
On Solaris machines, we configured coreadm so that whenever a user generates a core file the OS automatically stores it in directory $HOME/corefiles/
The core file removal is then made easy as we know where the core files exactly are (preventing high ressource consuming with "find / -name core -type f").
As most volumes are NFS imported is it important that the core file names contain the name of the machine.
Thx in advance for your help.
Rgds,
Sabrina
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2005 04:24 AM
06-06-2005 04:24 AM
Re: Core file management with HP-UX
As far as I know, there is nothing very similar in hp-ux. The core is generated in current working dir of the program. (CWD)
There are ways to put some redirections here. Yoy can create a soft link. You can file (with name) with 0000 perms and it will not be written. you can point it to /dev/null
Anil
There are ways to put some redirections here. Yoy can create a soft link. You can file (with name) with 0000 perms and it will not be written. you can point it to /dev/null
Anil
There is no substitute to HARDWORK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2005 05:36 AM
06-06-2005 05:36 AM
Solution
The only option for HP-UX is to optionally append the PID to "core" but the file is always written to the current working directory.
echo " core_addpid/W1" | adb -w /stand/vmunix /dev/kmem
This will ONLY change the memory image of the running kernel and leave the object file, /stand/vmunix, untouched. It's a safe command and this is a common practice for changing kernel values that otherwise can't be modified. You could also force the write to the object file but I prefer to simply change the image in /dev/kmem and if you want this to be a "permanent" change rather than writing the object file, I prefer to setup a startup script in /sbin/init.d.
Setting core_addpid (which already exists in your kernel) to 1 will have exactly the effect you are looking for. A core.nnnnn file will be produced in the CWD rather than simply 'core'.
Of course, this is really putting a band-aid on a problem. I can't imagine working in an environment where the generation of core files is considered routine. The real solution is to fix the code.
echo " core_addpid/W1" | adb -w /stand/vmunix /dev/kmem
This will ONLY change the memory image of the running kernel and leave the object file, /stand/vmunix, untouched. It's a safe command and this is a common practice for changing kernel values that otherwise can't be modified. You could also force the write to the object file but I prefer to simply change the image in /dev/kmem and if you want this to be a "permanent" change rather than writing the object file, I prefer to setup a startup script in /sbin/init.d.
Setting core_addpid (which already exists in your kernel) to 1 will have exactly the effect you are looking for. A core.nnnnn file will be produced in the CWD rather than simply 'core'.
Of course, this is really putting a band-aid on a problem. I can't imagine working in an environment where the generation of core files is considered routine. The real solution is to fix the code.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2005 08:42 PM
06-06-2005 08:42 PM
Re: Core file management with HP-UX
Thanks both of you for your help.
It's pity HP does not provide a solution close to coreadm.
I will use core_addpid to change the name of the core files and move them all every night to a dedicated directory.
Rgds,
Sabrina
It's pity HP does not provide a solution close to coreadm.
I will use core_addpid to change the name of the core files and move them all every night to a dedicated directory.
Rgds,
Sabrina
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP