- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Check make_net_recovery files
Operating System - HP-UX
1753715
Members
4914
Online
108799
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
Discussions
Discussions
Forums
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
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
тАО08-21-2001 03:16 AM
тАО08-21-2001 03:16 AM
Hi,
I'd like to check if a make_net_recovery files is correct using an script. I schedule a script which runs a make_net_recovery and I'd like to add a check to send an email if any problem. Can anyone tell me a way to check if make_net_recovery files is ok?.
Thanks,
Alex.
I'd like to check if a make_net_recovery files is correct using an script. I schedule a script which runs a make_net_recovery and I'd like to add a check to send an email if any problem. Can anyone tell me a way to check if make_net_recovery files is ok?.
Thanks,
Alex.
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2001 03:30 AM
тАО08-21-2001 03:30 AM
Solution
Hi
You can check the return value of make_tape_recovery as
make_tape_recovery
if [ $? -ne 0 ];then
/usr/sbin/sendmail xxx <your message
INPUT
For any other messages you can monitor the file /var/opt/ignite/logs/makrec.log1 where make_tape_recovery logs the errors.
Or you can also use -v option to run it in verbose mode and capture any error messages.
Hope this helps...
...BPK...
You can check the return value of make_tape_recovery as
make_tape_recovery
if [ $? -ne 0 ];then
/usr/sbin/sendmail xxx <your message
INPUT
For any other messages you can monitor the file /var/opt/ignite/logs/makrec.log1 where make_tape_recovery logs the errors.
Or you can also use -v option to run it in verbose mode and capture any error messages.
Hope this helps...
...BPK...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2001 07:04 AM
тАО08-22-2001 07:04 AM
Re: Check make_net_recovery files
Hi Alex,
I would add another test for the last post like :
if [ $? -ne 0 -a $? -ne 2];then
/usr/sbin/sendmail operatorName < Your message to the operator...
EOM
This also allows to exclude the warrnings from being considered as errors ( spacially in MC service guard issue when each package is responssible of mounting specific file systems ).
Magdi
I would add another test for the last post like :
if [ $? -ne 0 -a $? -ne 2];then
/usr/sbin/sendmail operatorName <
EOM
This also allows to exclude the warrnings from being considered as errors ( spacially in MC service guard issue when each package is responssible of mounting specific file systems ).
Magdi
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP