Tikejhya: Ashish Nepal

Knowledgebase

Category: Testing

hping

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

hping is a command-line oriented TCP/IP packet assembler/analyzer. The interface is inspired to the ping(8) unix command, but hping isn’t only able to send ICMP echo requests. It supports TCP, UDP, ICMP and RAW-IP protocols, has a traceroute mode, the ability to send files between a covered channel, and many other features.

Usages: hping -i u1 -F -p 80 192.168.1.27

htmlunit installation on Centos 5 /6

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

htmlunit installation on Centos 5

Centos 5:

Should be using release 5.4

http://mirrors.dotsrc.org/jpackage/5.0/generic/free/RPMS/jpackage-release-5-4.jpp5.noarch.rpm
rpm -ivh jpackage-release-5-4.jpp5.noarch.rpm

Install htmlunit rpm package:

# yum install htmlunit

htmlunit installation on Centos 6

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

Download the latest jpackage-release rpm from

http://mirrors.dotsrc.org/jpackage/6.0/generic/free/RPMS/

i.e.:

http://mirrors.dotsrc.org/jpackage/6.0/generic/free/RPMS/jpackage-release-6-3.jpp6.noarch.rpm

Install jpackage-release rpm:

rpm -Uvh jpackage-release*rpm

i.e.: rpm -ivh jpackage-release-6-3.jpp6.noarch.rpm

Install htmlunit rpm package:
#

yum install htmlunit

TEST YOUR SERVER PERFORMANCE

How to test your SERVER PERFORMANCE in various ways

Network /PING / MTR / TRACEROUTE
DISK / SAN / Connection

How to Test You Network.

PING

ping -l 1024 www.google.com

Check the result of packet loss (%) if any

MTR

mtr -c 100 -o SRDLBA google.com
mtr -c 100 -o SRDLBA local.domain.com

-c 100 = count 100 Number of ping sent.
-o = output order
SRDLBA – sent, recived, drop, loss, best, average

May be you would like to test,

how your disk performance is,

Make a desired directory,

cd /root/removeme/; rm -rf /root/removeme/*; sync; echo 3 > /proc/sys/vm/drop_caches; sleep 10; time tar -czf usrtest.tar.gz /usr; echo 0 > /proc/sys/vm/drop_caches;

# with cache

cd /root/removeme/; rm -rf /root/removeme/*;  time tar -czf usrtest.tar.gz /usr; rm -rf /root/removeme/*;

# without cache

cd /tmp; rm -rf /tmp/ashish.img*; time dd if=/dev/zero of=/tmp/ashish.img bs=1M count=1024;

#writing 1GB /dev/zero made img file

cd /tmp; time tar -cjf ashish.img.tar.bz2 /tmp/ashish.img; rm -rf /tmp/ashish.img*;

#taring file

Powered by WordPress & Theme by Anders Norén