eos_command

Synopsis

Added in version 1.0.0

The eos_command module provides a module for sending arbitray commands to the EOS node and returns the ouput. Only priviledged mode (enable) commands can be sent.

Options

parameter required default choices comments
commands yes
    Specifies the list of commands to send to the node and execute in the configured mode. Mutliple commands can be sent to the node as a comma delimited set of values.
    (added in 1.0.0)
    encoding no json
    • json
    • text
    Specifies the requested encoding of the command output.
    (added in 1.2.0)

    Important

    Requires Arista EOS 4.13.7M or later with command API enabled

    Important

    Requires Python Client for eAPI 0.3.0 or later

    Examples


    - name: execute show version and show hostname
      eos_command: commands='show version, show hostname'
    

    Note

    This module does not support idempotent operations.

    Note

    Supports eos metaparameters for using the eAPI transport

    Note

    This module does not support stateful configuration