cancel
Showing results for 
Search instead for 
Did you mean: 

Display media being used in NBU

kkhoo
Level 5

Hi,

I have enable bpend_notify in one of the client.

I would like to append a line where it will send email regarding the tape/ media used for that particular backup.

Is there a way to do this on client? bpimagelist does not exist in nbu_install/bin/

Please advise, thanks.

3 REPLIES 3

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

I don't think this is possible.

There is an equivalent client command - bpclimagelist  - but it does not have a '-media' option like bpimagelist does.

C:\Program Files\Veritas\NetBackup\bin>bpclimagelist.exe -help
USAGE: bpclimagelist.exe [-U | -Likelydate] [-Listseconds]
[-client clientname] [-server servername] [-BE]
[-t FULL | INCR | CINC | UBAK | UARC | TLOG | ANY | NOT_ARCHIVE]
[-policy policy_name] [-keyword "keyword phrase"] [-ct client_type]
[-s mm/dd/yyyy HH:MM:SS] [-e mm/dd/yyyy HH:MM:SS]

As a matter of interest - why would the admin on the client need to know which media was used?

Deeps
Level 6

bpend_notify is called by bpbkar on a client when bpbkar is finisehd with backup job. This script  receives six parameters:

%1 = CLIENT_NAME
%2 = POLICY_NAME
%3 = SCHEDULE_NAME
%4 = SCHEDULE_TYPE, one of the following: FULL, INCR, CINC, UBAK, UARC
%5 = Status of backup
%6 = RESULT_FILE

 

The information you are looking is not with the client (bpbkar) so you wont get it .You may try backupexit_notify.cmd script which runs on server when a single backup is finished.

DeepS

sclind
Moderator
Moderator
   VIP   

Could you run this and send to mailx?

bpimagelist -U -media -d 06/06/2017 00:00:00 -e 06/08/2017 23:59:00 -client xxxxxxxx -policy pppppppppppp

Media ID On Hold Last Written Server
-------- ------- ---------------- ----------
T21213 0 06/06/2017 21:29 xxxxxxxx
T21449 0 06/06/2017 21:29 xxxxxxxx