<commit_before>=========================
Remote execution tutorial
=========================

.. include:: requisite_incl.rst

Order your minions around
=========================

Now that you have a :term:`master` and at least one :term:`minion`
communicating with each other you can perform commands on the minion via the
:command:`salt` command. Salt calls are comprised of three main components::

    salt '<target>' <function> [arguments]

.. seealso:: :doc:`salt manpage </ref/cli/salt>`

target
------

The target component allows you to filter which minions should run the
following function. The default filter is a glob on the minion id. For example::

    salt '*' test.ping
    salt '*.example.org' test.ping

Targets can be based on minion system information using the Grains system::

    salt -G 'os:Ubuntu' test.ping

.. seealso:: :doc:`Grains system </topics/targeting/grains>`

Targets can be filtered by regular expression::

    salt -E 'virtmach[0-9]' test.ping

Finally, targets can be explicitly specified in a list::

    salt -L foo,bar,baz,quo test.ping<commit_msg>additional example for multiple target types.<commit_after>=========================
Remote execution tutorial
=========================

.. include:: requisite_incl.rst

Order your minions around
=========================

Now that you have a :term:`master` and at least one :term:`minion`
communicating with each other you can perform commands on the minion via the
:command:`salt` command. Salt calls are comprised of three main components::

    salt '<target>' <function> [arguments]

.. seealso:: :doc:`salt manpage </ref/cli/salt>`

target
------

The target component allows you to filter which minions should run the
following function. The default filter is a glob on the minion id. For example::

    salt '*' test.ping
    salt '*.example.org' test.ping

Targets can be based on minion system information using the Grains system::

    salt -G 'os:Ubuntu' test.ping

.. seealso:: :doc:`Grains system </topics/targeting/grains>`

Targets can be filtered by regular expression::

    salt -E 'virtmach[0-9]' test.ping

Targets can be explicitly specified in a list::

    salt -L 'foo,bar,baz,quo' test.ping

Or Multiple target types can be combined in one command::
    
    salt -C 'G@os:Ubuntu and webser* or E@database.*' test.ping

{'fraction_non_alphanumeric': 0.15654405474764757, 'fraction_numerical': 0.001710863986313088, 'mean_word_length': 4.197777777777778, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4916384', 'n_tokens_mistral': 687, 'n_tokens_neox': 624, 'n_words': 277}