Primary Storage

Expand all | Collapse all

Unable to get the end time in Summary report

  • 1.  Unable to get the end time in Summary report

    Posted Mon November 12, 2018 07:47 AM
    ​Hi Team,

    Can anyone point me how to get the end time as well in backup summary, I tried but not able to achieve it.

    Below is the command which I am using but not getting end time of backup success/failure.

    select entity as "Node", CAST(sum(bytes/1024/1024) AS decimal(8,2)) AS "Backup_Size(MB)", start_time, Affected, Failed, Successful FROM summary WHERE activity='BACKUP' AND start_time>=current_timestamp AND END_TIME>=current_timestamp - 24 hours group by entity, start_time, Affected, Failed, Successful


    ------------------------------
    Prem Singh

    ------------------------------

    #PrimaryStorage
    #StorageManagementandReporting
    #Storage


  • 2.  RE: Unable to get the end time in Summary report

    Posted Mon November 12, 2018 09:01 PM
    Hi Guys,

    Anyone can help on this pls.


    Thanks & regards
    Prem Singh Bathyal
    Mobile - 8527337214





  • 3.  RE: Unable to get the end time in Summary report

    Posted Tue November 13, 2018 02:37 AM
    Hello,
    Try this (for the last day ):

    select entity as "Node", CAST(sum(bytes/1024/1024) AS decimal(8,2)) AS "Backup_Size(MB)", start_time, Affected, Failed, Successful FROM summary WHERE activity='BACKUP' AND (start_time>=current_timestamp -1 days) AND END_TIME>=current_timestamp - 24 hours group by entity, start_time, Affected, Failed, Successful

    ------------------------------
    Lionel HOARAU
    ------------------------------



  • 4.  RE: Unable to get the end time in Summary report

    Posted Tue November 13, 2018 05:51 AM
    ​Hi,
    I have tried no luck command is executing but not getting end time on it.

    ------------------------------
    Prem Singh

    ------------------------------



  • 5.  RE: Unable to get the end time in Summary report

    Posted Tue November 13, 2018 03:08 AM
    Hello Prem Singh,

    > U can add END_TIME parameter in ur own select query or
    > q eve * * begind=-1 endd=today f=d 
    To view a day old backup status with start and end time.





  • 6.  RE: Unable to get the end time in Summary report

    Posted Tue November 13, 2018 05:52 AM
    ​Hi,
    I have tried but no getting expected result only start time is coming.

    ------------------------------
    Prem Singh

    ------------------------------



  • 7.  RE: Unable to get the end time in Summary report

    IBM Champion
    Posted Tue November 13, 2018 04:08 AM
    Hi Prem,

    I think the problem here is actually with start time in your SQL query. You are looking for events where the start time is in the future.

    Regards
    Darren

    ------------------------------
    Darren Sanders
    Principal Consultant
    Celerity Ltd

    http://www.celerity-uk.com
    #ibmchampion storage
    ------------------------------



  • 8.  RE: Unable to get the end time in Summary report

    Posted Tue November 13, 2018 05:56 AM
    ​Hi ,

    I have tried all the possible way which I understand I 'll put one of the node output from that query.

    Node: test
    Backup_Size(MB): 620.00
         START_TIME: 2018-11-12 21:07:52.000000
           AFFECTED: 1
             FAILED: 0
         SUCCESSFUL: YES

    I need one more line here where it shows End time, unable to get it.

    if you have thoughts please share your query.


    ------------------------------
    Prem Singh

    ------------------------------



  • 9.  RE: Unable to get the end time in Summary report

    Posted Tue November 13, 2018 06:50 AM

    Prem,


    Just type


    q event * * begind=day of begin begint=being time endd=end day endt=ending time f=d


    Parul Patel

    Data Backup and Recovery Admin

    Einstein Healthcare Network

    1000 West Tabor Road

    Philadelphia, PA 19141

    215-456-8027

    patelp@einstein.edu

    This message is intended for the use of the person or entity to which it is addressed and may contain information that is privileged and confidential, the disclosure of which is governed by applicable law. If you are not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any disclosure, copying, or distribution of this information is strictly prohibited. If you have received this message by error, please notify the sender immediately to arrange for return or destruction of these documents.





  • 10.  RE: Unable to get the end time in Summary report

    Posted Tue November 13, 2018 07:42 AM
    Edited by System Wed March 08, 2023 03:58 PM
    ​Hi Parul,

    Thank you so much for the response I am  looking for sql query so that I can put in operation center for email alert.

    ------------------------------
    Prem Singh


    ------------------------------



  • 11.  RE: Unable to get the end time in Summary report

    Posted Tue November 13, 2018 09:02 AM
    Hi Prem,

    I don't see that you have asked to display the end time. You are using it in your 'where' criteria but not in the 'select'.
    select entity as "Node", CAST(sum(bytes/1024/1024) AS decimal(8,2)) AS "Backup_Size(MB)", start_time, Affected, Failed, Successful FROM summary

    ------------------------------
    Art Roy
    IBM Systems Storage Software Advanced Technology (SWAT) Team
    IBM
    (586) 201-4871
    ------------------------------



  • 12.  RE: Unable to get the end time in Summary report

    Posted Tue November 13, 2018 12:26 PM
    select entity as "Node", CAST(sum(bytes/1024/1024) AS decimal(8,2)) AS "Backup_Size(MB)", start_time, end_time, Affected, Failed, Successful FROM summary WHERE activity='BACKUP' AND start_time>=current_timestamp - 24 hours  AND END_TIME>=current_timestamp - 24 hours group by entity, start_time, END_TIME, Affected, Failed, Successful


    End_time has to be in the Group by clause. 
    And, you can't get a start time >= current_timestamp. So you need to have a minimum of  "- 1 hours" though -24 gives you at least anything that started and ended in the last 24 hours. 


    Lynn Hall

    Infrastructure Services Division

    Hosting Services Team

    Office of the Chief Information Officer

    State of Iowa

    Mobile: 515-669-4325

    lynn.hall@iowa.gov

     

    No employee or agent of the department or the State of Iowa is authorized to enter into a contractual agreement on behalf of the department or the State of Iowa with another party by email without the express written consent of the director of the department. This electronic communication (including any attachments) is covered by the Electronic Communication Privacy Act, 18 U.S.C. §§ 2510 - 2521, is confidential and is intended solely for the use of the individuals or entities to whom the email is addressed.  If you receive this email in error, any review, use, dissemination, distribution, copying, or storing of the email or its attachments is prohibited.  Notify me immediately of the error by return email, and delete this message from your system.  Any views or opinions in this email are the author's and do not necessarily represent the views or opinions of the department or the State of Iowa.






  • 13.  RE: Unable to get the end time in Summary report

    Posted Wed November 14, 2018 07:19 AM
    Hi Lynn,

    Thanks it worked for me, All of you thank you so much for contributing ! Cheers


    --
    Regards
    Prem Singh Bathyal
    Contact- 8527337214





  • 14.  RE: Unable to get the end time in Summary report

    Posted Mon November 26, 2018 04:49 AM
    Hi Guys,

    Awaiting for your inputs and thoughts how I can use this query into tsm manager yo get the email alerts for success or failure.

    ------------------------------
    Prem Singh

    ------------------------------



  • 15.  RE: Unable to get the end time in Summary report

    Posted Wed November 28, 2018 06:06 AM
    Hi Guys,

    Any thoughts please this is bit urgent for me.

    Thanks & regards
    Prem Singh Bathyal
    Mobile - 8527337214





  • 16.  RE: Unable to get the end time in Summary report

    Posted Sat December 08, 2018 06:01 AM
    Hi All,

    I was using this query which is bit successful in my case, i was trying to modify it in my way to get the desired result but failing.


    Original query-

    select entity as "Node", CAST(sum(bytes/1024/1024) AS decimal(8,2)) AS "Backup_Size(MB)", start_time, end_time, Affected, Failed, Successful FROM summary WHERE activity='BACKUP' AND start_time>=current_timestamp - 24 hours AND END_TIME>=current_timestamp - 24 hours group by entity, start_time, END_TIME, Affected, Failed, Successful

    It is working for me but I need to get the result in different way one rather than end can we get elapse time and another one is how we can define specific dates rather then giving 24 hours or day.

    like if i need to get the result from 2018-11-12, 18:00:00 to 2018-11-13, 17:59:00


    Modify Query-

    select entity as "Node", CAST(sum(bytes/1024/1024) AS decimal(8,2)) AS "Backup_Size(MB)", start_time, end_time, Affected, Failed, Successful FROM summary WHERE activity='BACKUP' AND start_time >{'2018-11-12 18:00:00'} AND start_time <{'2018-11-13 17:59:00'}

    ------------------------------
    Prem Singh

    ------------------------------



  • 17.  RE: Unable to get the end time in Summary report

    Posted Sat December 08, 2018 10:04 AM
    one more thing I can see few of the nodes start time and end time is coming same but data has transferred at least 10-15 MB it should reflect at least one minute time difference.

    ------------------------------
    Prem Singh

    ------------------------------



  • 18.  RE: Unable to get the end time in Summary report

    Posted Sun December 09, 2018 05:22 AM
    Hi Guys,

    Any suggestion please.

    ------------------------------
    Prem Singh

    ------------------------------



  • 19.  RE: Unable to get the end time in Summary report

    Posted Mon December 10, 2018 08:21 AM
    Hi Guys,

    can anyone please help if you have any thoughts on my request.

    ------------------------------
    Prem Singh

    ------------------------------



  • 20.  RE: Unable to get the end time in Summary report

    Posted Tue December 11, 2018 05:07 AM
    any thoughts please. I am waiting for your valuable thoughts.

    ------------------------------
    Prem Singh

    ------------------------------



  • 21.  RE: Unable to get the end time in Summary report

    Posted Wed December 12, 2018 05:56 AM
    Hello Guys,

    I am looking for that select query badly anyone has any thoughts, please share how we can workout to get elapsed time with end time and for specific date and time with node success and failure result.

    --
    Regards
    Prem Singh Bathyal
    Contact- 8527337214





  • 22.  RE: Unable to get the end time in Summary report

    Posted Tue January 01, 2019 01:54 PM
    Hi,

    That is the best i have prepare but it's not executing can anyone help me for the modification.

    SELECT entity as "Node", CAST(FLOAT(SUM(bytes)) / 1024 / 1024 / 1024 AS DECIMAL(8,2)) as "GB", start_time, end_time, Affected, Failed,Successful FROM summary WHERE ( activity='ARCHIVE' OR activity='BACKUP' ) AND start_time >{'2018-12-01 00:00:00'} AND start_time <{'2018-12-31 00:00:00'} GROUP BY entity ORDER BY "GB"

    ------------------------------
    Prem Singh

    ------------------------------



  • 23.  RE: Unable to get the end time in Summary report

    Posted Sun December 23, 2018 09:16 AM
    Hi Guys,

    Any thoughts still not worked out please help if anyone has any thoughts.

    ------------------------------
    Prem Singh

    ------------------------------