- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- NetBackup Status 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
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
тАО02-20-2003 04:33 AM
тАО02-20-2003 04:33 AM
I have script that is run via cron to execute a backup. What I also want to do now is have another script that I can run at the end of the first one that grabs all the backup information using a command such as bperror or whatever and emails it to me. I need to know:
* Server name
* Date
* Start time
* End time
* Size or amount of data written
* Status (exit code number)
* Transfer rate (kbps) - Optional
If anyone has a script they which produces all of the above info it would be greatly appreciated if you could share it!! Lots of points for good scripts!
NetBackup server version is 3.4GA
Thanks
James
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2003 08:45 AM
тАО02-20-2003 08:45 AM
Re: NetBackup Status Script
Take a look at the bpend_notify script in the /usr/openv/netbackup/bin/goodies directory. It will provide the client name, class name, schedule, and status.
The bpend_notify gets passed CLIENTNAME CLASSNAME SCHEDNAME SCHEDTYPE STATUS from bpbkar. If you were write a bpend_notify script in perl, you could easily pass the CLIENTNAME, CLASSNAME, and SCHEDNAME to bpimage. It will provide a raw output with the lines IMAGE, HISTO, and FLAG. Field 13 is the start time, field 14 was how many seconds the backup ran, and field 18 is the number of KB backed up. I compute the transfer rate by (field 18 / field 14) / 1024 to get MB/s speed.
You should be able to write this in perl or the script language of your choice. The script that I have is in perl, but it generates .csv files for Excel and pulls the information for 2 weeks of backups on all servers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2003 09:23 AM
тАО02-20-2003 09:23 AM
Re: NetBackup Status Script
mr ed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2003 10:27 AM
тАО02-20-2003 10:27 AM
SolutionAttached is a script that we run each morning via cron to give us the nightly backup status for all jobs.
Most of the script came from a post in the forum and was hacked to accomodate our shop.
Also attached is a sample of the report output that is emailed.
.xbpmonrcdl is the file with the parm settings from activity monitor and should be set according to your needs, or I can send our file if you desire.
Best of luck.
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2003 05:25 AM
тАО02-25-2003 05:25 AM
Re: NetBackup Status Script
/usr/local/bin/systems/veritas/.xbpmonrcdl
as well if you can.
Thanks
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2003 07:51 AM
тАО03-06-2003 07:51 AM
Re: NetBackup Status Script
Thanks
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2003 08:04 AM
тАО03-06-2003 08:04 AM
Re: NetBackup Status Script
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2003 08:18 AM
тАО03-06-2003 08:18 AM
Re: NetBackup Status Script
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2003 03:14 AM
тАО03-07-2003 03:14 AM
Re: NetBackup Status Script
Thanks for the script in your first post, although it's not what I require. I need a script that report the following info:
* Server name
* Date
* Start time
* End time
* Size or amount of data written
* Status (exit code number)
* Transfer rate (kbps) - Optional
The second post had nothing attached! :-)
If you have a script that reports that information and it works for me, it's 10 points right there so don't worry about that.
Cheers
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2003 08:16 AM
тАО03-07-2003 08:16 AM
Re: NetBackup Status Script
The best you can do is get the status of all backup jobs on a given date. You can get that from $BPPATH/bpimagelist -media -U -l -d $DDATE -e $EDATE These are $BPPATH: the path to the admincmd dirctory; $DDATE: the start date; $EDATE: the end date. To get the information for a single day, make $EDATE and $DDATE the same. I use this as the heart of my tapeusage script--the one I intended to attach to my last post.
And, because I need 11 points today to hit 1000, I'll re-reply and attach a bonus script.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2003 08:21 AM
тАО03-07-2003 08:21 AM
Re: NetBackup Status Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2003 08:22 AM
тАО03-07-2003 08:22 AM
Re: NetBackup Status Script
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2003 08:30 AM
тАО03-07-2003 08:30 AM
Re: NetBackup Status Script
Chris<--and I almost pressed