Forum Discussion
Eric_Flores_131
Feb 03, 2017Cirrostratus
Here is an example of bash over REST -
$ curl -sk -u 'admin:admin' -H 'Content-Type: application/json' -X POST \
-d '{"command": "run", "utilCmdArgs": "-c \"date -u\""}' \
https://$HOST/mgmt/tm/util/bash | jq .
{
"kind": "tm:util:bash:runstate",
"command": "run",
"utilCmdArgs": "-c \"date -u\"",
"commandResult": "Fri Feb 3 01:11:56 UTC 2017\n"
}