- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- System Panic or Crash
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
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
тАО03-20-2003 06:49 PM
тАО03-20-2003 06:49 PM
Does the HPUX system have a chance to execute any of the /sbin/rc*.d scripts when a system panic or crash happen?
I am interest to know if it is possible to execute a scripts in /sbin/rc*.d to email an alert should this happen. If this is not possible any suggestion would be appreciated.
thnks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2003 06:53 PM
тАО03-20-2003 06:53 PM
SolutionThe only things I can think of is to have something that monitors the system and page you whenever it goes down. HP Network Node Manager or Vantage Point Operations can do this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2003 07:15 PM
тАО03-20-2003 07:15 PM
Re: System Panic or Crash
Change:
*.alert /dev/console
-to-
*.alert @server_name.domain.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2003 08:40 PM
тАО03-20-2003 08:40 PM
Re: System Panic or Crash
/etc/rc.config.d/savecrash
Default has the variable not set to 1, you should uncomment that line and the default locatoin, /var/adm/crash
Save, restart system.
Then if you have crashes after kernel load, crash dumps will be created.
I'm attaching a procedure to show you how to analyze a crash dump with the q4 analysis, which would be useful.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2003 11:34 PM
тАО03-20-2003 11:34 PM
Re: System Panic or Crash
Eugeny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2003 11:46 PM
тАО03-20-2003 11:46 PM
Re: System Panic or Crash
It cannot run any of the rc scripts, so htere is no point in trying to look for something like that.
However, some crashes do sometimes have symptoms appearing in the syslog file BEFORE the crash, so you could monitor this, but the variations that you may have to cater for are enormous.
Another way would be to have a script run at boot time that check to see whether a crash dump has been taken, and email an alert at this time.
Again, there are occasions when no crash dump might be saved, so it does not cater for 100% of failures.
You could also have something that checks hte /etc/shutdownlog when hte system reboots, looking for anything other than a reboot command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2003 06:07 AM
тАО03-21-2003 06:07 AM
Re: System Panic or Crash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2003 06:31 AM
тАО03-21-2003 06:31 AM
Re: System Panic or Crash
This is a snippet from my script (bad, but working, code):
uptime_info=`uptime`
contains_day=`echo $uptime_info | grep day`
no_of_days=`echo $uptime_info | cut -f3 -d' '`
if [ -z "$contains_day" ]
then
no_of_days=0
fi
if [ -z "$contains_day" -o "$no_of_days" -lt 1 ]
then
cat <<-E@O@F | mailx -s 'desired subject' desired_user
[Desired text]
E@O@F
fi