Arbitrary commands execution

Started by wuwei, January 21, 2021, 11:09:25 PM

Previous topic - Next topic

wuwei

How can I execute commands on remote nodes via agent after setting EnableArbitraryCommandExecution=yes ?

Zebble

Good question.  Didn't realize this existed, and I see no other reference to it other than the nxagent sourcecode.  Might not be fully implemented?

wuwei

Don't know if it is fully implemented but it is referenced in the appendix:
https://www.netxms.org/documentation/adminguide/appendix.html?highlight=enablearbitrarycommandexecution

I like netxms but the probem is the lack of documentation.
I've tried to have it working but it gives me a generic error of "Communication failure".

I ended up with a simple workaround: added an agent policy with a generic action and defined an agent command that executes the action with a parameter.

Now I can run arbitrary command on windows client without problems.


Filipp Sudanov

It's not fully implemented. It adds System.Execute action (and also System.ExecuteInAllSessions on Windows), but System.Execute does nothing.
Updated docs.