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

3 thoughts on “Mcollective Facts examples

    • Cool, thanks for the suggestions. Btw, I’m trying to figure out how to get a list of hosts and their interfaces for example, but have some troubles figuring out how to do it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s