#!/bin/sh
#
# Run the Device Manager client.
#
pushd ..
INSTALLDIR=$PWD
LIB=$INSTALLDIR/lib/dm
popd
#
JVMARGS="-Dmds.nmsRoot=$INSTALLDIR -Djava.endorsed.dirs=$LIB -Djavax.net.ssl.trustStore=fmsKS -Djavax.net.ssl.trustStorePassword=fmserver"
# JVMARGS="$JVMARGS -Dsun.net.client.defaultConnectTimeout=500"
# JVMARGS="$JVMARGS -Dsun.net.client.defaultReadTimeout=500"
# JVMARGS=$JVMARGS -Dsnmp.v3only
JVMARGS="$JVMARGS -Dsnmp.preferTCP=false"
# JVMARGS=$JVMARGS -Dvpn.ipaddress=
echo $JVMARGS
CP=$LIB/patch.jar:$LIB/bitmaps.jar:$LIB/dm.jar:$LIB/dmdb.jar:$LIB/dmhelp.jar:$LIB/portland.jar:$LIB/jchart.jar:$LIB/jnm.jar:$LIB/snmp.jar:$LIB/fm_jcommon-0.7.2.jar:$LIB/fmserver.jar:$LIB/log4j.jar:$LIB/commons-codec-1.3.jar
CP=$CP:$LIB/jboss-jaxrpc.jar:$LIB/jboss-jaxws.jar:$LIB/jboss-saaj.jar:$LIB/jbossws-client.jar:$LIB/jboss-xml-binding.jar:$LIB/mail.jar:$LIB/concurrent.jar:$LIB/jboss-common-client.jar:$LIB/jboss-remoting.jar:$LIB/xercesImpl.jar:$LIB/activation.jar
CP=$CP:$LIB/jide-action.jar:$LIB/jide-common.jar:$LIB/jide-grids.jar
# cd $INSTALLDIR
java -cp $CP $JVMARGS com.cisco.dcbu.dm.DM $*&
