티스토리 뷰

System Story/CentOS 5,6

Ping 시간값 표시

helperchoi 2013. 11. 10. 20:38

※ 아래와 같이 date 형식은 변경가능

 

[root@TEST01 ~]# ping yahoo.co.kr | while read net; do echo $(date) $net; done

Thu Nov 7 14:57:41 KST 2013 PING yahoo.co.kr (106.10.165.51) 56(84) bytes of data.
Thu Nov 7 14:57:41 KST 2013 64 bytes from w2.rc.vip.sg3.yahoo.com (106.10.165.51): icmp_seq=1 ttl=46 time=260 ms
Thu Nov 7 14:57:42 KST 2013 64 bytes from w2.rc.vip.sg3.yahoo.com (106.10.165.51): icmp_seq=2 ttl=46 time=261 ms
Thu Nov 7 14:57:43 KST 2013 64 bytes from w2.rc.vip.sg3.yahoo.com (106.10.165.51): icmp_seq=3 ttl=46 time=260 ms

[root@TEST01 ~]#

 

 

[root@TEST01 ~]#
[root@TEST01 ~]# ping yahoo.co.kr | while read net; do echo $(date +%Y%m%d_%H%M%S) $net; done
20140325_023150 PING yahoo.co.kr (68.180.206.184) 56(84) bytes of data.
20140325_023150 64 bytes from w2.rc.vip.sp1.yahoo.com (68.180.206.184): icmp_seq=1 ttl=48 time=136 ms
20140325_023151 64 bytes from w2.rc.vip.sp1.yahoo.com (68.180.206.184): icmp_seq=2 ttl=48 time=137 ms
20140325_023152 64 bytes from w2.rc.vip.sp1.yahoo.com (68.180.206.184): icmp_seq=3 ttl=48 time=136 ms
20140325_023153 64 bytes from w2.rc.vip.sp1.yahoo.com (68.180.206.184): icmp_seq=4 ttl=48 time=137 ms

[root@TEST01 ~]#

 

반응형

'System Story > CentOS 5,6' 카테고리의 다른 글

route 경로 추가  (0) 2013.11.10
/proc/PID/status 주요 지시자 정의  (0) 2013.11.10
passwd 묻지 않고 변경  (0) 2013.11.10
SAMBA Mount  (0) 2013.11.10
NFS Mount  (0) 2013.11.10
반응형
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday