Forum Discussion
kman_52500
Nimbostratus
Jun 07, 2018How to disable services via iControlREST
Hello,
I'm trying to figure out how to disable a service via iControlREST. I am able to stop/start services, but not disable/remove.
Example:
curl -u USER -d '{"command": "disable", "...
Satoshi_Toyosa1
Jul 31, 2018Ret. Employee
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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
