- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Ignite Backup Script
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
Forums
Discussions
Discussions
Discussions
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
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-10-2012 03:21 AM
06-10-2012 03:21 AM
Ignite Backup Script
Hi,
I have 173 HP-UX servers, currently i am taking backup using cron job, but unfortunately i don't know if os backup taken successfully or no, for that i need your support to provide me with simple script to send me mail after backup done in these three status
backup success
failure
success with warning
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2012 01:39 PM
06-10-2012 01:39 PM
Re: Ignite Backup Script
>script to send me mail after backup done in these three status
Are these well defined exit status codes? Or do you need to scan stderr?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2012 05:34 PM - edited 06-10-2012 05:35 PM
06-10-2012 05:34 PM - edited 06-10-2012 05:35 PM
Re: Ignite Backup Script
Ignite has 3 separate return codes:
0 No warnings or failures occurred; the execution completed successfully.
1 A failure occurred.
2 A warning occurred.
Now a warning may be a problem with the system itself (unmounted filesystems, bad filenames, etc) which creates a backup but a subsequent restore may have some issues. So each non-zero return needs to be investigated. I wrote the enclosed script to simplify the task and to also log the results to syslog (using facility local2). This script can optionally email the results when there is a failure/warning, or add -v and success will also be emailed. You can create a separate logfile for local by adding local2.none
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2012 11:46 PM
06-17-2012 11:46 PM
Re: Ignite Backup Script
Hi,
Thanks Mr. Bill Hassell for your support, But can you tell me what is the things you want me to edit in this script ? if the ignite server IP is 15.0.18.63 and e-mai is test@abc.com and only need VG00 for backup.
where i edit the script like below
mnr -s 15.0.18.63 -e test@abc.com -n 2 -p -v
and when i run the script i facing these message
#./mnr.sh
-s <server> is required
=======================
Usage: mnr -s 15.0.18.63 -e test@abc.com -n 2 -p -v
where:
-s = Ignite server hostname or IP address (required)
-e = email address for notifications
-n <qty> = number of archives to keep - default=2
-p = run command in preview mode
-v = verbose (email for success too)
-x = directories to be excluded from vg00
Logs results to /var/adm/mnr.log, notice to syslog (local2)
please your support thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2012 08:00 PM
06-19-2012 08:00 PM
Re: Ignite Backup Script
There is nothing to edit in the script. However, the script tries to validate the IP address or hostname. You can trace the program to see the test:
TRACEME=1 mnr -s 15.0.18.63 -e test@abc.com -n 2 -p -v
The error indicates that the IP address did not get parsed. I have tried to duplicate your error but cannot get the error message (which occurs when -z $IGNITESERVER is true). In other words, the variable is testing as zero length. Post the results of the TRACME comand line.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2012 11:35 PM
06-19-2012 11:35 PM
Re: Ignite Backup Script
Hi,
Thanks for your response, but can you send me the line number on this scripts you should me fill it with server IP and email and excluded filesystem.
Because I fill one line # 28, and this is the output of trace command
#ll
total 96
-rw-r--r-- 1 root sys 5 Jun 19 08:45 9999
-rwxr-xr-x 1 root sys 1824 Jun 18 11:54 ignite-tmp.sh
-rwxr-xr-x 1 root sys 1806 Jun 19 13:41 ignite.sh
-rwxr-xr-x 1 root sys 6394 Jun 20 09:13 mnr.sh
-rw-r--r-- 1 root sys 35 Jun 18 15:19 test
-rwxr-xr-x 1 root sys 1263 Jun 19 09:06 test.sh
# TRACEME=1 mnr -s 15.0.18.63 -e test@abc.com -n 2 -p -v
sh: mnr: not found.
# TRACEME=1 mnr.sh -s 15.0.18.63 -e test@abc.com -n 2 -p -v
sh: mnr.sh: not found.
Thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2012 02:34 PM
06-20-2012 02:34 PM
Re: Ignite Backup Script
>-rwxr-xr-x 1 root sys mnr.sh
># TRACEME=1 mnr.sh -s 15.0.18.63 -e test@abc.com -n 2 -p -v
>sh: mnr.sh: not found.
This is probably shells 101. Since "." isn't in $PATH, you need to use "./":
TRACEME=1 ./mnr.sh -s 15.0.18.63 -e test@abc.com -n 2 -p -v
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2012 11:24 PM
06-22-2012 11:24 PM
Re: Ignite Backup Script
Hi,
check the output of TRACEME command on the attached file.
and still i facing the same issue when i try to run this script
#./mnr.sh
-s <server> is required
=======================
Usage: mnr -s <15.0.18.63> [-e test@abc.com] -p -v -x exclude=/u02
where:
-s = Ignite server hostname or IP address (required)
-e = email address for notifications
-n <qty> = number of archives to keep - default=2
-p = run command in preview mode
-v = verbose (email for success too)
-x = directories to be excluded from vg00
Logs results to /var/adm/mnr.log, notice to syslog (local2)
Note: i added my server IP and my mail on this line (28) on the script, please tell me if i need to edit other line.
Usage: mnr -s <15.0.18.63> [-e test@abc.com] [-n <qty>] [-p] [-v] [-x exclude=/u02]
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2012 06:39 PM
06-23-2012 06:39 PM
Re: Ignite Backup Script
I'm a bit confused. The trace output shows that the script ran just fine.
Your example in red seems to indicate that you entered nothing on the command line:
#./mnr.sh
-s <server> is required
This script is not interactive, it requires command line parameters.
It is designed to be used in batch mode such as a cron job.
Bill Hassell, sysadmin