• Please help support our sponsors by considering their products and services.
    Our sponsors enable us to serve you with this high-speed Internet connection and fast webservers you are currently using at ADSM.ORG.
    They support this free flow of information and knowledge exchange service at no cost to you.

    Please welcome our latest sponsor Tectrade . We can show our appreciation by learning more about Tectrade Solutions
  • Community Tip: Please Give Thanks to Those Sharing Their Knowledge.

    If you receive helpful answer on this forum, please show thanks to the poster by clicking "LIKE" link for the answer that you found helpful.

  • Community Tip: Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING)

    Click the link above to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This notice will disappear after you have made at least 3 posts.

Reporting on NDMP Backups

bphealy

ADSM.ORG Member
#1
Hi, just wondering if anyone has created a SQL report which will show the success/failure of NDMP jobs which will include the filespace in question ?, thanks
 

cilesiz

ADSM.ORG Member
#3
Hi,

you can use the following sql query from the summary table:



select substr(S.entity,1,20) "NAS Node",RPAD(S.number,10) "ProcNr", DECODE(A.MSGNO,1064,'Diff: ' || substr(left(A.message,instr(A.message,'started',4,1)-3),65,90),1063,'Full: ' || substr(left(A.message,instr(A.message,'started',4,1)-3),57,90)) "Backup-Type and FilesSpace" ,cast(date(S.start_time) as char(10)) || ' ' || char(time(S.start_time),JIS) "Start Time",cast(date(S.end_time) as char(10)) || ' ' || char(time(S.end_time),JIS) "End Time", TRANSLATE('a bc:de:fg', DIGITS(S.end_time-S.start_time), '_______abcdefgh_____',' ') "Duration (D HHMMSS)", timestampdiff(2, substr(S.MEDIAW/60,1,4)) "MEDIAW [min]", timestampdiff(2, substr(S.IDLE/60,1,4)) "IDLE [min]",lpad(S.processes,2) "Proc", lpad(S.examined,15) "Exa",lpad(S.affected,15) "Aff", lpad(cast(S.BYTES/1024/1024/1024 as decimal(9,0)),5) GB,lpad(CAST(S.BYTES/1024/1024/(timestampdiff(2,char(S.end_time-S.start_time))+0.01) as DECIMAL(9,0)),5) "MB/s", lpad(S.successful,4) "Succ" from summary S, actlog A where (S.end_time>=current_timestamp - 21 days) and S.entity like upper('%nas%') and S.activity not in ('EXPIRATION') and S.number=A.process and A.MSGNO in (1063,1064) order by 2, 3, 4

regards

Ugur
 
#4
This is amazing, thank you so much, but all the righthand columns are zero:
MEDIAW [min] IDLE [min] Proc Exa Aff GB MB/s Succ

Any idea why?
 

Advertise at ADSM.ORG

If you are reading this, so are your potential customer. Advertise at ADSM.ORG right now.

UpCloud high performance VPS at $5/month

Get started with $25 in credits on Cloud Servers. You must use link below to receive the credit. Use the promo to get upto 5 month of FREE Linux VPS.

The Spectrum Protect TLA (Three-Letter Acronym): ISP or something else?

  • Every product needs a TLA, Let's call it ISP (IBM Spectrum Protect).

    Votes: 17 19.5%
  • Keep using TSM for Spectrum Protect.

    Votes: 53 60.9%
  • Let's be formal and just say Spectrum Protect

    Votes: 10 11.5%
  • Other (please comement)

    Votes: 7 8.0%

Forum statistics

Threads
31,468
Messages
134,117
Members
21,565
Latest member
Chrescht
Top