KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Execute external program by Remote agent

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
jdelrio



Joined: 02 Oct 2005
Posts: 13

PostPosted: Fri May 02, 2008 9:11 am    Post subject: Execute external program by Remote agent Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Fri May 02, 2008 9:22 am    Post subject: Reply with quote

Quote:
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
Back to top
View user's profile Send private message Visit poster's website
jdelrio



Joined: 02 Oct 2005
Posts: 13

PostPosted: Fri May 02, 2008 12:56 pm    Post subject: Execute external program by Remote agent Reply with quote

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)
Back to top
View user's profile Send private message Visit poster's website
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Fri May 02, 2008 1:26 pm    Post subject: Re: Execute external program by Remote agent Reply with quote

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:
@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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jdelrio



Joined: 02 Oct 2005
Posts: 13

PostPosted: Fri May 02, 2008 5:16 pm    Post subject: Execute external program by Remote agent Reply with quote

Thanks Max.

This resolved my problem
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index