mcollective mco facts命令空白结果输出

时间:2014-02-14 19:37:55

标签: puppet facter

我已经使用activemq安装了mcollective但是当我运行以下命令时它运行成功但结果为空,我想查看报告输出。

[root@vsoslp01 tmp]# mco find
vsopspss01
vsopsmgs01


[root@vsoslp01 tmp]# mco facts architecture
Report for fact: architecture


Finished processing 2 / 2 hosts in 293.91 ms

已安装的插件

[root@vsoslp01 tmp]# mco plugin doc
Please specify a plugin. Available plugins are:

Agents:
  puppet                    Run Puppet agent, get its status, and enable/disable it
  rpcutil                   General helpful actions that expose stats and internals to SimpleRPC clients

Aggregate:
  average                   Displays the average of a set of numeric values
  boolean_summary           Aggregate function that will transform true/false values into predefined strings.
  sum                       Determine the total added value of a set of values
  summary                   Displays the summary of a set of results

Data Queries:
  agent                     Meta data about installed MColletive Agents
  fstat                     Retrieve file stat data for a given file
  puppet                    Information about Puppet agent state
  resource                  Information about Puppet managed resources

Discovery Methods:
  flatfile                  Flatfile based discovery for node identities
  mc                        MCollective Broadcast based discovery
  stdin                     STDIN based discovery for node identities

Validator Plugins:
  array                     Validates that a value is included in a list
  ipv4address               Validates that a value is an ipv4 address
  ipv6address               Validates that a value is an ipv6 address
  length                    Validates that the length of a string is less or equal to a specified value
  puppet_resource           Validates the validity of a Puppet resource type and name
  puppet_server_address     Validates that a string is a valid Puppet Server and Port for the Puppet agent
  puppet_tags               Validates that a comma seperated list of tags are valid Puppet class names
  puppet_variable           Validates that a variable name is a valid Puppet name
  regex                     Validates that a string matches a supplied regular expression
  shellsafe                 Validates that a string is shellsafe
  typecheck                 Validates that a value is of a certain type

编辑:

[root@vsoslp01 logs]# mco inventory vsopspss01
Inventory for vsopspss01:

   Server Statistics:
                      Version: 2.4.1
                   Start Time: Tue Feb 18 13:40:58 -0500 2014
                  Config File: /etc/mcollective/server.cfg
                  Collectives: mcollective
              Main Collective: mcollective
                   Process ID: 7694
               Total Messages: 14
      Messages Passed Filters: 14
            Messages Filtered: 0
             Expired Messages: 0
                 Replies Sent: 13
         Total Processor Time: 0.32 seconds
                  System Time: 0.09 seconds

   Agents:
      discovery       puppet          rpcutil

   Data Plugins:
      agent           fstat           puppet
      resource

   Configuration Management Classes:
      No classes applied

   Facts:
      mcollective => 1

2 个答案:

答案 0 :(得分:2)

您是否填充了事实档案? MCollective读取一个包含所有事实的yaml文件。如果它是空的那么它将不会看到任何事实。

Populating the facts file

答案 1 :(得分:0)

您是否使用puppet-apply命令应用了Puppet清单?查询这些系统上的库存是否会返回任何内容?

$ mco inventory vsopspss01