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.
Execute external program by Remote agent
Execute external program by Remote agent
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)
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)
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Re: Execute external program by Remote agent
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.:jdelrio wrote:The process had to execute a bat that writes a file in the same directory where the .bat is located.
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
Max
Execute external program by Remote agent
Thanks Max.
This resolved my problem
This resolved my problem