|
Installing Central Server and Distributed Mediation Server as NT Service
Installing as Unix Service
Uninstalling Unix Service
AdventNet Web NMS's Central Server and the Distributed Mediation Server can be installed as an NT and Unix service. On installation as NT or Unix Service, the servers start when the machine boots up along with other services such as Telnet, FTP etc.
|
|
Warning: If you want to start a fresh installation of Web NMS Central Server or Distributed Mediation Server as NT Service, you must first start the server in the normal mode, supply the required license information and then restart as NT Service. The server will not start as an NT Service directly, owing to the license requirements. |
Installing Central Server and Distributed Mediation Server as NT Service
Copy the java_service.ini file and JavaService.exe to the Windows installation directory. In Central Server, these files will be present in the <Central Home>/lib and in Distributed Mediation Server, these files will be present in the <DMS Home>/lib directory.
If required, modify SERVICE_DIR path in the java_service.ini file. SERVICE_DIR refers to the home directory where Central Server or Distributed Mediation Server is installed. If two versions are installed, the required home directory from which the NT Service must start is mentioned here.
Execute JavaService -install from the command prompt in the directory where Windows 2000/NT is installed, to install Web NMS Server as NT Service.
The above procedure starts the Web NMS Central or Distributed Mediation Server as NT Service at the time of system reboot and will be stopped when the system is shut down.
|
|
Note: When Web NMS is started as a service, it takes MySQL as its database, as MySQL is the default database bundled with Web NMS. To start Web NMS with a different database, edit the java_service.ini file under the winnt or windows directory and change the classpath accordingly. In addition, modify the database_params.conf and DatabaseSchema.conf in the respective database directory under the <Central Home>/conf directory and copy the files to the <Central Home>/conf directory and respectively in Distributed Mediation Server. |
Execute JavaService -uninstall from the command prompt in the Windows 2000/NT installed directory to uninstall the NT Service.
Check for the message "DeleteService Success" for confirmation.
Installing as Unix Service - Central Server
Linux User
Log in as super user.
Enter the full file
path to variable CENTRAL_HOME in the file <Central
Home>/lib/webnms
For example, change path to CENTRAL_HOME=/home/sam/Central_Server/AdventNet/WebNms
Copy the webnms file <Central Home>/lib/ to /etc/rc.d/init.d/ directory.
Create a link as S91centralserver in /etc/rc.d/rc5.d/ using the following command:
ln -s /etc/rc.d/init.d/webnms /etc/rc.d/rc5.d/S91centralserver
Create a link as K20centralserver in /etc/rc.d/rc2.d/ to kill Central Server running as a Unix service using the following command:
ln -s /etc/rc.d/init.d/webnms /etc/rc.d/rc2.d/K20centralserver
After creating these links, if you want to run Central Server as a Unix service for the first time without rebooting, give the following command:
To start: /etc/rc.d/rc5.d/S91centralserver start
To shut down: /etc/rc.d/rc2.d/K20centralserver stop
To console logs for startup operation will be present in <Central Home>/ ServiceStartupLogs.txt and console logs for shutdown operation in <Central Home>/ServiceShutdownLogs.txt.
Solaris User
Log in as super user.
Enter the full file
path to variable CENTRAL_HOME in the file <CentralHome>/lib/webnms
For example, change path to CENTRAL_HOME=/home/sam/Central_Server/AdventNet/WebNms
Copy the webnms file <Central Home>/lib/ to /etc directory.
Create the following link in /etc/rc2.d/
Create
a link named S100centralserver
in /etc/rc2.d/.
For example, give the following command from /etc/rc2.d/:
Syntax: ln -s <file
with full path> <link_name>
Command:ln -s /etc/centralserver
/etc/rc2.d/S100centralserver
Create another link in /etc/rc0.d/.
Create a link named
K20centralserver to kill Central
Server running as a Unix service.
For example, give the following command from /etc/rc0.d/:
Syntax: ln -s <file with full path> <link_name>
Command:ln -s /etc/centralserver /etc/rc0.d/K20centralserver
After creating these links, if you want to run Central Server as a service for the first time without re-booting give the following command:
To start: /etc/rc2.d/S100centralserver start.
To shut down: /etc/rc0.d/K20centralserver stop.
The console logs for startup operation will be present in <Central Home>/ServiceStartupLogs.txt and console logs for shut down operation in <Central Home>/ServiceShutdownLogs.txt.
Installing as Unix Service - Distributed Mediation Server
Linux User
Log in as super user.
Enter the
full file path to variable DMS_HOME in the file <DMS
Home>/lib/rmeprobe
For example, change path to DMS_HOME=/home/sam/dms/AdventNet/RMEProbe
Copy the rmeprobe file <DMS Home>/lib/ to /etc/rc.d/init.d/ directory.
Create a link as S91dms in /etc/rc.d/rc5.d/ using the following command:
ln -s /etc/rc.d/init.d/rmeprobe /etc/rc.d/rc5.d/S91dms
Create a link as K20dms in /etc/rc.d/rc2.d/ to stop Distributed Mediation Server running as a Unix service using the following command:
ln -s /etc/rc.d/init.d/rmeprobe /etc/rc.d/rc2.d/K20dms
After creating these links, if you want to run Distributed Mediation Server as a service for the first time without re-booting give the following command:
To Start: /etc/rc.d/rc5.d/S91dms start.
To Shut Down: /etc/rc.d/rc2.d/K20dms stop.
The console logs for startup operation will be present in <DMS Home>/ServiceStartupLogs.txt and console logs for shutdown operation in <DMS Home>/ServiceShutdownLogs.txt.
Solaris User
Log in as super user.
Enter the
full file path to variable DMS_HOME in the file <DMS
Home>/lib/rmeprobe
For example, change path to DMS_HOME=/home/sam/dms/AdventNet/RMEProbe
Copy the rmeprobe file <DMS Home>/lib/ to /etc directory.
Create the following link in /etc/rc2.d/
Create
a link named S100dms in /etc/rc2.d/.
For example, give the following command from /etc/rc2.d/:
Syntax:ln -s <file with full path> <link_name>
Command:ln -s /etc/dms /etc/rc2.d/S100dms
Create another link in /etc/rc0.d/.
Create a
link named K20dmsto stop the Distributed
Mediation Server running as a unix service.
For example, give the following command from /etc/rc0.d/:
Syntax: ln -s <file with full path> <link_name>
Command:ln -s /etc/dms /etc/rc0.d/K20dms
After creating these links, if you want to run Central Server or Standalone Server as a service for the first time without re-booting give the following command:
To start: /etc/rc2.d/S100dms start.
To shut down: /etc/rc0.d/K20dms stop.
The console logs for startup operation will be present in <DMS Home>/ServiceStartupLogs.txt and console logs for shutdown operation in <DMS Home>/ServiceShutdownLogs.txt.
Uninstalling Unix Service - Central Server
Linux User
To uninstall Central Server as a Unix service, remove the following links and files which are created while installing the product as Unix service:
rm /etc/rc.d/rc5.d/S91centralserver
rm /etc/rc.d/rc2.d/K20centralserver
rm /etc/rc.d/init.d/centralserver
Solaris User
To uninstall Central Server or Standalone Server as a Unix service, remove the following links and files which are created while installing the product as Unix service:
rm /etc/rc2.d/S100centralserver
rm /etc/rc0.d/K20centralserver
rm /etc/centralserver
Uninstalling Unix Service - Distributed Mediation Server
Linux User
To uninstall Distributed Mediation Server as a Unix service, remove the following links and files which are created while installing the product as Unix service:
rm /etc/rc.d/rc5.d/S91dms
rm /etc/rc.d/rc2.d/K20dms
rm /etc/rc.d/init.d/dms
Solaris User
To uninstall Distributed Mediation Server as a Unix service, remove the following links and files which are created while installing the product as Unix service:
rm /etc/rc2.d/S100dms
rm /etc/rc0.d/K20dms
rm /etc/dms
Central Server and Distributed Mediation Servers will be installed as a Unix Service at the time of system reboot and will be shut down when the system is shut down.
|