add a c-sample to get all services in sm