Results 1 to 2 of 2
  1. #1
    Senior Member
    Join Date
    Nov 2002
    Posts
    511
    Thanks
    1
    Thanked 1 Time in 1 Post

    Cool SQl script that shows speed of running backups

    Hello all just want to share q quick way to determine if something is amiss in the running backups.


    def script q_speed "select client_name, bytes_sent/(1024*1024)/(cast ((current_timestamp-start_time)seconds as integer)) as speed from sessions" desc="Shows the speed in mb/s of running backups"

  2. #2
    Senior Member GregE's Avatar
    Join Date
    May 2006
    Posts
    1,981
    Thanks
    3
    Thanked 9 Times in 8 Posts

    Default

    Thanks for sharing the info!

    To expand on that, try this...

    SELECT client_name,session_id, current_timestamp-start_time AS ElapTime, commmethod, state, CAST(bytes_sent/1024/1024 AS DEC(8,2)) AS "MB_Sent", CAST(bytes_received/1024/1024 AS DEC(8,2)) AS "MB_Rcvd", cast((cast(bytes_sent as dec(18,0))/cast((current_timestamp-start_time) seconds as decimal(18,0))) / 1024 / 1024 AS DEC (18,2)) AS "Sent_MB/s", cast((cast(bytes_received as dec(18,0))/cast((current_timestamp-start_time) seconds as decimal(18,0))) / 1024 / 1024 AS DEC(18,2)) AS "Rcvd_MB/s" FROM sessions order by client_name

    I take no credit for it. I found it around here somewhere a while back.

Similar Threads

  1. how to speed up the running backup process?
    By sandeepkontham in forum Backup / Archive Discussion
    Replies: 6
    Last Post: 06-14-2009, 06:55 AM
  2. Replies: 3
    Last Post: 11-03-2008, 05:15 AM
  3. (SQL) Schedule shows as failed
    By Lfictum1 in forum TDP/Application Layer Backup
    Replies: 4
    Last Post: 08-08-2008, 11:45 AM
  4. Administrative schedule not running and Library shows up unknown
    By feedmetwinkies in forum TSM Installation, Upgrade and Configuration
    Replies: 4
    Last Post: 05-22-2008, 12:56 PM
  5. Script/Command for running TDPSQL backups on VCS installed servers
    By ejcooper in forum TDP/Application Layer Backup
    Replies: 0
    Last Post: 05-04-2006, 02:26 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •