Need to calculate sftp time beteen two servers.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Need to calculate sftp time beteen two servers.
# 1  
Old 12-09-2008
Need to calculate sftp time beteen two servers.

Hi,

I need to calculate time taken by a 100kb file for sftp between two servers. I am new to unix can some body please tell me how do this.

Thanks in advance...
Vivek
# 2  
Old 12-10-2008
Create a 100kb file with dd for example and just sftp it. It will tell you the time.
# 3  
Old 12-10-2008
Hi zaxxon,

Thanks for your reply.
i created a 100 kb file using dd.........dd if=/dev/zero of=file1 bs=1024 count=100
when i sftp'd the the file from one server to another server...i got the time like

sftp> put file1 /tmp/load
Uploading file1 to /tmp/load/file1
file1 100% 100KB 100.0KB/s 00:00
sftp>

but the time gives me '00.00'
Is there some way i change this format to miliseconds....as i need the sftp time in mili seconds...

Thanks and Regards,
Vivek.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to calculate total number of cores on my servers ?

Hi, I want to get total number of cores on my all non-global zones on Solaris 10. I got two methods and both are giving different results. Below link is a script, which tells me that total cores are 8 Mandalika's scratchpad: Oracle Solaris: Show Me the CPU, vCPU, Core Counts and the... (4 Replies)
Discussion started by: ron323232
4 Replies

2. Shell Programming and Scripting

Calculate Time diff in milli milliseconds(Time format : HH:MM:SS,NNN)

Hi All, I have one file which contains time for request and response. I want to calculate time difference in milliseconds for each line. This file can contain 10K lines. Sample file with 4 lines. for first line. Request Time: 15:23:45,255 Response Time: 15:23:45,258 Time diff... (6 Replies)
Discussion started by: Raza Ali
6 Replies

3. UNIX for Advanced & Expert Users

How to setup sftp beteen two servers?

Hi Could you please help me out how to configure between two server I don't have admin idea to setup the Sftp server the requirements is we want to send a file to vendor so we need sftp configuration so that can we can send file through sftp Please let me know what should I ask to vendor... (1 Reply)
Discussion started by: jagu
1 Replies

4. Shell Programming and Scripting

Sftp files between servers

I am writing a shell script to copy sybase related .dump files from one to another aix server and visa versa. Please help me do the following The script does the following: - check directory exists - copy dump files - copy is done for multiple database - checks databases, if one... (11 Replies)
Discussion started by: nmm_dba
11 Replies

5. Shell Programming and Scripting

Calculate age of a file | calculate time difference

Hello, I'm trying to create a shell script (#!/bin/sh) which should tell me the age of a file in minutes... I have a process, which delivers me all 15 minutes a new file and I want to have a monitoring script, which sends me an email, if the present file is older than 20 minutes. To do... (10 Replies)
Discussion started by: worm
10 Replies

6. Shell Programming and Scripting

Grep string from logs of last 1 hour on files of 2 different servers and calculate count

Hi, I am trying to grep a particular string from the files of 2 different servers without copying and calculate the total count of its occurence on both files. File structure is same on both servers and for reference as follows: 27-Aug-2010... (4 Replies)
Discussion started by: poweroflinux
4 Replies

7. Shell Programming and Scripting

How to calculate time difference between start and end time of a process!

Hello All, I have a problem calculating the time difference between start and end timings...! the timings are given by 24hr format.. Start Date : 08/05/10 12:55 End Date : 08/09/10 06:50 above values are in mm/dd/yy hh:mm format. Now the thing is, 7th(08/07/10) and... (16 Replies)
Discussion started by: smarty86
16 Replies

8. Shell Programming and Scripting

SFTP files to two servers

Hi, I need to write a unix shell script which sends files to a server1 from my server via sftp. Then it needs to again SFTP files from that server1 to another server2. And finally remove the transferred files in the intermediate server1. Please provide me pointers on how to achieve the same. All... (3 Replies)
Discussion started by: vharsha
3 Replies

9. Shell Programming and Scripting

SFTP Transfer Across Multiple Servers

Hello everyone, Have a question which I'm not entirely sure about, but will ask anyway. We have three servers (A/B/C), 'A' being the local host, 'B' being a SFTP server on the DMZ, and 'C' being the intended remote host. The task is to transfer file/s from server 'A' to server 'C' via server... (0 Replies)
Discussion started by: Cameron
0 Replies

10. Shell Programming and Scripting

Calculate disk usage in different servers

Hello, I'm writing a script to monitor different filesystems in multiple servers. And depending on the % free, my script will send an Alert email if % free is less than threshold. I want to keep a input_feed_file which would have "server,filesystem". If I run a script a host 'a', then I can... (3 Replies)
Discussion started by: bperl
3 Replies
Login or Register to Ask a Question