AW: Disposition-Notification-To: <Bernd.Stadler@zf.com>

From: <Bernd.Stadler_at_DOMAIN_REMOVED>
Date: Mon, 13 Mar 2006 16:13:53 +0100

Hello,

thanks for your quick answer, sorry but i already have a problem.
This is the additional line in nxagent.conf on Windows Client
 ExternalParameter = stopScript:c:\stopScript.exe

If the event take place (output on Serverlog)
[13-Mar-2006 16:05:47] DEBUG: *actions* Executing on "IP-Adress": "stopScript"
nothing going on.

If I test it with nxaction on the server the answer will be:
./nxaction IP-Adress stopScript
404: Unknown parameter
or
./nxaction IP-Adress "stopScript"
404: Unknown parameter

wbr
 Bernd

-----Ursprüngliche Nachricht-----
Von: Alex Kirhenshtein [mailto:alk_at_ctco.lv]
Gesendet: Montag, 13. März 2006 14:28
An: NetXMS Users
Betreff: Re: [netxms-users] Disposition-Notification-To: <Bernd.Stadler_at_zf.com>

Hello.

You have to define a new ExternalParameter in agent's config like this:

---
# no argumens will be passed to command
ExternalParameter = My.Param1.WithNoArgs:c:\myprog1.exe
# up to two parameters will passed to c:\myprog2.exe ExternalParameter = My.Param2(*):c:\myprog2.exe $1 $2
---
Then you can use it as ordinary agent commands, for example:
nxget 127.0.0.1 My.Param1.WithNoArgs
nxget 127.0.0.1 "My.Param1.WithNoArgs(arg1)"
nxget 127.0.0.1 "My.Param1.WithNoArgs(arg1, arg2)"
NB! you should check for count of params in your application, because My.Param2 will be executed even with argument passed -- $2 will be silently ignored.
wbr, alex.
Bernd.Stadler_at_zf.com wrote:
> Hi to all,
> 
> I got a problem to start a script on a client.
> At an event I want to start a Batch-Script at the windows Client (Win 
> XP, netXMS Agent 0.2.10) from a Linux Server (SLES 9 SP3, netXMS 
> 0.2.10, mysql 4.0.24). I can start the following actions:
> Agent.Restart
> System.Restart
> System.Shutdown
> 
> thanks for your help
> 
> cu
> 
> 
Received on Mon Mar 13 2006 - 17:13:53 EET

This archive was generated by hypermail 2.2.0 : Mon Mar 13 2006 - 17:18:42 EET