NetXMS Support Forum

Please login or register.

Login with username, password and session length

Author Topic: How to run application on the computer via NetXMS agent?  (Read 215 times)

fINT

  • Newbie
  • *
  • Posts: 9
    • View Profile
How to run application on the computer via NetXMS agent?
« 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?
Logged

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 6451
    • View Profile
Re: How to run application on the computer via NetXMS agent?
« Reply #1 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
Logged

fINT

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: How to run application on the computer via NetXMS agent?
« Reply #2 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.
Logged

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 6451
    • View Profile
Re: How to run application on the computer via NetXMS agent?
« Reply #3 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
Logged