UJIKAJI PING BESERTA MAKLUMAT RINGKAS

Ada masa nak kena buat ujikaji ping dan perlukan beberapa maklumat seperti sumber IP dan tarikh.

Arahan di bawah hanya sebagai contoh, mungkin ada cara yg lebih ringkas lagi...
xirkmy@home:~$ echo TEST FROM : `/sbin/ifconfig ppp0 |grep inet |cut -d: -f2|cut -d" " -f1`;echo;echo TIME : `date`;echo;ping -c 3 192.168.2.12


Akan dapat hasil seperti di bawah

TEST FROM : 60.51.XX.237

TIME : Tue Dec 20 11:23:50 MYT 2011

PING 192.168.2.12 (192.168.2.12) 56(84) bytes of data.
64 bytes from 192.168.2.12: icmp_req=1 ttl=64 time=0.084 ms
64 bytes from 192.168.2.12: icmp_req=2 ttl=64 time=0.051 ms
64 bytes from 192.168.2.12: icmp_req=3 ttl=64 time=0.071 ms

--- 192.168.2.12 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.051/0.068/0.084/0.016 ms

Comments

Popular Posts

Scanned

Website Security Test