#!/bin/sh
#$Id: setEnv.sh,v 1.1.8.1 2009/03/10 04:12:12 moujie Exp $
#This file is to set the environmental variables used by the scripts located under the <NMS_HOME>/bin.
#Changes included in this file will gets reflected in all the shell files used under the <NMS_HOME>/bin.

NMS_HOME=`pwd`

JAVA_HOME=$NMS_HOME/jre

JAVA_COMPILER=NONE
export JAVA_COMPILER

# LICENSE_PATH variable is to locate AdventNetLicense.ali directory path.
LICENSE_PATH=$NMS_HOME

NMS_CLASSES=$NMS_HOME/classes

SNMP_CLASSPATH=$NMS_CLASSES/AdventNetSnmp.jar:$NMS_CLASSES/SNMPDebugger.jar

EXAMPLE_CLASSES=$NMS_HOME/examples/classes

SAS_CLASSPATH=$NMS_CLASSES/AdventNetSAS.jar

XML_CLASSPATH=$NMS_CLASSES/jaxp.jar:$NMS_CLASSES/crimson.jar:$NMS_CLASSES/xalan.jar

MYSQL_HOME=$NMS_HOME/mysql

DB_CLASSPATH=$MYSQL_HOME/driver/mysql_connector.jar:$NMS_CLASSES/p6spy.jar:$NMS_HOME/conf:$NMS_CLASSES/log4j.jar

WEBSERVER_HOME=$NMS_HOME/apache

TOMCAT_HOME=$WEBSERVER_HOME/tomcat

WEBSERVER_CLASSPATH=$TOMCAT_HOME/common/lib/servlet.jar:$TOMCAT_HOME/bin/bootstrap.jar

WEBSERVER_JARS=$WEBSERVER_CLASSPATH:$XML_CLASSPATH

BUILDER_JAR_HOME=$NMS_CLASSES

BUILDER_CLASSPATH=$BUILDER_JAR_HOME/AdventNetUI.jar:$BUILDER_JAR_HOME/AdventNetUtils.jar:$BUILDER_JAR_HOME/ApiUtils.jar

#AdventNetBeanBuilder.jar contains JMacs.jar,SourceMerger.jar,SourceGeneraor.jar
BUILDER_CLASSES=$NMS_CLASSES/AdventNetBeanBuilder.jar

CLI_CLIENT_CLASSPATH=$NMS_CLASSES/AdventNetCLIClient.jar:$NMS_CLASSES/AdventNetJta.jar

CLI_CLASSPATH=$NMS_CLASSES/AdventNetCLI.jar:$CLI_CLIENT_CLASSPATH


JMX_AGENT_CLASSPATH=$NMS_CLASSES/AdventNetSnmpAgent.jar:$NMS_CLASSES/xmojo.jar:$NMS_CLASSES/AdventNetWebNmsAgent.jar:$NMS_CLASSES/AdventNetJmxAgent.jar:$NMS_CLASSES/AdventNetARUtils.jar:$NMS_CLASSES/AdventNetTL1Agent.jar

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$NMS_HOME/lib:$WEBSERVER_HOME/lib
export LD_LIBRARY_PATH

TRANSACTION_CLASSPATH=$NMS_CLASSES/jta.jar

MS_CLIENT_CLASSPATH=$NMS_CLASSES/ManagementClient.jar

MS_CLASSPATH=${NMS_CLASSES}/ManagementServer.jar:${MS_CLASSPATH}

JIMI_CLASSPATH=${NMS_CLASSES}/JimiProClasses.zip:${NMS_CLASSES}/jfreechart.jar:${NMS_CLASSES}/jcommon.jar

TFTP_CLASSPATH=${NMS_CLASSES}/AdventNetTftp.jar

host=localhost

CODEBASE_LIST=\"file:///$NMS_HOME/classes/\ file:///$NMS_HOME/NetMonitor/build/IPDSLAM_EMS_Server.jar\ file:///$NMS_HOME/classes/ManagementServer.jar\ file:///$NMS_HOME/classes/AdventNetTftp.jar\ file:///$NMS_HOME/classes/AdventNetCLI.jar\ file:///$NMS_HOME/classes/xmojo.jar\ file:///$NMS_HOME/classes/AdventNetSnmp.jar\ file:///$NMS_HOME/classes/SNMPDebugger.jar\ file:///$NMS_HOME/classes/AdventNetJmxAgent.jar\ file:///$NMS_HOME/classes/AdventNetARUtils.jar\ file:///$NMS_HOME/classes/AdventNetTL1Agent.jar\ file:///$NMS_HOME/classes/AdventNetSAS.jar\ file:///$NMS_HOME/classes/jta.jar\"

OTHER_CLASSPATH=${NMS_CLASSES}/Mail.jar:${NMS_CLASSES}/activation.jar:$NMS_CLASSES/AdventNetNPrevalent.jar:$NMS_CLASSES/bsh-1.2b3.jar:$NMS_CLASSES/debugger.jar

NMS_ARC=${NMS_CLASSES}/NmsClientClasses.jar

MIGRATION_CLASSPATH=${NMS_CLASSES}/migration.jar:${NMS_CLASSES}/MigrationUtil.jar


WEBSERVER_PORT=9090

WEBCONTAINER_PORT=8009
FTP_CLASSPATH=$NMS_CLASSES/ftp.jar

UMGR_INSTALLER_CLASSPATH=$NMS_CLASSES/AdventNetUpdateManagerInstaller.jar

UPDATE_MANAGER_CLASSPATH=$UMGR_INSTALLER_CLASSPATH:$XML_CLASSPATH:$JIMI_CLASSPATH:$NMS_CLASSES

SUM_CLIENT_CLASSPATH=$NMS_CLASSES/AdventNetSUMClient.jar:$UMGR_INSTALLER_CLASSPATH

SUM_SERVER_CLASSPATH=$NMS_CLASSES/AdventNetSUMServer.jar


TOMCAT_SHUTDOWNPORT=8005
LOG4J_CLASSPATH=$NMS_CLASSES/log4j.jar
SSH2_CLASSPATH=$NMS_CLASSES/j2ssh-core.jar:$NMS_CLASSES/j2ssh-common.jar:$NMS_CLASSES/commons-logging.jar
