HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ignite success script
Operating System - HP-UX
1825775
Members
2053
Online
109687
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
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
10-16-2002 09:25 AM
10-16-2002 09:25 AM
ignite success script
We need a script to email us if make_recovery fails for any reason., We currently mail the results of the makrec.log1 file , but we really only need emails if the job fails.
Thanks
Thanks
When the only tool you own is a hammer, every problem looks like a nail!
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2002 09:41 AM
10-16-2002 09:41 AM
Re: ignite success script
Hi,
Try the following simple script. Replace the make_recovery command line with your options.
#!/usr/bin/ksh
HOST=$(hostname)
EMAIL="your_id@yourhost.com"
/opt/ignite/bin/make_recovery -v -A > /tmp/ignite.out 2>&1
if [ $? -ne 0 ]
then
cat /tmp/ignite.out |mailx -s "$HOST - make_recovery failed" $EMAIL
fi
-Sri
Try the following simple script. Replace the make_recovery command line with your options.
#!/usr/bin/ksh
HOST=$(hostname)
EMAIL="your_id@yourhost.com"
/opt/ignite/bin/make_recovery -v -A > /tmp/ignite.out 2>&1
if [ $? -ne 0 ]
then
cat /tmp/ignite.out |mailx -s "$HOST - make_recovery failed" $EMAIL
fi
-Sri
You may be disappointed if you fail, but you are doomed if you don't try
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2002 09:48 AM
10-16-2002 09:48 AM
Re: ignite success script
Roger,
Here's a simple script that you might be able to adapt:
if [ `grep -i 'message_indicating_failure' /full/path/to/makrec.log1 | wc -l` -gt 0 ]
then
echo "$hostname had an ignite failure" > file.oops
elm -s "Oops" joeblow@wherever.com < file.oops
fi
Pete
Pete
Here's a simple script that you might be able to adapt:
if [ `grep -i 'message_indicating_failure' /full/path/to/makrec.log1 | wc -l` -gt 0 ]
then
echo "$hostname had an ignite failure" > file.oops
elm -s "Oops" joeblow@wherever.com < file.oops
fi
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2002 09:56 AM
10-16-2002 09:56 AM
Re: ignite success script
file it though script.
make_recovery -ACvd /dev/rmt/0mn
if [$? -ne 0]
mailx -s "recovery Failed" your_Address
exit
make_recovery -ACvd /dev/rmt/0mn
if [$? -ne 0]
mailx -s "recovery Failed" your_Address
exit
There is no substitute to HARDWORK
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP