Execute external program by Remote agent

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).
Post Reply
jdelrio
Posts: 13
Joined: Sun Oct 02, 2005 5:21 pm
Contact:

Execute external program by Remote agent

Post by jdelrio »

Hi,

I'm trying to execute a bat file in another host different from HostMonitor host.

I have an action profile who execute the bat. When I select Hostmonitor as "Execute by" its works fine.
When I select a remote agent and execute it, in the system log appear the msg "02/05/08 11:09:22 Action "Execute external program" executed by RMA "Pxw003" but nothing happen in pxw003.

Hostmonitor version 7.20
RMA version 3.68
The agent in pxw003 has enabled to execute external pograms

Can anybody say me what I doing wrong.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

but nothing happen in pxw003
What exactly should happen? RMA starts specified application in "invisible" mode, you will not see any window on screen.

Regards
Alex
jdelrio
Posts: 13
Joined: Sun Oct 02, 2005 5:21 pm
Contact:

Execute external program by Remote agent

Post by jdelrio »

Alex:
The process had to execute a bat that writes a file in the same directory where the .bat is located.
I don´t need to see the execution, I need that the bat generate the file (I give Full control access to this directoy for all users)
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Re: Execute external program by Remote agent

Post by KS-Soft Europe »

jdelrio wrote:The process had to execute a bat that writes a file in the same directory where the .bat is located.
I would suggest you to use FullPath to files within this .bat file. Also I recommend you to trace output, to figure out what is wrong. For instance, you may "echo" some information into log file after each line in .bat file, e.g.:

Code: Select all

@echo off
echo Script started > C:\temp\some_log.txt
...
your code here
...
echo Some command executed >> C:\temp\some_log.txt
...
your code here
...
echo Script finished >> C:\temp\some_log.txt
Regards,
Max
jdelrio
Posts: 13
Joined: Sun Oct 02, 2005 5:21 pm
Contact:

Execute external program by Remote agent

Post by jdelrio »

Thanks Max.

This resolved my problem
Post Reply