#!/bin/sh

# Run Fabric Manager client.
#
pushd ..
INSTALLDIR=$PWD
LIB=$INSTALLDIR/lib/fm
popd
#
JVMARGS="-Dmds.nmsRoot=$INSTALLDIR -Djavax.net.ssl.trustStore=fmsKS -Djavax.net.ssl.trustStorePassword=fmserver -Djavax.net.ssl.keyStore=fmcKS -Djavax.net.ssl.keyStorePassword=fmclient"
#
JVMARGS="$JVMARGS -Xmx1024m -DuseJBoss=true"
# JVMARGS="$JVMARGS -Dsun.net.client.defaultConnectTimeout=500"
# JVMARGS="$JVMARGS -Dsun.net.client.defaultReadTimeout=500"
#
JVMARGS="$JVMARGS -Dsnmp.preferTCP=false"
# JVMARGS=$JVMARGS -Dsnmp.v3only
# JVMARGS=$JVMARGS -Dsnmp.localport=9001
# JVMARGS=$JVMARGS -Dvpn.ipaddress=
CP=$LIB/patch.jar:$LIB/fmclient.jar:$LIB/portland.jar:$LIB/fm_jcommon-0.7.2.jar:$LIB/fm_log4j.jar:$LIB/fm_layout.jar:$LIB/jviews-diagrammer.jar:$LIB/jviews-framework-all.jar:$LIB/jboss-client.jar:$LIB/commons-net-1.4.1.jar:$LIB/jakarta-oro-2.0.8.jar:$LIB/commons-codec-1.4.jar:$LIB/jchart.jar:$LIB/httpcore-4.0.1.jar:$LIB/httpclient-4.0-beta1.jar
CP=$CP:$LIB/com.noelios.restlet.jar:$LIB/org.restlet.jar
CP=$CP:$LIB/hssf.jar:$LIB/jide-action.jar:$LIB/jide-common.jar:$LIB/jide-components.jar:$LIB/jide-dialogs.jar:$LIB/jide-dock.jar:$LIB/jide-grids.jar:$LIB/jide-pivot.jar:$LIB/jide-shortcut.jar
# cd $INSTALLDIR
java -cp $CP $JVMARGS com.cisco.dcbu.sm.client.Launcher $*&
