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

From: Victor Kirhenshtein <victor_at_DOMAIN_REMOVED>
Date: Mon, 13 Mar 2006 18:27:52 +0200

Hello!

This time my brother gives a wrong answer :)

On Windows, the following actions are built-in:

Agent.Restart
System.Shutdown
System.Restart

If you need other actions, they are defined as described by Alex, but under Action parameter, like this:

Action = Test:notepad.exe

This line defines action Test, which will execute notepad.exe. To check what actions are provided by an agent, run command

nxget -l IP-ADDRESS Agent.ActionList

on your management server. If your action isn't there, check your configuration file syntax.

Also, note that your management server should be listed in MasterServers or ControlServers parameter to be able to execute actions on agent.

Best regards,
Victor

> -----Original Message-----
> From: Bernd.Stadler_at_zf.com [mailto:Bernd.Stadler_at_zf.com]
> Sent: Monday, March 13, 2006 5:14 PM
> To: NetXMS Users
> Subject: Re: [netxms-users] Disposition-Notification-To:
> <Bernd.Stadler_at_zf.com>
>
>
>
> 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 - 18:27:52 EET

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