August 2014
Intermediate to advanced
284 pages
5h 24m
English
Show all configuration data about an MCollective server:
$ mco inventory hostname
Test connectivity to an MCollective server or list of them:
$ mco pinghostname$ mco ping --nodes/path/to/hostlist
Commands for testing host services (nettest agent):
$ mco nettest ping activemq.example.net $ mco nettest connect activemq.example.net 61613
Find hosts that match certain criteria:
$ mco find --with-identity /web/ $ mco find --with-classwebserver$ mco find --with-factoperatingsystem=CentOS$ mco find --with-agentpackage$ mco find --with "/nameserver/ operatingsystem=CentOS" $ mco find --select "operatingsystem=Ubuntuand /operatingsystemrelease=13.10/" $ mco find --select "(operatingsystem=CentOSand !environment=dev) andis_virtual=true"
Commands for controlling files (filemgr agent):
$ mco filemgr --file /tmp/junk touch $ mco filemgr --file /tmp/junk --detail status $ mco filemgr --file /tmp/junk remove
Commands for controlling packages (package agent):
$ mco package top status $ mco package -y top install $ mco package -y top update $ mco package -y top uninstall $ mco package -y top purge
Commands for controlling system services (service agent):
$ mco service ntpd status $ mco service ntpd restart $ mco service ntpd stop $ mco service ntpd start
Commands for controlling the Puppet agent:
$ mco puppet count $ mco puppet summary $ mco puppet disable --with-identityhostnamemessage="Know this..." $ mco puppet ...