lost and found ( for me ? )

dhcperf: DHCPパフォーマンス測定ツール

dhcperf なんてのがあるんだー。

Nominum社ってところが、フリーで配布している。

dhcperf 、なんて発音するんだ。でぃー えいち しー ぱーふ 、でいいのかな??

http://www.nominum.com/services/measurement_tools.php

Fedoraのソースはない。RHEL 4 のダウンロード。

[root@arizona src]# tar xzvf dhcperf-1.0.1.0-1-rhel-4-i386.tar.gz
[root@arizona src]# cd dhcperf-1.0.1.0-1

RPMなんだー。

[root@arizona dhcperf-1.0.1.0-1]# rpm -ivh dhcperf-1.0.1.0-1.i386.rpm

んで、バイナリ(dhcperf)は下記のディレクトリにインストールされる。

/usr/local/nom/bin/dhcperf

マニュアルや、測定方法のPDFもある。あとでじっくり(さらっと?)、見てみよう。

/usr/local/nom/doc/dhcperf/dcsevaltutorial.pdf
/usr/local/nom/doc/dhcperf/dhcperf.pdf

man マニュアルのあるので、MANPATH を設定しよう。。

/usr/local/nom/man/man1/dhcperf.1

# vi /etc/man.config
MANPATH /usr/local/nom/man <-これ追加

MANPATH追加すれば、man dhcperf で使い方が確認できる。

[root@arizona ~]# man dhcperf
NAME
dhcperf - DHCP Performance Test Tool

SYNOPSIS
dhcperf [ --client-creation-load transactions/second
] [ --clients clients ] [ --discover ] [ -h, --help ] [ --one-dis-
cover ] [ -p, --port port ] [ --progress ] [ -q, --quiet ] [
--remoteid-base remoteid ] [ --remoteid-groupsize clients ] [
--remoteid-string string ] [ --renew ] [ --retain-leases ] [ -s,
--server server ] [ --test-duration seconds ] [ --test-load transac-
tions/second
] [ --usage ]

DESCRIPTION
dhcperf is a utility for testing the performance of DHCP servers.


2種類のテストができるみたい。discover と renew のテスト。なるほど、なるほど。

TESTS
dhcperf provides two main test modes: The DHCPDISCOVER test analyzes
performance of four-way handshakes, and the DHCPRENEW that of address
renewals. In addition, the one-discover mode performs a single four-way
handshake, as a quick means of testing server availability.

Select a test mode using the --discover, --renew, and --one-discover
options. Exactly one test must be selected.

では、試しにトライ。

dhcperf ( hostname arizona, 192.168.1.150 ) --- ISC-DHCPD ( hostname alaska, 192.168.1.200 )

[root@arizona ~]# /usr/local/nom/bin/dhcperf --server 192.168.1.200 --one-discover
Could not bind to port 67: Address already in use

ん、だれか67番ポートつかんでるぞ。。。

あっ、dnsmasq だ。
KVM用の簡易DNS,DHCPデーモン。VMにIPのリース、名前解決を提供するデーモン。

[root@arizona ~]# lsof -i:67
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
dnsmasq 1750 nobody 5u IPv4 7287 0t0 UDP *:bootps

ストップ!!

[root@arizona ~]# service dnsmasq stop
Shutting down dnsmasq: [ OK ]

try again !

--progress をオプションに書くと、毎秒テストの進捗が表示されるみたいだ。

--progress
Print test progress information every second.

お、負荷かけてますねー。

[root@arizona ~]# /usr/local/nom/bin/dhcperf --server 192.168.1.200 --discover --progress
Beginning DHCPDISCOVER load test.
secs success failure active | minimum current maximum
0 0 0 0 | 0 1 1
1 0 0 0 | 0 1 1
2 0 0 1 | 0 1 1
3 1 0 1 | 0 1 1
4 1 0 2 | 0 2 2
5 2 0 2 | 0 2 2


[root@alaska dhcp]# tail /var/log/messages
alaska dhcpd: DHCPRELEASE of 192.168.1.77 from 00:00:00:00:01:09 via 192.168.1.150 (found)
alaska dhcpd: DHCPDISCOVER from 00:00:00:00:01:17 via 192.168.1.150
alaska dhcpd: DHCPOFFER on 192.168.1.56 to 00:00:00:00:01:17 via 192.168.1.150
alaska dhcpd: DHCPRELEASE of 192.168.1.22 from 00:00:00:00:01:0a via 192.168.1.150 (found)
alaska dhcpd: DHCPDISCOVER from 00:00:00:00:01:18 via 192.168.1.150
alaska dhcpd: DHCPOFFER on 192.168.1.55 to 00:00:00:00:01:18 via 192.168.1.150

よさげなツール。

gid ( gateway address ) とかは指定できないのかなー。
指定できないみたい。

AGENT OPTIONS
dhcperf may be configured to send a DHCP Relay Agent Information option
(option 82) in every DHCP packet, containing a configurable Agent
Remote ID suboption. It is not possible to send an Agent Circuit ID
suboption at this time.

- config

[root@alaska dhcp]# dhcpd -v
Internet Systems Consortium DHCP Server 4.1.0p1

[root@alaska dhcp]# egrep -v "^#" dhcpd.conf
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
option routers 192.168.1.254;
option broadcast-address 192.168.1.255;
default-lease-time 600;
max-lease-time 7200;
}
[root@alaska dhcp]#

stevie salas の back from the livin' 名作だなー。
groove 感さいこー。サラス、カッティング上手いなー。
bass は TM Stevens だし、drums は Brian Tichy だし。

from one hundred stories high .. out the window i did fly..
never tough anyone .never change anything .. but i once was there..i did fly ..

i once was there いい曲だー、歌詞も好き。ほぼ全曲好きだ~。
レニクラ人気でるなら、サラスも人気出てもいいのに。。レニクラも大好きだけど。。。
salas ,,, 逆にしても salas

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.