run-command example for remote-api

Hi,

I’ve been using the commandline API and the remote-api with some success to automate some tasks, but I’m a little stuck on using run-command with the remote cgi api.
Can anybody give me a working example.

For example, doing this: https://server:port/server-manager/remote.cgi?program=run-command&host=knownhost&df

yields: sh: --df: command not found

Exit status: 0

C’mon, nobody?

Howdy,

Hmm, looking through the various API docs and the command line help, I don’t think I see anything that suggests there’s a run-program function at the moment.

I could certainly be missing it – but it’s quite possible there isn’t one.

If that’s something you need – you could always file a feature request.

-Eric