NetXMS Support Forum

English Support => General Support => Topic started by: fINT on February 04, 2019, 01:31:25 PM

Title: How to run application on the computer via NetXMS agent?
Post by: fINT on February 04, 2019, 01:31:25 PM
Good day,
Via the server management console, you can reboot (shut down, etc., the node with the installed agent): TOOLS -> Restart System. How to run an OS application installed on a computer with a working NetXMS agent? For example (in the case of Windows) a batch file?
Title: Re: How to run application on the computer via NetXMS agent?
Post by: Victor Kirhenshtein on February 07, 2019, 11:05:32 AM
Hi,

you can add

Action = name:command

to nxagentd.conf and then execute this action either via server action from event processing policy or as object tool.

Best regards,
Victor
Title: Re: How to run application on the computer via NetXMS agent?
Post by: fINT on February 12, 2019, 07:11:13 PM
Thanks. I read here: https://www.netxms.org/forum/configuration/action-execute-command-via-remote-agent/  that Agent by default is running as windows service and can't interact with the GUI. How should I install agent to interact with the Node GUI? I need to run applications on Node, visible to users.
Title: Re: How to run application on the computer via NetXMS agent?
Post by: Victor Kirhenshtein on February 14, 2019, 10:23:57 PM
There are no standard way for doing that. If there is only one user session you can uninstall agent service and add nxagentd.exe to autorun so it will start within user session. Or you can use combined approach - leave agent as a service, run external subagent via autorun and define actions in this subagent.

Best regards,
Victor