How can I use mcollective with fqdns?

70 views
Skip to first unread message

el...@lnmpy.com

unread,
Jul 16, 2014, 2:11:59 AM7/16/14
to puppet...@googlegroups.com
when using puppet kick, i can specify more than one fqdns behind,
just like:


but when I want to use mco puppetd runonce 
I can only use like
mco puppetd runonce -I client1.datayes.com

else if I use

mco puppetd runonce -I client1.datayes.com -I client2.datayes.com
it will not find the correct machines

how can I use mco?

el...@lnmpy.com

unread,
Jul 16, 2014, 2:37:48 AM7/16/14
to puppet...@googlegroups.com
I found the desc in the docs,

# just the machines called dev1 or dev2 % mco ping -I dev1 -I dev2

It shows that I can connect two different nodes, but it does not work on my mcollective

root@puppet-master:~# mco ping -I 728a6343-62ba-4d15-8a48-8d4257fe59f8 
728a6343-62ba-4d15-8a48-8d4257fe59f8     time=43.68 ms


root@puppet-master:~# mco ping -I 5effb293-fe15-4923-b360-4694e05a7afc
5effb293-fe15-4923-b360-4694e05a7afc     time=41.86 ms

root@puppet-master:~# mco ping -I 5effb293-fe15-4923-b360-4694e05a7afc -I 728a6343-62ba-4d15-8a48-8d4257fe59f8






在 2014年7月16日星期三UTC+8下午2时11分59秒,el...@lnmpy.com写道:

Christopher Wood

unread,
Jul 16, 2014, 10:32:57 AM7/16/14
to puppet...@googlegroups.com
Perhaps use a regex, depending on your naming?

mco ping -F 'hostname=/dev[12]/

Or a compound filter.

mco ping -S 'hostname=dev1 or hostname=dev2'

If you're using something other than ping you might feed it a list of nodes via --nodes, but I'm not getting any responses via the node list right now. I'll dig more into it later.

There's mcollect...@googlegroups.com who will probably be more helpful than I am.
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [1]puppet-users...@googlegroups.com.
> To view this discussion on the web visit
> [2]https://groups.google.com/d/msgid/puppet-users/0323dcba-a74e-4aa5-9131-00d26249bed5%40googlegroups.com.
> For more options, visit [3]https://groups.google.com/d/optout.
>
> References
>
> Visible links
> 1. mailto:puppet-users...@googlegroups.com
> 2. https://groups.google.com/d/msgid/puppet-users/0323dcba-a74e-4aa5-9131-00d26249bed5%40googlegroups.com?utm_medium=email&utm_source=footer
> 3. https://groups.google.com/d/optout
Reply all
Reply to author
Forward
0 new messages