cancel
Showing results for 
Search instead for 
Did you mean: 

How to clear SLP duplications

NEW2IT
Level 3
I am running NBU 6.5.4 and had a SLP in place but decided to stop using it. I remove it from all my policies. But it is still trying to run the duplications, how do I clear duplications that running on auto pilot?

Thanks,
1 ACCEPTED SOLUTION

Accepted Solutions

David_McMullin
Level 6
you did not mention your OS - perhaps you could put it in your signature?

on unix - run this:


   for i in `/usr/openv/netbackup/bin/admincmd/nbstl -L | grep -i name | cut -c38-`
    do
    echo "Now deactivating "$i
    /usr/openv/netbackup/bin/admincmd/nbstlutil inactive -wait -lifecycle $i
    sleep 5
   done

All your SLP will be deactive.

You should review the pending SLP jobs to make sure you do not lose data!

If you know they are all bogus, this will cancel all incomplete jobs:

   for i in `/usr/openv/netbackup/bin/admincmd/bpimagelist -L -idonly -hoursago 120 -stl_incomplete | sort +3 +4 +5n | /usr/bin/cut -d" " -f10`
   do
    echo "Now cancelling "$i
    /usr/openv/netbackup/bin/admincmd/nbstlutil cancel  -wait -backupid $i
   done
   bpimagelist -L -idonly -hoursago 120 -stl_incomplete | sort +3r +4r +5rn

The 120 is hours ago - it defaults to 24 - you can increase as needed.


View solution in original post

6 REPLIES 6

rjrumfelt
Level 6
from the storage unit section?

Also, you may have one that is hung for whatever reason.  You can use nbstlutil to cancel any current SLP's you see running.

David_McMullin
Level 6
you did not mention your OS - perhaps you could put it in your signature?

on unix - run this:


   for i in `/usr/openv/netbackup/bin/admincmd/nbstl -L | grep -i name | cut -c38-`
    do
    echo "Now deactivating "$i
    /usr/openv/netbackup/bin/admincmd/nbstlutil inactive -wait -lifecycle $i
    sleep 5
   done

All your SLP will be deactive.

You should review the pending SLP jobs to make sure you do not lose data!

If you know they are all bogus, this will cancel all incomplete jobs:

   for i in `/usr/openv/netbackup/bin/admincmd/bpimagelist -L -idonly -hoursago 120 -stl_incomplete | sort +3 +4 +5n | /usr/bin/cut -d" " -f10`
   do
    echo "Now cancelling "$i
    /usr/openv/netbackup/bin/admincmd/nbstlutil cancel  -wait -backupid $i
   done
   bpimagelist -L -idonly -hoursago 120 -stl_incomplete | sort +3r +4r +5rn

The 120 is hours ago - it defaults to 24 - you can increase as needed.


NEW2IT
Level 3

My master server is running on a W2K3 R2 SP2. So guess I need to find the same commands in Windows. Thanks for the info.

rjrumfelt
Level 6
such as bpimagelist and nbstlutil will be the same, however you may have to do some manual searching rather than being able to script out, cut and sort what you dont need.

David_McMullin
Level 6
The SLP definitions are under db/ss - rename the ss directory and no more SLP will work...


RSRust
Level 4
I had a similar situation but I only needed to delete select duplication jobs as a server was incorrectly added to a policy and then the images were deleted off the disk , which of course caused the duplication jobs to fail although they kept retrying.  I am running a Windows master and ran the following to clear the jobs:

Get the incomplete job IDs:  

D:\Program Files\Veritas\NetBackup\bin\admincmd>bpimagelist -L -idonly -hoursago 280 -stl_incomplete


Delete the incomplete jobs: 

D:\Program Files\Veritas\NetBackup\bin\admincmd>nbstlutil cancel -backupid backupid

Thanks David for the command reference.