Veritas-bu

[Veritas-bu] determining if a backup or netbackup databasebackup is occuring from the command line.

2001-12-06 12:04:04
Subject: [Veritas-bu] determining if a backup or netbackup databasebackup is occuring from the command line.
From: david AT xbpadm-commands DOT com (David A. Chapa)
Date: Thu, 6 Dec 2001 11:04:04 -0600
I do this:

bpdbjobs -report | egrep "Active|Queue"

for the active backup jobs and a simple ps and grep for bpbackupdb like Ryan
suggested.

<><><><><><><><><><><><><><><><><><><><>
David A. Chapa
NetBackup Consultant
DataStaff, Inc.
http://www.consulting.datastaff.com
847 413 1144
---------------------------------------
NBU-LSERV AT datastaff DOT com - Adv. Scripting
http://www.xbpadm-commands.com

-----Original Message-----
From: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu]On Behalf Of Ryan
Anderson
Sent: Thursday, December 06, 2001 9:48 AM
To: mblackburn AT glenraven DOT com; Veritas-bu AT mailman.eng.auburn DOT edu
Subject: Re: [Veritas-bu] determining if a backup or netbackup
databasebackup is occuring from the command line.


I don't know of one, but something along the lines of:

bpdbjobs -report | grep Active | grep <classname>
if [ $? -eq 0 ]; then
    echo "<classname> backup is running!"
fi

should get you what you want for a backup is running. To determine if a NBU
database backup is occuring, just change the first line to:

ps -ef|grep bpbackupdb


RCA

--
Ryan C. Anderson
Unix Administrator
United Defense L.P.
desk   763.572.6684
pager 952.235.9936

>>> "Marvin Blackburn" <mblackburn AT glenraven DOT com> 12/06/01 08:51AM >>>
Is there a command or way to determine from a script (unix/veritas 3.2) if a
backup is currently running or if the netbackup database backup is running?

------------------
Marvin Blackburn
Systems Administrator
Glen Raven
336-586-1200
"He's no failure.  He's not dead yet" --William Lloyd George

_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu