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

From: Alex Kirhenshtein <alk_at_DOMAIN_REMOVED>
Date: Mon, 13 Mar 2006 15:27:57 +0200

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 - 15:27:57 EET

This archive was generated by hypermail 2.2.0 : Mon Mar 13 2006 - 15:32:25 EET