10-07-2003
Netbackup question
Hello,
I am setting up scripts to do shadow image backups but have found a pitfall I cannot figure out how to work around. Basically what I need to figure out is how to launch a bunch of bpbackups, and then have the script pause until all of the children have exited. The problem is that bpbackup spawns a bpbkar process with a parent of 1. I can't just use pgrep because there may be other bpbkar processes running.
Any thoughts or advice would be appreciated.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Veritas NetBackup, how does it work?? I mean, I know it is used for backups and restores but really, can anybody give me a brief or any explanation that sums up basically what it is about besides the fact that it does backups and restores??? Please, if you have any information, I would appreciate... (2 Replies)
Discussion started by: TRUEST
2 Replies
2. Solaris
Hi,
Anyone know netbackup 3.4 on Solaris 8 .
Currently I use root to perform backup / monitoring ...etc .
Can I create a user call "backup" and perform the same task
What permission should I give the "backup" user . (1 Reply)
Discussion started by: civic2005
1 Replies
3. HP-UX
Hello all. I have a HP-UX 11.11 system that I need to install Netbackup 6.5 onto. After I mount the cd drive and run the 'install' command, it comes back with the following error:
usage: install file
WHAT options is it talking about? When I look at the documentation from Netbackup, it... (4 Replies)
Discussion started by: impunchdrunk
4 Replies
4. Filesystems, Disks and Memory
I have 2 questions maybe those netbackup experts and gurus in the house can help.
Firstly, is there a particular location maybe under /usr/openv where I can find a diretory or file which contains all the backup policy information, so lets say If someone were to physically delete all the... (3 Replies)
Discussion started by: sparcguy
3 Replies
5. UNIX for Dummies Questions & Answers
What is the command to find out if a policy has been run and if it has the date it was last run? (0 Replies)
Discussion started by: mr_crosby
0 Replies
6. Solaris
Hi All,
We are currently running Veritas netbackup. We are currently having a few issues where were unable to log in due to several errors. Out usual fix for this is to recycle the backup servers however due to the nature of the information being backed up this is done by someone else and... (1 Reply)
Discussion started by: rickyclayton201
1 Replies
7. UNIX for Dummies Questions & Answers
Would I be able to get the report (text format) of an activity monitor view of a netbackup via command line? I am trying to make a script out of it that would be run daily an be saved in a txt document which would could be viewed for history purpose. I need minimal details only like policy name,... (0 Replies)
Discussion started by: ryan_estiya
0 Replies
8. Shell Programming and Scripting
Hi,
I'm currently working on adapting a netbackup script to run reports about the backup duration of clients and how many kb's written.
But I'm stuck at the time stamp of the backup.
I want to see in the sheet:
Sat Nov 07 00:00:26 2009 (1257548426)
But i get:
26 2009 (1257548426)
... (9 Replies)
Discussion started by: jld
9 Replies
9. UNIX for Dummies Questions & Answers
Hi there
Is there a way to customize scheduling in Netbackup 7 via the command line? I have tried it using the GUI and can specify multiple schedules for one policy. Does anyone have a link for me which I can refer to to read up on? Or if you know how please let me know.
Running on Solaris 10
... (0 Replies)
Discussion started by: notreallyhere
0 Replies
10. UNIX for Dummies Questions & Answers
Hello experts,
I will be joining a company in a few days time which put me in veritas netbackup project.
Can anyone please let me know how much knowledge of unix is needed for veritas netbackup?They will be providing training on netbackup.So i want to learn unix till then to make my base strong.... (1 Reply)
Discussion started by: Rajesh14
1 Replies
LEARN ABOUT CENTOS
tcl_waitpid
Tcl_DetachPids(3) Tcl Library Procedures Tcl_DetachPids(3)
__________________________________________________________________________________________________________________________________________________
NAME
Tcl_DetachPids, Tcl_ReapDetachedProcs, Tcl_WaitPid - manage child processes in background
SYNOPSIS
#include <tcl.h>
Tcl_DetachPids(numPids, pidPtr)
Tcl_ReapDetachedProcs()
Tcl_Pid
Tcl_WaitPid(pid, statusPtr, options)
ARGUMENTS
int numPids (in) Number of process ids contained in the array pointed to by pidPtr.
int *pidPtr (in) Address of array containing numPids process ids.
Tcl_Pid pid (in) The id of the process (pipe) to wait for.
int *statusPtr (out) The result of waiting on a process (pipe). Either 0 or ECHILD.
int options (in) The options controlling the wait. WNOHANG specifies not to wait when checking the process.
_________________________________________________________________
DESCRIPTION
Tcl_DetachPids and Tcl_ReapDetachedProcs provide a mechanism for managing subprocesses that are running in background. These procedures
are needed because the parent of a process must eventually invoke the waitpid kernel call (or one of a few other similar kernel calls) to
wait for the child to exit. Until the parent waits for the child, the child's state cannot be completely reclaimed by the system. If a
parent continually creates children and doesn't wait on them, the system's process table will eventually overflow, even if all the children
have exited.
Tcl_DetachPids may be called to ask Tcl to take responsibility for one or more processes whose process ids are contained in the pidPtr
array passed as argument. The caller presumably has started these processes running in background and does not want to have to deal with
them again.
Tcl_ReapDetachedProcs invokes the waitpid kernel call on each of the background processes so that its state can be cleaned up if it has
exited. If the process has not exited yet, Tcl_ReapDetachedProcs does not wait for it to exit; it will check again the next time it is
invoked. Tcl automatically calls Tcl_ReapDetachedProcs each time the exec command is executed, so in most cases it is not necessary for
any code outside of Tcl to invoke Tcl_ReapDetachedProcs. However, if you call Tcl_DetachPids in situations where the exec command may
never get executed, you may wish to call Tcl_ReapDetachedProcs from time to time so that background processes can be cleaned up.
Tcl_WaitPid is a thin wrapper around the facilities provided by the operating system to wait on the end of a spawned process and to check a
whether spawned process is still running. It is used by Tcl_ReapDetachedProcs and the channel system to portably access the operating sys-
tem.
KEYWORDS
background, child, detach, process, wait
Tcl Tcl_DetachPids(3)