1 NOTE! You have to run this script as root, or sudo, whatever. The reason
2 is that it invokes tcpdump which needs escalated privileges in order to
3 monitor your network interfaces. There are ways around that, but I was too
4 lazy to bother implementing them. So, be root.
6 Run this script just as "./versabench.pl" (or sudo ./versabench.pl, probably).
7 for your own sanity, it's better to run with "./versabench.pl 2>/dev/null", or
10 You'll need tcpdump. I hope that goes without having said... that.
12 Note: In order to connect to an MS SQL database, I had to install (under
13 Linux Ubuntu) the packages:
15 libdbd-sybase-perl (as opposed to DBD::FreeTDS, which is unmaintained)
17 Add this to /etc/freetds/freetds.conf:
19 host = $IP_ADDRESS_OF_YOUR_SQL_SERVER
23 Now this can connect to an SQL database!
26 For DBus purposes, you need:
29 Set the $dbus_moniker variable below to your DBus connection string, and off
33 To get VxODBC working right, you'll need:
37 Now, this part is a little tricky. You'll obviously need a VxODBC with its
38 supporting libraries; easiest way to do that is check out a copy of the
39 versaplex tree and compile it.
41 Add this to /etc/odbcinst.ini:
46 Description = The biggest pair you've ever seen twinkleberry
47 Driver = $ABSOLUTE_PATH_TO_VXODBC/vxodbc.so
48 Setup = $ABSOLUTE_PATH_TO_VXODBC/vxodbc.so
51 Add this to /etc/odbc.ini:
54 Database = $desired_name_of_connection_in_your_versaplexd.ini
55 Servername = do_i_do_anything
59 Done and done. You can test that this works by running:
60 export DBUS_SESSION_BUS_ADDRESS=$vxodbc_dbus_moniker
61 isql -v testdb $username $pw
63 Here, $vxodbc_dbus_moniker is the connection moniker to DBus, and
64 username and pw are the database username and password respectively.
65 Try some practice commands, and if they work, you're golden.
67 THEN: edit versabench.conf and modify the configuration variables to match
68 the ones you want to use.