|
AdminGuide
Server and Client Installation and Configuration Guides
Documentation
Sipana ServerJBoss Application ServerThe Sipana server component is a Java EE application developed to run in the JBoss Application Server. Before install and run the Sipana Server you need to install the Java Virtual Machine (JRE or JDK) version 5 or higher and the JBoss AS version 4.2.3.GA or higher. The Sipana Server will be installed in the default JBoss server deployment ($JBOSS_HOME/server/default). We recommend you to configure the environment variable $JBOSS_HOME with the patch for you JBoss AS installation because we'll use it in all command line commands in this document so you wont need to replace it with your server installation path: export JBOSS_HOME=/usr/local/jboss-4.2.3.GA
MySQL server and MySQL JDBC driverBy default Sipana server uses the MySQL as background DBMS, so you will need a up and running MySQL server. The MySQL JDBC driver, needed to connect to a MySQL server from a JBoss AS application, is not installed in the JBoss AS by default. Please download the correct version for you MySQL server here and copy the file mysql-connector-java-X.X.X-bin.jar to the $JBOSS_HOME/server/$JBOSS_SERVER/lib directory.
Sipana Server componentDownload and InstallDownload the last version of the Sipana Server component and unpack it in a local directory tar zxvf sipana-server-X.X.X.tar.gz cd sipana-server-X.X.X Copy '''sipana.ear''' to the JBoss AS server deploy directory: cp -R sipana.ear $JBOSS_HOME/server/$JBOSS_SERVER/deploy
Create the databaseYou will need root access or equivalent to execute the database creation script: mysql -u root -p < sipana-server/sql/sipana_db_create.sql Configure a username and password with all privileges to be used by Sipana Server: mysql -u root -p grant all privileges on sipana.* to 'sipana'@'localhost' identified by 'sipana'; flush privileges; Please look in the MySQL documentation for more information about creating and configure the database.
Configure the database parametersEdit the file sipana-server-ds.xml in the directory $JBOSS_HOME/server/default/deploy and change the following parameters as needed. vim $JBOSS_HOME/server/default/deploy/sipana-server-ds.xml The connection-url attribute format is: jdbc:mysql://HOST:PORT/DATABASE_NAME <connection-url>jdbc:mysql://localhost:3306/sipana</connection-url> <user-name>sipana</user-name> <password>sipana</password> Run the JBoss AS$JBOSS_HOME/bin/run.sh -c default -b SERVER_ADDRESS IMPORTANT: You cannot use 0.0.0.0 as -b parameter value otherwise the client component wont be able to connect to the server (see Issue #4) Please look in the JBoss AS documentation for more information about server operation.
Test the web interfaceOpen a web browser and point to the following address to test your installation. Change the string SERVER_ADDRESS to the server IP address: http://SERVER_ADDRESS/sipana/</nowiki>
Sipana AgentJpcap libraryThe Sipana Client component uses Jpcap library (a JNI layer to use native libpcap/WinPcap library). We use the Keita Fujii jpcap implementation (there is a Source jpcap project but it seems to be no longer maintained). Please take a look in the project installation documentation in and read our installation notes below if you have problems during the installation. Fell free to ask for help about jpcap installation in the Sipana mailing list. Jpcap installation notesI could install the RPM/DEB packages with no problems in the following Linux distributions:
use "rpm -ivh --nodeps jpcap-x.x.rpm" to install the RPM if you installed only the Sun JRE rpm package. jpcap RPM package depends on package "jdk" provided only by Sun SDK package)
Sipana Client
$SIPANA_HOME/bin/sipana-client.sh where $SIPANA_HOME is the Sipana Client installation directory.
|