Some basic Spectrum Linux commands for when the SpectroSERVER is located on a Linux platform.
Release : 10.4
Component : Spectrum Core / SpectroSERVER
1) How to check the spectrum installation directory on a Linux server?
[Answer] On Linux Spectrum will have Symbolic Links and an environment script in the /opt/SPECTRUM/ folder.
** This is not the install directory, but a directory allowing the binaries to find the install dir **
example below, here we can see the install directory is: /usr/Spectrum
# ls -la /opt/SPECTRUM
total 4
drwxrwxr-x. 2 root root 50 Sep 2 10:26 .
drwxr-xr-x. 11 root root 127 Aug 10 09:43 ..
lrwxrwxrwx. 1 root root 17 Jun 30 13:41 bin -> /usr/Spectrum/bin
lrwxrwxrwx. 1 root root 17 Jun 30 13:41 lib -> /usr/Spectrum/lib
-rwxrwxrwx. 1 root root 363 Sep 2 10:26 spectrum80.env
2) What is the command to open the spectrum control panel on a Linux server?
[Answer] In order to do this, you would need an XWindows Server (example MobaXterm has one built in). With
XWindows in place you would execute the SCP binary as the spectrum user
cd $SPECROOT/bin/
./SCP
3) How to check the spectrum services/processes list in linux server?
[Answer] You can use the `ps -ef` command
# ps -ef|grep -i spectrumroot
210522 1 0 Sep24 ? 00:00:16 /usr/Spectrum/lib/SDPM/processd --startspectrum
210523 210522 0 Sep24 ? 00:12:08 /usr/Spectrum/mysql/bin//mysqld --defaults-file=/usr/Spectrum/mysql/my-spectrum.cnfspectrum
210524 210522 0 Sep24 ? 00:06:17 /usr/Spectrum/bin/JavaApps/bin/nameserv -Xms128m -Xmx256m -Dvbroker.se.iiop_tp.scm.ssl.listener.port=14016 -Dvbroker.se.iiop_tp.scm.iiop_tp.listener.port=14006 -DORBpropStorage=/usr/Spectrum/.jcorbarc -Dvbroker.se.iiop_tp.scm.iiop_tp.manager.connectionMaxIdle=60 -Dvbroker.orb.admDir=/usr/Spectrum/bin/VBNS -Dborland.enterprise.licenseDir=/usr/Spectrum/bin/VBNS/license -Dborland.enterprise.licenseDefaultDir=/usr/Spectrum/bin/VBNS/license -Djava.endorsed.dirs=/usr/Spectrum/lib/endorsed -Dorg.omg.CORBA.ORBClass=com.inprise.vbroker.orb.ORB -Dorg.omg.CORBA.ORBSingletonClass=com.inprise.vbroker.orb.ORBSingleton com.inprise.vbroker.naming.ExtFactoryspectrum
210525 210522 0 Sep24 ? 00:06:18 /usr/Spectrum/bin/JavaApps/bin/telnetd -Xms128m -Xmx256m com.aprisma.spectrum.telnetd.Telnetdspectrum 210526 210522 0 Sep24 ? 00:00:44 /usr/Spectrum/LS/LocServerspectrum
210528 210522 0 Sep24 ? 00:07:30 /usr/Spectrum/bin/JavaApps/bin/ncmservice -Xms256M -Xmx1024M -XX:+HeapDumpOnOutOfMemoryError -Dvbroker.agent.enableLocator=false -Dvbroker.orb.admDir=/usr/Spectrum/bin/VBNS -Dborland.enterprise.licenseDir=/usr/Spectrum/bin/VBNS/license -Dborland.enterprise.licenseDefaultDir=/usr/Spectrum/bin/VBNS/license -Djava.endorsed.dirs=/usr/Spectrum/lib/endorsed -DSPECROOT=/usr/Spectrum com.aprisma.spectrum.scmd.ScmServicespectrum
210876 210522 0 Sep24 ? 00:15:01 /usr/Spectrum/SS/SpectroSERVERspectrum
210906 210522 0 Sep24 ? 00:06:15 /usr/Spectrum/bin/JavaApps/bin/rexconnector -Xms128m -Xmx256m -Dvbroker.agent.enableLocator=false -Dvbroker.orb.admDir=/usr/Spectrum/bin/VBNS -Dborland.enterprise.licenseDir=/usr/Spectrum/bin/VBNS/license -Dborland.enterprise.licenseDefaultDir=/usr/Spectrum/bin/VBNS/license -Djava.endorsed.dirs=/usr/Spectrum/lib/endorsed -DSPECROOT=/usr/Spectrum com.aprisma.spectrum.app.rex.connector.REXConnectorspectrum
211287 210522 0 Sep24 ? 00:01:35 /usr/Spectrum/SS/DDM/ArchMgr
4) What is the command to stop/start the spectrum services/processes on a Linux server?
[Answer]
processd -
cd $SPECROOT/lib/SDPM/
./processd.pl [start|stop]
SpectroSERVER | ArchMgr
cd $SPECROOT/bin/
./startSS.pl
./stopSS.pl
5) What is the command to start/stop the archive manager in Linux server?
[Answer] The ArchMgr will start/stop with the startSS.pl | stopSS.pl script above but can be started and stopped individually as follows
start: use launchinstdbapp
cd $SPECROOT/bin/
./launchinstdbapp localhost ARCHMGR n ARCHMGR.OUT
Stop: cmdC
cd $SPECROOT/bin/
./cmdC localhost 2 ARCHMGR
** The ArchMgr will also start/stop using the startSS.pl and stopSS.pl scripts (this also starts and stops the SpectroSERVER as well)
6) What is the command to repair the Archive Manager on a Linux server?
[Answer]
cd $SPECROOT/SS/DDM/
./ArchMgr -repair
7) What are the commands to save/restore the ssdb database on a Linux server?
[Answer]
- this MUST be run from the SS folder
- this NEEDS to be run as the Spectrum user
cd $SPECROOT/SS/
../SS-Tools/SSdbload -il ../SS-DB-Backup/xxxxxxxxxxxx.SSdb
../SS-Tools/SSdbsave -cm ../SS-DB-Backup/xxxxxxxxxx.SSdb