#CLI passthrough to run 'system node run'?

1 messages · Page 1 of 1 (latest)

pine oracle
#

I am trying to run; 'node run node01 "priv set diag; ls /vol/vol01"' via api. But no matter how i try I am unable to get any output. Mostly I get 404 error not found url.
Is there a way to do this? I think if have privileage_level diagnostics I do not need to enter "priv set diag" and just the vol path. But I am having issues with just getting any output from system node run. for example 'system node run node1 vol status'.

Has someone been able to execute a nodeshell command successfully, via api?

mellow wigeon
#

404 error means you're calling a wrong API endpoint, it probably has nothing to do with the actual command you're sending

zealous hollow
#

REST API Documentation is very clear that this is not supported.

#

There are some commands in the CLI that will not work using REST APIs. This includes most show commands that do not support "show -fields" in the CLI. The REST API also does not support CLI commands that create a new shell (like "run" and "vserver context").

pine oracle
#

OK, thanks! I missed to read that.

unique isle
#

What's your goal? There may be an appropriate API.