Yes, when I said "using Ambari", I was referring to the web interface. I apologize for not being more clear.
I'm not aware of a way to stop all services from the command line using as a single command. However, you can use the Ambari API to shutdown services individually. Unfortunately, you have to call the shutdown command for each service.