RMA Installation

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Beside RmaInstaller, there are 3 more utilities in Utils\ subdirectory: appstatus, kill and powercheck.
These tools provide simple command line interface and there is short manual in MS Word format for each utility.
Yeah, probably we should mention these tools in "main" manual...

Regards
Alex
JuergenF
Posts: 331
Joined: Sun Jan 26, 2003 6:00 pm
Location: Germany, North Rhine-Westphalia

Post by JuergenF »

JuergenF wrote:
KS-Soft wrote:Yes, rmainstaller is Windows utility
Hi Alex,

this is such a great tool, but there is no hint to that in the manual (the new one was just released).
I found that tool by chance.

Just add a line to the "How to install RMA" section in the manual

regards

Juergen
There is a typo (Copy-and-Paste Error) in the latest RmaInstaller.doc (with HM 7.08 )
Please check all descriptions for "passive"

Code: Select all

Optional parameter "active" tells ...
This should be "passive" from my pov
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You are right. Thank you for corrections :)

Regards
Alex
toppy
Posts: 8
Joined: Wed Mar 05, 2008 2:48 am
Location: Israel

installing by script on a local system

Post by toppy »

Are there any command-line switches I can use with rma_cfg.exe?
I wand to install by script on my servers (Over 100 servers), My servers are spread over the Internet, and firewalled, so I can't use the rmainstaller.exe.
I have a system for distributing files and running commands on my servers, but I need to know how can I install the service, start it , and if there is an option also set the Comment of the RMA by script.

10X
Guy.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Sorry, rma_cfg.exe does not have any command-line switches. However, you do not need any. rma_cfg.exe is just used to create rma.ini file, that contains all the options (including Comment) and is utilized by rma.exe and rma_active.exe.

So, to install and start RMA as a service, you have to perform the following steps:
1. run rma_cfg.exe on local system to create rma.ini file
2. using your system for distributing files you should copy rma.exe, rma_active.exe, rma_installer.exe and rma.ini into particular folder on your remote servers (e.g. c:\rma)
3. on each server you should run script, that runs rma_installer.exe two times from local folder, e.g. :

Code: Select all

RmaInstaller -install  \\localhost  c:\rma\rma.exe  .\admin  pswd
RmaInstaller -start    \\localhost  passive
If you want to use active rma, you should change the seccond line to use "active" rma:

Code: Select all

RmaInstaller -install  \\localhost  c:\rma\rma_active.exe  .\admin  pswd
RmaInstaller -start    \\localhost  active
Regards,
Max
toppy
Posts: 8
Joined: Wed Mar 05, 2008 2:48 am
Location: Israel

Still have a problem

Post by toppy »

Hi Max,
in the mean while I wrote the script and after I saw your reply, it was the same as I did.
but there is a difference between installing with rma_installer and rma_cfg,
with the script I got this because the server is hardend:

Code: Select all

ִ‏‏‏ִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִ·
³ RMA service installer         ³  Version 1.10  ³  EMail: 
line1@ks-soft.net  ÷
³ Copyright by Alexander Kozlov ³ November, 2007 ³  Web:   www.ks-soft.net 
÷
װֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽ¼
 Process .. Error: Cannot open Service Control Manager The RPC server is unavailable.


ִ‏‏‏ִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִִ·
³ RMA service installer         ³  Version 1.10  ³  EMail: 
line1@ks-soft.net  ÷
³ Copyright by Alexander Kozlov ³ November, 2007 ³  Web:   www.ks-soft.net 
÷
װֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽֽ¼
 Starting RMAService .. Error: Cannot connect to the Service Control Manager. The RPC server is unavailable.
but by manually using the rma_cfg, and pressing the buttons it installed the service.
can you add command line switched to the rma_cfg? or maybe make a utility for the job.

BTW I created a script that generates the INI...

Code: Select all

Echo.[AgentInfo] > %RMAFolder%\rma.ini
Echo.Name=KS Remote Monitoring Agent >> %RMAFolder%\rma.ini
Echo.Platform=Windows (98 - 2003) >> %RMAFolder%\rma.ini
Echo.Version=3.44 >> %RMAFolder%\rma.ini
Echo.Developer=KS-Soft (www.ks-soft.net) >> %RMAFolder%\rma.ini
Echo. >> %RMAFolder%\rma.ini
Echo.[Basic] >> %RMAFolder%\rma.ini
Echo.Port=1055 >> %RMAFolder%\rma.ini
Echo.Timeout=10000 >> %RMAFolder%\rma.ini
Echo.Comment=%Hostname% >> %RMAFolder%\rma.ini
Echo.Data1=deleted password >> %RMAFolder%\rma.ini
Echo.Data2=deleted password >> %RMAFolder%\rma.ini
Echo. >> %RMAFolder%\rma.ini
Echo.[IncomeFilter] >> %RMAFolder%\rma.ini
Echo.FilterActive=1 >> %RMAFolder%\rma.ini
Echo.FilterList=127.0.0.1%%0D%%0AManagmentIP%%0D%%0A >> %RMAFolder%\rma.ini
Echo.FilterMarks=11 >> %RMAFolder%\rma.ini
Echo. >> %RMAFolder%\rma.ini
Echo.[Logging] >> %RMAFolder%\rma.ini
Echo.LogSuccess=0 >> %RMAFolder%\rma.ini
Echo.LogFails=0 >> %RMAFolder%\rma.ini
Echo.OkLogFile=log1.txt >> %RMAFolder%\rma.ini
Echo.BadLogFile=log2.txt >> %RMAFolder%\rma.ini
Echo. >> %RMAFolder%\rma.ini
Echo.[RemoteManagment] >> %RMAFolder%\rma.ini
Echo.AllowUpdates=1 >> %RMAFolder%\rma.ini
Echo.AllowManage=1 >> %RMAFolder%\rma.ini
Echo.UpdateAddr=Managment IP >> %RMAFolder%\rma.ini
Echo.ManageAddr=Managment IP >> %RMAFolder%\rma.ini
Echo. >> %RMAFolder%\rma.ini
Echo.[EnabledTests] >> %RMAFolder%\rma.ini
Echo.Ping=1 >> %RMAFolder%\rma.ini
Echo.TCP=1 >> %RMAFolder%\rma.ini
Echo.UDP=1 >> %RMAFolder%\rma.ini
Echo.UNC=1 >> %RMAFolder%\rma.ini
Echo.FreeSpace=1 >> %RMAFolder%\rma.ini
Echo.FolderSize=1 >> %RMAFolder%\rma.ini
Echo.CountFiles=1 >> %RMAFolder%\rma.ini
Echo.FileExists=1 >> %RMAFolder%\rma.ini
Echo.FileCRC=1 >> %RMAFolder%\rma.ini
Echo.CompareFiles=1 >> %RMAFolder%\rma.ini
Echo.Process=1 >> %RMAFolder%\rma.ini
Echo.Service=1 >> %RMAFolder%\rma.ini
Echo.EventLog=1 >> %RMAFolder%\rma.ini
Echo.CPUUsage=1 >> %RMAFolder%\rma.ini
Echo.PerfCounter=1 >> %RMAFolder%\rma.ini
Echo.Script=1 >> %RMAFolder%\rma.ini
Echo.External=1 >> %RMAFolder%\rma.ini
Echo.ODBC=1 >> %RMAFolder%\rma.ini
Echo.TextLog=1 >> %RMAFolder%\rma.ini
Echo.ShellScript=1 >> %RMAFolder%\rma.ini
Echo.SNMP=1 >> %RMAFolder%\rma.ini
Echo.Traffic=1 >> %RMAFolder%\rma.ini
Echo.NTP=1 >> %RMAFolder%\rma.ini
Echo.SMTP=1 >> %RMAFolder%\rma.ini
Echo.POP3=1 >> %RMAFolder%\rma.ini
Echo.IMAP=1 >> %RMAFolder%\rma.ini
Echo.DNS=1 >> %RMAFolder%\rma.ini
Echo.LDAP=1 >> %RMAFolder%\rma.ini
Echo.RADIUS=1 >> %RMAFolder%\rma.ini
Echo.HTTP=1 >> %RMAFolder%\rma.ini
Echo.URL=1 >> %RMAFolder%\rma.ini
Echo.Sybase=1 >> %RMAFolder%\rma.ini
Echo.Interbase=1 >> %RMAFolder%\rma.ini
Echo.Oracle=1 >> %RMAFolder%\rma.ini
Echo.MSSQL=1 >> %RMAFolder%\rma.ini
Echo.MySQL=1 >> %RMAFolder%\rma.ini
Echo.Postgre=1 >> %RMAFolder%\rma.ini
Echo.Trace=1 >> %RMAFolder%\rma.ini
Echo.TempMon=1 >> %RMAFolder%\rma.ini
Echo.WMI=1 >> %RMAFolder%\rma.ini
Echo.DICOM=1 >> %RMAFolder%\rma.ini
Echo.[EnabledActions] >> %RMAFolder%\rma.ini
Echo.ExternalCmd=0 >> %RMAFolder%\rma.ini
Echo.StopService=0 >> %RMAFolder%\rma.ini
Echo.StartService=0 >> %RMAFolder%\rma.ini
Echo.RestartService=1 >> %RMAFolder%\rma.ini
Echo.Reboot=0 >> %RMAFolder%\rma.ini
Echo.RemoteReboot=0 >> %RMAFolder%\rma.ini
Echo.LogEvent=1 >> %RMAFolder%\rma.ini
Echo.SQLQuery=0 >> %RMAFolder%\rma.ini
Echo.TCPSend=0 >> %RMAFolder%\rma.ini
Echo.Syslog=0 >> %RMAFolder%\rma.ini
Echo.SNMPSet=0 >> %RMAFolder%\rma.ini
Echo.SNMPTrap=0 >> %RMAFolder%\rma.ini
Echo.HTTPSend=1 >> %RMAFolder%\rma.ini
Echo.[Misc] >> %RMAFolder%\rma.ini
Echo.PerfWorkMode=1 >> %RMAFolder%\rma.ini
Echo.CheckInternetConnection=0 >> %RMAFolder%\rma.ini
Echo.[Proxy] >> %RMAFolder%\rma.ini
Echo.AccessMethod=0 >> %RMAFolder%\rma.ini
Echo.ProxyServer= >> %RMAFolder%\rma.ini
Echo.ProxyPort=1080 >> %RMAFolder%\rma.ini
Echo.ProxyAut=0 >> %RMAFolder%\rma.ini
Echo.ProxyUser= >> %RMAFolder%\rma.ini
Echo.ProxyPswd= >> %RMAFolder%\rma.ini
Echo.ProxyParam2= >> %RMAFolder%\rma.ini
Echo. >> %RMAFolder%\rma.ini
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Re: Still have a problem

Post by KS-Soft Europe »

toppy wrote:but by manually using the rma_cfg, and pressing the buttons it installed the service.
can you add command line switched to the rma_cfg? or maybe make a utility for the job.
Hm. If you run the script on the remote server locally, I would suggest you to use standard windows "sc" command to create, start and stop service.
Please, read the following article for details:
http://support.microsoft.com/kb/251192

Regards,
Max
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

If you can use rma_cfg to intall service, you should be able to do the same job using rma_installer utility.
May be you have used different account without necessary rights?
How exactly have you specified target system name? Like \\127.0.0.1 (because rma should be installed on the same system whre utility is started)?

Regards
Alex
Post Reply