HinzugefĆ¼gt:
[ipfire-2.x.git] / tools / perfTest.sh
CommitLineData
cd1a2927
MT
1#!/bin/bash\r
2#\r
3############################################################################\r
4# #\r
5# This file is part of the IPCop Firewall. #\r
6# #\r
7# IPCop is free software; you can redistribute it and/or modify #\r
8# it under the terms of the GNU General Public License as published by #\r
9# the Free Software Foundation; either version 2 of the License, or #\r
10# (at your option) any later version. #\r
11# #\r
12# IPCop is distributed in the hope that it will be useful, #\r
13# but WITHOUT ANY WARRANTY; without even the implied warranty of #\r
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #\r
15# GNU General Public License for more details. #\r
16# #\r
17# You should have received a copy of the GNU General Public License #\r
18# along with IPCop; if not, write to the Free Software #\r
19# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #\r
20# #\r
21# Copyright (C) 2005 Mark Wormgoor <mark@wormgoor.com>. #\r
22# #\r
23############################################################################\r
24#\r
25# $Id: perfTest.sh,v 1.1.2.1 2005/01/26 19:43:36 riddles Exp $\r
26#\r
27# This script will do a get request for all links on an IPCop box.\r
28# You can time this using:\r
29# time ./perfTest.sh\r
30#\r
31# This will give you a basic idea of the speed of your IPCop machine\r
32# and will make it possible for you to test new updates for performance.\r
33# With just network overhead on a sufficiently fast machine, expect \r
34# something around 5 seconds for the entire test.\r
35#\r
36## Basic settings\r
37CGI_HOST=192.168.1.1\r
38CGI_PORT=445\r
39CGI_URL="https://$CGI_HOST:$CGI_PORT/cgi-bin"\r
40USER=admin\r
41PASS=password\r
42CMD="wget -q -O /dev/null --http-user=$USER --http-passwd=$PASS"\r
43\r
44doTest() {\r
45 $CMD $CGI_URL/aliases.cgi\r
46 $CMD $CGI_URL/backup.cgi\r
47 $CMD $CGI_URL/changepw.cgi\r
48 $CMD $CGI_URL/connections.cgi\r
49 $CMD $CGI_URL/credits.cgi\r
50 $CMD $CGI_URL/ddns.cgi\r
51 $CMD $CGI_URL/dhcp.cgi\r
52 $CMD $CGI_URL/dial.cgi\r
53 $CMD $CGI_URL/dmzholes.cgi\r
54 $CMD $CGI_URL/graphs.cgi\r
55 $CMD $CGI_URL/gui.cgi\r
56 $CMD $CGI_URL/hosts.cgi\r
57 $CMD $CGI_URL/ids.cgi\r
58 $CMD $CGI_URL/index.cgi\r
59 $CMD $CGI_URL/ipinfo.cgi\r
60 $CMD $CGI_URL/modem.cgi\r
61 $CMD $CGI_URL/netstatus.cgi\r
62 $CMD $CGI_URL/portfw.cgi\r
63 $CMD $CGI_URL/pppsetup.cgi\r
64 $CMD $CGI_URL/proxy.cgi\r
65 $CMD $CGI_URL/proxygraphs.cgi\r
66 $CMD $CGI_URL/remote.cgi\r
67 $CMD $CGI_URL/shaping.cgi\r
68 $CMD $CGI_URL/shutdown.cgi\r
69 $CMD $CGI_URL/status.cgi\r
70 $CMD $CGI_URL/time.cgi\r
71 $CMD $CGI_URL/updates.cgi\r
72 $CMD $CGI_URL/upload.cgi\r
73 $CMD $CGI_URL/vpnmain.cgi\r
74 $CMD $CGI_URL/wireless.cgi\r
75 $CMD $CGI_URL/xtaccess.cgi\r
76 $CMD $CGI_URL/logs.cgi/config.dat\r
77 $CMD $CGI_URL/logs.cgi/firewalllog.dat\r
78 $CMD $CGI_URL/logs.cgi/ids.dat\r
79 $CMD $CGI_URL/logs.cgi/log.dat\r
80 $CMD $CGI_URL/logs.cgi/proxylog.dat\r
81 $CMD $CGI_URL/logs.cgi/summary.dat\r
82}\r
83\r
84doTest\r