- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- direct all core files onto one directory
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
Discussions
Discussions
Forums
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
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-02-2003 01:38 AM
тАО06-02-2003 01:38 AM
direct all core files onto one directory
Can you help me finding out the procedure to do what i indicated??
Thanks
Federico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2003 01:47 AM
тАО06-02-2003 01:47 AM
Re: direct all core files onto one directory
An app will core dump in it's working directory.
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2003 02:07 AM
тАО06-02-2003 02:07 AM
Re: direct all core files onto one directory
Maybe this helps,
http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000066911675
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2003 02:29 AM
тАО06-02-2003 02:29 AM
Re: direct all core files onto one directory
to get rid of core files (ie cp to /dev/null).
But if you want to analyze application's errors
aka debug the cores - run something like 'find / -name core | xargs mv ...' style,
check xargs man page for details.Put the line into crontab.
Zeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2003 02:32 AM
тАО06-02-2003 02:32 AM
Re: direct all core files onto one directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2003 02:32 AM
тАО06-02-2003 02:32 AM
Re: direct all core files onto one directory
Do you mean to say save crash dump on other dir other then the default??,if yes then you can edit /etc/rc.config.d/savecrash file & redirect your dump dir.
Regards,
Rajesh G.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2003 02:54 AM
тАО06-02-2003 02:54 AM
Re: direct all core files onto one directory
I didnt come across any tools/commands for that.
1. Do a file core and get the executable name.
2. Create a dir in the target path on the executable name.
3. Move the core to the new dir.
Unfortunately I dont have the script right now. That script was configured in the cron to run once in a day. I will try to get the script.
HTH
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2003 03:04 AM
тАО06-02-2003 03:04 AM
Re: direct all core files onto one directory
create your required area
eg:
/tmp/cores
Then, for each user on the system
ln -s /tmp/cores/core.USERNAME /home/USERNAME/core
This way, you get all your core files in one location, and they are identified by the user that owns them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2003 03:57 AM
тАО06-02-2003 03:57 AM
Re: direct all core files onto one directory
This what I use on my sun's and I think you can use it on HPUX too.
#!/bin/ksh
# Robert-Jan Goossens
# Search for core files
# read output line for line and check output if output is a core file.
# If output is a core file, remove it
# /usr/local/bin/core_del
# Robert-Jan Goosens: 09/02/2000 : added mail support
#
set -x
LogFile=/usr/local/log/core_log
for core_file in $(find / -type f -name core -print)
do
ls -l $core_file
output=$(file $core_file | grep "core file")
if [[ -z $output ]]
then
echo "$(date +%d%m%y) $core_file is a core file"
else
echo "$(date +%d%m%y) $core_file is not a core file"
echo "$(date +%d%m%y) $output"
rm -f $core_file
if (($? == 0))
then echo "$(date +%d%m%y) removed: $core_file"
fi
fi
done > $LogFile 2>&1
if [[ -s $LogFile ]]
then mailx -s "Core files Removed" Unix@Yourdomain.com < $LogFile fi
and Yes it is working on HPUX 11.0
Regards,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2003 06:28 AM
тАО06-02-2003 06:28 AM