Hi!
John, I'm working with the similar problem. There is a script in the Spectrum
which "helps ensure that the relative directory structure
of the Command Line Interface tool and its support files is retained when the
files are moved", but this scrip only exist in Spectrum 9, I created a virtual
machine with linux and have installed a Spectrum 9. The file that I attached is
the script for linux, perhaps it can help you.
Susana
-----Mensaje original-----
De: John O'Mahony [mailto:[email protected]]
Enviado el: miércoles, 13 de enero de 2010 12:26
Para: spectrum
Asunto: [spectrum] Moving CLI to a OneClick machine - Spectrum 8.1
Hi
Environment is Spectrum 8.1, Windows 2003.
Has anyone moved the vnmsh directory on to a OneClick machine in 8.1?
The Spectrum Wiki details that to move vnmsh you need to copy the lib directory
from the SS machine. However OC already has a lib directory which appears to be
a subset of the SS lib, with about 6 or 7 additional dlls.
So I'm wondering how much of the SS directory needs to be copied. Do I simply
add all the files from SS\lib that are not in OC\lib?
I'm hoping someone has done this already to let me know any gotchas and
possibly save me having to work through it :-)
Regards, John
PS I realise that in Spectrum 9 you can use packtool to do this but that is not
available in 8.1.
---
To unsubscribe from spectrum, send email to [email protected] with the body:
unsubscribe spectrum [email protected]
________________________________
Este correo electrónico y cualquiera de sus ficheros anexos son CONFIDENCIALES.
Si usted no es el destinatario (o responsable de remitirlo a la persona
indicada), agradeceríamos lo notificase / reenviase inmediatamente al emisor.
No revele estos contenidos a ninguna otra persona, no los utilice para otra
finalidad, ni almacene y/o copie esta información en medio alguno. Los correos
electrónicos son susceptibles de ser alterados por terceras personas y por
tanto, Metro de Madrid, S.A. declina toda responsabilidad si el mensaje ha sido
alterado o falsificado, así como opiniones o conclusiones que deban ser
entendidas como exclusivas del emisor y no como expresión de una decisión
Corporativa.
This electronic mail and any of its annexed files are CONFIDENTIAL. If you are
not the addressee (or responsible for sending it to the indicated person), we
would be thankful if you notified or sent it immediately to the sender. Do not
reveal these contents to any other person, do not use them for another purpose,
do not store or copy this information. The electronic mails are susceptible to
alteration by third parties and therefore, Metro de Madrid, S.A. declines all
responsibility if the message has been altered or falsified, as well as
opinions or conclusions that may be understood are the exclusive rights of the
sender and not the result of a Corporative decision.
---
To unsubscribe from spectrum, send email to [email protected] with the body:
unsubscribe spectrum [email protected]
{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 Courier New;}}
{\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\lang3082\f0\fs20
packtool_cli..pl#####opt/SPECTRUM/bin/perl -I/opt/SPECTRUM/lib/perl\par
\par
# NOTE: This is for packaging up SPECTRUM 9.0 CLI/SSlogger tools.\par
# Be sure you are using the correct packtool_cli.pl script.\par
\par
# This script is used to pack CLI/SSlogger for easy\par
# transfer via FTP to another system (same Operating System).\par
\par
# The bundle file is executable. To unpack the bundle,\par
# just execute the bundle file.\par
\par
# NOTE: On Solaris/Linux, you will need to run this as 'root' so files owned\par
# by root can be tarred up.\par
\par
# Instructions after extracting the cli_standalone_bundle, or\par
# cli_sslog_standalone_bundle file on a non-OneClick machine:\par
#\par
# 1. Be sure SPECROOT is defined to where you extracted the cli_bundle*.\par
# On Windows: Create System environment variable SPECROOT with value in\par
# variable format: driveletter:/PATH_TO_SPECTRUM\par
# On Solaris: Create /opt/SPECTRUM/spectrum60.env\par
# Add line: SPECROOT=PATH_TO_SPECTRUM\par
# On Linux: Create /opt/SPECTRUM/spectrum80.env\par
# Add line: SPECROOT=PATH_TO_SPECTRUM\par
# 2. On Windows: be sure $SPECROOT/lib is in the PATH variable\par
# On Solaris/Linux:\par
# Create directory /opt/SPECTRUM, and create a link from\par
# $SPECROOT/lib to /opt/SPECTRUM/lib.\par
# Create a link from $SPECROOT/bin to /opt/SPECTRUM/bin.\par
# 3. Be sure .hostrc has the local machine name and machine name of the\par
# SpectroSERVER in it.\par
# 4. Be sure .LocalRegFile has the correct Main Location Server in it.\par
# 5. Be sure vnmsh/.vnmshrc has the correct main SpectroSERVER name in it.\par
# 6. Install the processd service\par
# On Windows:\par
# If SRAdmin is not currently installed, you must first install by
doing:\par
# shell> cd %SPECROOT%\\Install-Tools\\sdic\\nt\par
# shell> .\\sradmin --install\par
# shell> .\\sradmin --start\par
# Processd install:\par
# shell> cd %SPECROOT%\\lib\\SDPM\par
# shell> .\\processd.exe --install --username USERNAME --password
PASSWORD\par
# shell> .\\processd.exe --start (if it doesn't start, reboot machine)\par
# On Solaris/Linux: create a /etc/init.d startup script to start
processd.\par
# The script should run $SPECROOT/lib/SDPM/processd.pl start.\par
# Create a link from /etc/init.d/processd to /etc/rc2.d/S99processd.\par
# 7. Make sure the .hostrc on the main location server contains the hostname\par
# of the machine the bundle is extracted on.\par
# 8. Will need to set CLISESSID in a shell to use CLI tools:\par
# Windows: set CLISESSID=NUMBER\par
# Solaris/Linux: export CLISESSID=NUMBER\par
# NUMBER is any unique number for the shell.\par
#\par
# Instructions after extracting the cli_bundle, or cli_sslog_bundle file on\par
# an OneClick machine:\par
#\par
# 1. Be sure .hostrc has the local machine name and machine name of the\par
# SpectroSERVER in it.\par
# 2. Make sure the .hostrc on the main location server contains the hostname\par
# of the machine the bundle is extracted on.\par
# 3. Be sure .LocalRegFile has the correct Main Location Server in it.\par
# 4. Will need to set CLISESSID in a shell to use CLI tools:\par
# Windows: "bash -login" should set this, otherwise set CLISESSID=NUMBER\par
# Solaris/Linux: export CLISESSID=NUMBER\par
# NUMBER is any unique number for the shell.\par
#\par
\par
use Cwd;\par
\par
sub usage\par
\{\par
print "\\nUsage: packtool_cli.pl [-standalone] [-sslog]\\n\\n";\par
print " default is to create a package for installing CLI on an OneClick
server.\\n\\n";\par
print " -standalone - to install on a machine without OneClick or
SpectroSERVER.\\n";\par
print " -sslog - include files to run sslogger on a machine without
SpectroSERVER.\\n\\n";\par
print " Default options will create cli_bundle in the current
directory.\\n";\par
print " -sslog will create cli_sslog_bundle in the current
directory.\\n";\par
print " -standalone will create cli_standalone_bundle in the current
directory.\\n";\par
print " -standalone -sslog will create cli_sslog_standalone_bundle in
the\\n current directory.\\n\\n";\par
exit ;\par
\}\par
\par
# Main program\par
\par
my $sslog = "no";\par
my $standalone = "no";\par
\par
for(my $i=0; $i < @ARGV; $i++ )\par
\{\par
$standalone = "yes" if ( $ARGV[$i] eq "-standalone" );\par
$sslog = "yes" if ( $ARGV[$i] eq "-sslog" );\par
&usage() if ( $ARGV[$i] eq "-h" || $ARGV[$i] eq "-help" );\par
\}\par
\par
my $tool_bundle = "cli_";\par
if ( $sslog eq "yes" )\par
\{\par
$tool_bundle .= "sslog_";\par
\}\par
\par
$exe = "";\par
\par
if ( $^O =~ /Windows/io || $^O =~ /cygwin/io )\par
\{\par
if( !$ENV\{'SPECROOT'\} )\par
\{\par
print STDERR "Error: Environment variable SPECROOT must be set.\\n"
;\par
exit 99;\par
\}\par
$specroot = $ENV\{'SPECROOT'\} ;\par
\par
$exe = ".exe";\par
\par
$cliOC = "lib/libIsol.dll lib/libPTTClient.dll lib/rwtoolvs2005.dll
lib/libSMail.dll lib/libSWcli.dll vnmsh/ack.exe vnmsh/connect.exe
vnmsh/create.exe vnmsh/current.exe vnmsh/destroy.exe vnmsh/disconnect.exe
vnmsh/jump.exe vnmsh/seek.exe vnmsh/setjump.exe vnmsh/show.exe
vnmsh/stopShd.exe vnmsh/update.exe vnmsh/VnmShd.exe vnmsh/.vnmshrc
lib/SDPM/partslist/VNMSHD.idb";\par
$ssloggerOC = "lib/cosnm_r*.dll lib/libddmc.dll lib/libgserv.dll
lib/libitc.dll lib/lmgr*.dll lib/libmoot.dll lib/orb_r*.dll lib/vdlog_r*.dll
lib/vport_r*.dll lib/libwkmgr.dll SSLOGGER/SSlogger.exe SSLOGGER/.ssloggerrc
SSLOGGER/SSLoggerConfig.exe";\par
$commonOC = ".LocalRegFile";\par
\par
$cliSTANDALONE = "lib/libIsol.dll lib/libPTTClient.dll lib/rwtoolvs2005.dll
lib/libSMail.dll lib/libSWcli.dll vnmsh/ack.exe vnmsh/connect.exe
vnmsh/create.exe vnmsh/current.exe vnmsh/destroy.exe vnmsh/disconnect.exe
vnmsh/jump.exe vnmsh/seek.exe vnmsh/setjump.exe vnmsh/show.exe
vnmsh/stopShd.exe vnmsh/update.exe vnmsh/VnmShd.exe vnmsh/.vnmshrc
lib/SDPM/partslist/VNMSHD.idb";\par
$ssloggerSTANDALONE = "lib/libcomm.dll lib/cosnm_r*.dll lib/libddmc.dll
lib/libgserv.dll lib/libitc.dll lib/lmgr*.dll lib/libmoot.dll lib/orb_r*.dll
lib/libssorbconvert.dll lib/libssorb.dll lib/libssorbutil.dll lib/vdlog_r*.dll
lib/vport_r*.dll lib/libwkmgr.dll SSLOGGER/SSlogger.exe
SSLOGGER/SSLoggerConfig.exe SSLOGGER/.ssloggerrc";\par
$commonSTANDALONE = ".hostrc .LocalRegFile lib/libcom.dll lib/libGlobl.dll
lib/libPort.dll lib/libPTTGlobal.dll lib/libSpectrumVersion.dll
lib/libVPapi.dll lib/libpcre.dll lib/SDPM/processd.exe
Install-Tools/sdic/nt/sradmin.exe";\par
\}\par
else\par
\{\par
if ( -f "/opt/SPECTRUM/spectrum80.env" )\par
\{\par
$specroot =\par
`grep SPECROOT /opt/SPECTRUM/spectrum80.env | awk -F= '\{ print
\\$2 \}'`;\par
\}\par
elsif ( -f "/opt/SPECTRUM/spectrum60.env" )\par
\{\par
$specroot =\par
`grep SPECROOT /opt/SPECTRUM/spectrum60.env | awk -F= '\{ print
\\$2 \}'`;\par
\}\par
else\par
\{\par
print STDERR "Error: unable to find environment file in
/opt/SPECTRUM\\n";\par
exit 99;\par
\}\par
chomp $specroot ;\par
\par
$cliOC = "lib/libSWcli.so.* vnmsh/.vnmshrc vnmsh/ack vnmsh/connect
vnmsh/create vnmsh/current vnmsh/destroy vnmsh/disconnect vnmsh/jump vnmsh/seek
vnmsh/setjump vnmsh/show vnmsh/stopShd vnmsh/update vnmsh/VnmShd
lib/SDPM/partslist/VNMSHD.idb";\par
$ssloggerOC = "lib/libcosnm_r.so.* lib/libddmc.so.* lib/libgserv.so.*
lib/libitc.so.* lib/liblmgr.so lib/libmoot.so.* lib/liborb_r.so.*
lib/libvdlog_r.so.* lib/libvport_r.so.* lib/libwkmgr.so.* SSLOGGER/SSlogger
SSLOGGER/.ssloggerrc SSLOGGER/SSLoggerConfig";\par
$commonOC = ".LocalRegFile";\par
\par
$cliSTANDALONE = "lib/libIsol.so.* lib/libPTTClient.so.* lib/librwtool.so
lib/libSMail.so.* lib/libSWcli.so.* vnmsh/ack vnmsh/connect vnmsh/create
vnmsh/current vnmsh/destroy vnmsh/disconnect vnmsh/jump vnmsh/seek
vnmsh/setjump vnmsh/show vnmsh/stopShd vnmsh/update vnmsh/VnmShd vnmsh/.vnmshrc
lib/SDPM/partslist/VNMSHD.idb";\par
$ssloggerSTANDALONE = "lib/libcomm.so.* lib/libcosnm_r.so.*
lib/libddmc.so.* lib/libgserv.so.* lib/libitc.so.* lib/liblmgr.so
lib/libmoot.so.* lib/liborb_r.so.* lib/libssorbconvert.so.* lib/libssorb.so.*
lib/libssorbutil.so.* lib/libvdlog_r.so.* lib/libvport_r.so.* lib/libwkmgr.so.*
SSLOGGER/SSlogger SSLOGGER/SSLoggerConfig SSLOGGER/.ssloggerrc";\par
$commonSTANDALONE = "bin/perl .hostrc .LocalRegFile lib/libcom.so.*
lib/libGlobl.so.* lib/libPort.so.* lib/libPTTGlobal.so.*
lib/libSpectrumVersion.so.* lib/libVPapi.so.* lib/libpcre.so.*
lib/SDPM/processd.pl lib/SDPM/processd";\par
\}\par
\par
$cur_dir = getcwd();\par
\par
chdir( $specroot ) ;\par
\par
if ( $standalone eq "yes" )\par
\{\par
system "Install-Tools/newtar -scvfB
$cur_dir/$\{tool_bundle\}standalone_bundle$\{exe\} $commonSTANDALONE
$cliSTANDALONE " . ($sslog eq "yes" ? "$ssloggerSTANDALONE" : "");\par
\}\par
else\par
\{\par
system "Install-Tools/newtar -scvfB $cur_dir/$\{tool_bundle\}bundle$\{exe\}
$commonOC $cliOC " . ($sslog eq "yes" ? "$ssloggerOC" : "");\par
\}\par
\par
exit ;\par
\par
\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\'00\par
}