Tuesday 10 February 2015

Basic mcollective commands

# mco ping
# mco find
Service
# mco rpc service status service=httpd
# mco rpc service stop service=httpd
# mco rpc service start service=httpd
Use the -I filter to target a specific machine, eg:
# mco rpc service status service=httpd -I node01.domain.net
RPC
# mco rpc rpcutil get_fact fact=operatingsystem