News:

We really need your input in this questionnaire

Main Menu

NXSL Agent Commands

Started by richard21, April 11, 2025, 02:47:13 PM

Previous topic - Next topic

richard21

HI,

I currently use the AgentExecuteCommand function in a NXSL script to run an Agent command I notice that this is now deprecated what the new function?

Regards
Richard

Filipp Sudanov

Hi,

These are now executeAgentCommand and executeAgentCommandWithOutput methods of Node class
https://www.netxms.org/documentation/nxsl-latest/#_instance_methods_18

In overall we tend to migrate from functions to object methods - this make a cleaner code and we can also list methods available on an object - see an example here: https://www.netxms.org/documentation/nxsl-latest/#class-class

richard21

#2
Hi Filipp thanks for that I will look to migrate our scrips over

Cheers