cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Media number on which backup has done?

Mekkalki
Level 4

Hi,

 

We have netbackup 7 master server on windows 2003 & client on hp_unix. 

We are using bpstart_notify & bpend_notify scripts.

We have set of 7 tapes. Now on client side we want get tape number on which backup has done. How we can do this?

Is there any parameter for tape number which we can get through bpstart_notify & bpend_notify scripts?

 

Thanks,

Mekkalki.

4 REPLIES 4

Zahid_Haseeb
Moderator
Moderator
Partner    VIP    Accredited

See the below Symantec TN which may help you.

NetBackup notification scripts and their usage

http://www.symantec.com/business/support/index?page=content&id=TECH36460

 

See the below discussion which i hope help you too

https://www-secure.symantec.com/connect/forums/bpstart-and-bpend

Mekkalki
Level 4

Thanks for update.

 

We want tape/media number on which backup has done.

From given notes we could see  bpstart_notify command is having 6 parameters is there any parameter which will tell tape/media number on which backup has done? So on client side we can receive that parameter, for e.g. POLICY_NAME.

 

Is there any way to get tape/media number on which backup has done from client side?

for e.g. bplist command 

 

 

Regards,

Mekkalki.

Marianne
Level 6
Partner    VIP    Accredited Certified

I don't think media-id can be obtained with bplist.

I normally get it with bpimagelist, but that can only be executed from a master or media server.

You might want to check out parent_end_notify on master and add bpimagelist command to list and email media-id. I have never tried to automate this and only ever manually executed it before starting a restore:

bpimagelist -client clientname -d mm/dd/yyyy -e mm/dd/yyyy -media

Sample output:

A00036 server1 1281214014 173 442263104 3
A00032 server1 1281214014 196 521824586 3
A00003 server1 1281115775 391 274091728 3
A00016 server1 1281114005 19 80206098 3

 

Column 1: media id’s that will be required for the restore
Column 2: name of media server that performed the backup
Column 3: timestamp

Andy_Welburn
Level 6

We had a similar request a while back, but where & how you'd want to run it ...

e.g. (with slightly different options to Mariannes)

bpimagelist -hoursago 24 -U -client <client> -media

would give output similar to:

Media ID   Last Written          Server
--------        ----------------            ----------
300375     04/03/2011 18:32   master/media
300516     04/03/2011 18:04   master/media