Forum Discussion
Satoshi_Toyosa1
Jul 31, 2018Employee
I don't think tmsh has
disable
command (iControl REST is just a wrapper for tmsh), or am I missing something? delete
is a valid command but I don't think you can use it for sys service
.
root@(ltm1310)(cfg-sync Standalone)(Active)(/Common)(tmos) delete sys service ntpd
Syntax Error: "service" unexpected argument
See pp. 57-65 of iControl® REST API User Guide Version 13.1 for the list of
commands
you can use.
For other readers:
To stop the service
ntpd
(stop sys service ntpd
😞
curl -sku admin: https:///mgmt/tm/sys/service/ntpd \
-H "Content-type: application/json" -X POST \
-d '{"command":"stop"}'
To start the service
ntpd
(start sys service ntpd
😞
curl -sku admin: https:///mgmt/tm/sys/service/ntpd \
-H "Content-type: application/json" -X POST \
-d '{"command":"start"}'
To see the current status of
ntpd
(show sys service ntpd
😞
curl -sku admin: https:///mgmt/tm/sys/service/ntpd/stats