Go to main content

Using Puppet to Perform Configuration Management in Oracle® Solaris 11.4

Exit Print View

Updated: October 2019

Administering the MCollective Feature in Oracle Solaris

The following examples show how you can administer various aspects of the MCollective feature within your environment.

Example 9  Searching for Available MCollective Nodes

This example shows how you would search for available MCollective nodes. In this example, two MCollective nodes are detected.

# mco ping
mco-agent                                time=35.18 ms
mco-agent-test                           time=37.10 ms 

---- ping statistics ---- 2 replies max: 37.10 min: 35.18 avg: 36.14
Example 10  Checking Whether SMF Services Are Running on MCollective Nodes

The following example shows how you would determine the status of SMF services that are running on MCollective nodes.

# mco service status repositories-setup
* [ ============================================================> ] 2 / 2 
mco-agent: running mco-agent-test: running
Summary of Service Status:
running = 2 

Finished processing 2 / 2 hosts in 112.35 ms
Example 11  Checking the Status of IPS Packages on All of the Nodes in a Collective

You divide your site into collectives so that you can perform various configuration actions on all of the systems that are part of a collective.

The following example shows how you would check the status of the pkg:/system/core-os IPS package on all of the nodes that are running in a collective named mcollective.

# mco package status -T mcollective core-os
* [ ============================================================> ] 2 / 2 
mco-agent: system/core-os-5.12- mco-agent-test:
Summary of Arch: 
No aggregate summary could be computed 
Summary of Ensure: 
5.12- = 1 5.12- = 1 
Finished processing 2 / 2 hosts in 1194.85 ms