- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: script to find core and crash files in a mach...
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
тАО05-29-2007 08:05 PM
тАО05-29-2007 08:05 PM
script to find core and crash files in a machine
So I want to run this script from 5th node to verify this. Therefore I need this script to find core and crash files in other nodes.
- Tags:
- corefile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2007 09:29 PM
тАО05-29-2007 09:29 PM
Re: script to find core and crash files in a machine
You can base your script on these two commands:
cd /
find . -type f -name "core"
hth
best regards
pg
And as Peter Godron says
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
on how to reward any useful answers given to your questions.
- Tags:
- find
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2007 01:45 PM
тАО05-30-2007 01:45 PM
Re: script to find core and crash files in a machine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2007 03:17 PM
тАО05-30-2007 03:17 PM
Re: script to find core and crash files in a machine
like exactly where you wish to look for the
"core" files (or whatever). The basic
command might look like:
find fs_list -xdev -name core -type f
where "fs_list" is a list of mount points for
the file systems (or directories) of
interest. For example, if /, /usr, and /var
are all separate file systems:
find / /usr /var -xdev -name core -type f
It's possible to do this on a remote system
using NFS, but it'd probably be much more
efficient to run the command remotely on the
system(s) of interest using rsh or ssh.
You could also write a shell script which
collected the output from the "find" command,
and e-mailed the stuff to someone who cared.
You could use "cron" to automate the job on
each system, and have it run early every
morning, so you'd get the daily "core/crash"
report bright and early every day.
Many things are possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2007 07:59 PM
тАО05-30-2007 07:59 PM
Re: script to find core and crash files in a machine
to find the core and to understand what are:
find / -name core -type f -exec echo "\n" \; -exec file {} \; -exec what {} \;
HTH,
Art