Agent Actions and quotes

Started by Tursiops, September 05, 2017, 12:55:26 AM

Previous topic - Next topic

Tursiops

Hi,

Do " get stripped out of parameters when calling an Action via Object Tools? I am trying to run a netsh command which requires me to place the interface name in quotes, but the command is not working and the command is logged without quotes in the agent log (debug level 7). The command also seems to be cut short, (presumably related to the quotes).

I have an action that triggers the following:
cmd /c $1
and I am passing
netsh interface ipv4 show subinterface interface="Ethernet 2"
The log then tells me it is executing this:
cmd /c netsh interface ipv4 show subinterface interface=Ethernet

And the result is that the command of course doesn't work as expected.

Thanks