• 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.

Help to create daily reports for backups of the last 24h

tpesselier

ADSM.ORG Member
Joined
Sep 1, 2013
Messages
102
Reaction score
0
Points
0
Location
paris
Hi

I am looking for help to create daily reports for backups of the last 24h, one report by domain with OC 7.1.8

(domaine,nodename,status,schedname,errorcode,level(incr/img),size,numberfile,numbernotbackupedfile,numberscannedfile,startedhour,finishhour,duration,idlewait,mediawaittime,total reductionratio)

Really not easy
 

tpesselier

ADSM.ORG Member
Joined
Sep 1, 2013
Messages
102
Reaction score
0
Points
0
Location
paris
I had the chance to talk WITH tsm developer and here is a query that works well.
The ideal is to sort the failed from above and it would be even better.
IBM may integrate it into the OC template

select domain_name as "Domain",
entity "Client",
(case when successful='YES' then 'success' else 'failed' end) as "Status",
coalesce(schedule_name, '-') as "Schedule",
coalesce(bytes_written, bytes, 0) as "Size",
affected as "Files",
failed as "Files Not Backed Up",
examined as "Files Scanned",
start_time as "Started",
end_time as "Finished",
timestampdiff(8, end_time-start_time) || ' hours ' || mod(timestampdiff(4, end_time-start_time), 60) || ' minutes' as "Duration (hour)",
(case when bytes_protected > 0 then floor(((coalesce(bytes_protected, 0)*1.0 - coalesce(bytes_written, 0))/bytes_protected)*100.0) else 0 end ) as "Total Reduction Ratio"
from summary_extended inner join nodes on entity=node_name
where activity='BACKUP' and activity_type='SESSION_END' and end_TIME>=(current_timestamp - 24 hours) and domain_name='domain_test'
 

marclant

ADSM.ORG Moderator
Joined
Jun 16, 2006
Messages
3,703
Reaction score
611
Points
0
Location
Canada
Website
www.ibm.com
That's a good query. Personally though, I don't care about successful backup, there's no action that needs to be taken with them. I'd filter it with SUCCESSFUL='NO' only because those are the ones that need to be addressed. But that's just a personal preference.
 

tpesselier

ADSM.ORG Member
Joined
Sep 1, 2013
Messages
102
Reaction score
0
Points
0
Location
paris
Hey maclan i think the same but my users want to see everything in their domain :)

I also proposed the idea of doing the same thing with TDP4VE but using the VMTAG to identify the owner of the vm because you can not identify a vm with a nodename and a domains ,i'm waiting for the answer


after I agree it's easier to highlight the failed especially if you have 1200 vm like me, but at home every owner wants to have the vision of these machines in their domain

I find that IBM is not consistent between its vision of detached domain administration and the way it is supervising
 

tmaria

ADSM.ORG Member
Joined
Apr 29, 2004
Messages
28
Reaction score
0
Points
0
I had the chance to talk WITH tsm developer and here is a query that works well.
The ideal is to sort the failed from above and it would be even better.
IBM may integrate it into the OC template

select domain_name as "Domain",
entity "Client",
(case when successful='YES' then 'success' else 'failed' end) as "Status",
coalesce(schedule_name, '-') as "Schedule",
coalesce(bytes_written, bytes, 0) as "Size",
affected as "Files",
failed as "Files Not Backed Up",
examined as "Files Scanned",
start_time as "Started",
end_time as "Finished",
timestampdiff(8, end_time-start_time) || ' hours ' || mod(timestampdiff(4, end_time-start_time), 60) || ' minutes' as "Duration (hour)",
(case when bytes_protected > 0 then floor(((coalesce(bytes_protected, 0)*1.0 - coalesce(bytes_written, 0))/bytes_protected)*100.0) else 0 end ) as "Total Reduction Ratio"
from summary_extended inner join nodes on entity=node_name
where activity='BACKUP' and activity_type='SESSION_END' and end_TIME>=(current_timestamp - 24 hours) and domain_name='domain_test'
I ran this query and almost is what I wanted. I would like to have the size as it is reported in the dsmschedule.log file, next to the "Total number of bytes transferred:" . If it is MB to be displayed as MB if it is GB then as GB. How can this be done?
 

tpesselier

ADSM.ORG Member
Joined
Sep 1, 2013
Messages
102
Reaction score
0
Points
0
Location
paris
Hi tmaria ,

I try to do it too but it's not easy with coelse , i keep you informed
 

rpandey

ADSM.ORG Member
Joined
Feb 2, 2009
Messages
74
Reaction score
1
Points
0
Location
Australia
I had the chance to talk WITH tsm developer and here is a query that works well.
The ideal is to sort the failed from above and it would be even better.
IBM may integrate it into the OC template

select domain_name as "Domain",
entity "Client",
(case when successful='YES' then 'success' else 'failed' end) as "Status",
coalesce(schedule_name, '-') as "Schedule",
coalesce(bytes_written, bytes, 0) as "Size",
affected as "Files",
failed as "Files Not Backed Up",
examined as "Files Scanned",
start_time as "Started",
end_time as "Finished",
timestampdiff(8, end_time-start_time) || ' hours ' || mod(timestampdiff(4, end_time-start_time), 60) || ' minutes' as "Duration (hour)",
(case when bytes_protected > 0 then floor(((coalesce(bytes_protected, 0)*1.0 - coalesce(bytes_written, 0))/bytes_protected)*100.0) else 0 end ) as "Total Reduction Ratio"
from summary_extended inner join nodes on entity=node_name
where activity='BACKUP' and activity_type='SESSION_END' and end_TIME>=(current_timestamp - 24 hours) and domain_name='domain_test'
I can't make your command working tpesselier. I am getting

Output of command redirected to file '0'
ANS8001I Return code 3
.
 

moon-buddy

ADSM.ORG Moderator
Joined
Aug 24, 2005
Messages
7,033
Reaction score
405
Points
0
Location
Somewhere in the US
remove the space before and after ">" in: "(case when bytes_protected > 0"

Should be (case when bytes_protected>0
 

rpandey

ADSM.ORG Member
Joined
Feb 2, 2009
Messages
74
Reaction score
1
Points
0
Location
Australia
That's a good query. Personally though, I don't care about successful backup, there's no action that needs to be taken with them. I'd filter it with SUCCESSFUL='NO' only because those are the ones that need to be addressed. But that's just a personal preference.
Hi
Do you have this script with SUCCESSFUL='NO' ?
 

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: 20 18.9%
  • Keep using TSM for Spectrum Protect.

    Votes: 64 60.4%
  • Let's be formal and just say Spectrum Protect

    Votes: 13 12.3%
  • Other (please comement)

    Votes: 9 8.5%

Forum statistics

Threads
31,836
Messages
135,765
Members
21,788
Latest member
london
Top