Results 1 to 2 of 2
-
03-24-2010, 03:14 PM #1Senior Member
- Join Date
- Nov 2002
- Posts
- 511
- Thanks
- 1
- Thanked 1 Time in 1 Post
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"
-
03-24-2010, 04:55 PM #2
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
-
how to speed up the running backup process?
By sandeepkontham in forum Backup / Archive DiscussionReplies: 6Last Post: 06-14-2009, 06:55 AM -
SQL query that shows all the NEW failed backups
By yampam in forum ScriptingReplies: 3Last Post: 11-03-2008, 05:15 AM -
(SQL) Schedule shows as failed
By Lfictum1 in forum TDP/Application Layer BackupReplies: 4Last Post: 08-08-2008, 11:45 AM -
Administrative schedule not running and Library shows up unknown
By feedmetwinkies in forum TSM Installation, Upgrade and ConfigurationReplies: 4Last Post: 05-22-2008, 12:56 PM -
Script/Command for running TDPSQL backups on VCS installed servers
By ejcooper in forum TDP/Application Layer BackupReplies: 0Last Post: 05-04-2006, 02:26 PM


Reply With Quote
