Forum Discussion

Sid1987's avatar
Sid1987
Level 6
12 years ago

BPJOBD process temporary workaround, for automation

Hi Guys,

  I need some urgent help, I have an issue that bpjobd process gets killed every now and then, I opened a case with symantec which didn't help, they recommended to upgrade to 7.5 which is not currently been approved, However I have a strong server which can take place for the current master so it means there will be a hardware upgrade for my environment, However till that time I need a temporary fix, means I want the bpjobd to start by its own through a script I have which is in crontab to check if bpjobd is running in every 2 mins and if not, it will start the bpjobd with (bpjobd &)

When I tested this script it doesn't work, when I tried to manually run the script then also the command prompt doesn't comes back which I think is the issue, when I did ctrl+c twice the script came up and it started the bpjobd. So I thought of including trap command to issue a ctrl+c in the script which didnt work, may be because the script is not able to go pass the bpjobd & step. So please help.

Here is the script.

x=`ps -ef | grep -i bpjobd | grep -v "grep -i bpjobd" | wc -l`;
if [ $x -eq 0 ]
then
mail -s "Activity Monitor is hung, bpjobd started, please verify" email id's

/usr/openv/netbackup/bin/bpjobd &
trap "Ctrl + C" 2
trap "Ctrl + C" 2
fi
 

I have netbackup version 7.1.0.4

Thanks

Sid

  • OK, seems to work :

     

    #!/usr/bin/ksh
    /usr/openv/netbackup/bin/bpps -x |grep bpjobd >/dev/null 2>&1
    if [[ $(echo $?) -ne 0 ]] then
    nohup /usr/openv/netbackup/bin/bpjobd &
    fi
     
    Please give that a go and report back.
     
    Martin

18 Replies