/usr/bin/mco is in mcollective-client 2.6.0+dfsg-2.1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | #!/usr/bin/env ruby
# For security reasons, ensure that '.' is not on the load path
# This is primarily for 1.8.7 since 1.9.2+ doesn't put '.' on the load path
$LOAD_PATH.delete '.'
require 'mcollective'
Version = MCollective.version
known_applications = MCollective::Applications.list
# links from mc-ping to mc will result in ping being run
if $0 =~ /mc\-([a-zA-Z\-_\.]+)$/
  app_name = $1
else
  app_name = ARGV.first
  ARGV.delete_at(0)
end
if known_applications.include?(app_name)
  # make sure the various options classes shows the right help etc
  $0 = app_name
  MCollective::Applications.run(app_name)
else
  puts "The Marionette Collective version #{MCollective.version}"
  puts
  puts "usage: #{$0} command <options>"
  puts
  puts "Known commands:"
  puts
  known_applications.sort.uniq.in_groups_of(3) do |apps|
    puts "   %-20s %-20s %-20s" % [apps[0], apps[1], apps[2]]
  end
  puts
  puts "Type '#{$0} help' for a detailed list of commands and '#{$0} help command'"
  puts "to get detailed help for a command"
  puts
end
 |