Video Screencast Help
Protect Your POS Environment Against Retail Data Breaches. Learn More.

how to check the policies which are not running for more than 1 or 3 month

Created: 11 Feb 2013 • Updated: 20 Apr 2013 | 3 comments
This issue has been solved. See solution.

Hi All,

Can anyone help me how to check the policies which are not running for more than 1 or 3 month?

There are around 800+ in our backup environment, we are in the process of cleaning up all the deactivated and the policy which are not utilized for a long time, can someone suggest me how to generate the policy list.

 

Rgds,

Fox Foot

 

Comments 3 CommentsJump to latest comment

mph999's picture

 

Have you got the nbpem or jm logs, that is one way to see what jobs have started.

Another is to run the Client Backup reports (under reports in GUI).

 

bpimagelist command :(put in master server name)

(1355000 is the 'ctime' for Dec 8th 2012, so that's about 2 months, change this to ajust how far back to go.  bpdbm -ctime <ctime> converts a ctime to readable format)

/usr/openv/netbackup/bin/admincmd/bpimagelist -l -g -X -d 1355000000  -M <Master server> |grep IMAGE |awk '{print $7}' |sort -u

Martin

 

Regards,  Martin
 
Setting Logs in NetBackup:
http://www.symantec.com/docs/TECH75805
 
Mr.Fox Foot's picture

Thank you for the Input Martin,

We dont have old logs files, also AM not looking for the client level backup report.

My management required a report which should ave a list of policy which didnt have any schedule backupor the backup hasn`t run for past 1 or 3 months.

I do apologise if i was not clean in my query.

 

 

 

 

 

Andy Welburn's picture

Closest I can get for you:

for POLICY in `bppllist`
do
echo $POLICY
for TIME in `bpimagelist -l -policy $POLICY -d 01/01/2000 -e 02/12/2013|grep IMAGE|awk '{print $14}'|head -1`
do
bpdbm -ctime $TIME
done
echo
done

 

Which *should* give you the last run time of each policy - change the dates to suit or you can replace the -d/-e options with -hoursago 2000 or something more appropriate!

SOLUTION