Mcollective Facts examples

mco facts lsbdistdescription

Report for fact: lsbdistdescription

CentOS Linux release 6.0 (Final) found 1 times
CentOS release 5.8 (Final) found 1 times
CentOS release 6.1 (Final) found 3 times
CentOS release 6.2 (Final) found 1 times
CentOS release 6.3 (Final) found 6 times
Debian GNU/Linux 6.0.6 (squeeze) found 6 times
Debian GNU/Linux 6.0.7 (squeeze) found 2 times

mco facts lsbdistdescription -v

Discovering hosts using the mc method for 2 second(s) …. 54
Report for fact: lsbdistdescription

CentOS Linux release 6.0 (Final) found 1 times

somehost.somedomain.com

CentOS release 5.8 (Final) found 1 times

anotherhost.somedomain.com

…..

mco facts fqdn -W lsbdistrelease=5.8        or      mco find -W lsbdistrelease=5.8 -v

Report for fact: fqdn

myoldcentosbox.com found 1 times

mco find -W lsbdistid=CentOS -v

somecentosbox.example.com

yetanothercentos.example.com

heresmydoscentos.example.com

Advertisements