New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added timestamps to iosxr_command module #50095

Open
wants to merge 1 commit into
base: devel
from

Conversation

Projects
None yet
2 participants
@vaneuk
Copy link
Contributor

vaneuk commented Dec 18, 2018

iosxr_command module now returns timestamps field, which shows command execution time

SUMMARY

Added information about time when command was issued on remote device.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

iosxr_command

ADDITIONAL INFORMATION

example playbook

- name: collect show commands from devices
  hosts: test_group
  connection: network_cli

  tasks:

    - name: collect show commands
      iosxr_command:
        commands:
          - "show clock"
          - "show run vrf mgmt"
      register: output

    - name: debug task
      debug:
        var: output

before

ok: [R01] => {
    "output": {
        "changed": false, 
        "failed": false, 
        "stdout": [
            "16:23:19.904 MSK Fri Jun 29 2018", 
            "vrf mgmt\n!"
        ], 
        "stdout_lines": [
            [
                "16:23:19.904 MSK Fri Jun 29 2018"
            ], 
            [
                "vrf mgmt", 
                "!"
            ]
        ]
    }
}

after

ok: [R01] => {
    "output": {
        "changed": false, 
        "failed": false, 
        "stdout": [
            "16:24:58.318 MSK Fri Jun 29 2018", 
            "vrf mgmt\n!"
        ], 
        "stdout_lines": [
            [
                "16:24:58.318 MSK Fri Jun 29 2018"
            ], 
            [
                "vrf mgmt", 
                "!"
            ]
        ], 
        "timestamps": [
            "2018-06-29T16:24:58", 
            "2018-06-29T16:24:58"
        ]
    }
}
@ansibot

This comment has been minimized.

@ansibot

This comment has been minimized.

Copy link
Contributor

ansibot commented Dec 18, 2018

@vaneuk, just so you are aware we have a dedicated Working Group for network.
You can find other people interested in this in #ansible-network on Freenode IRC
For more information about communities, meetings and agendas see https://github.com/ansible/community

click here for bot help

@vaneuk vaneuk changed the title added response_timestamps to iosxr_command module added timestamps to iosxr_command module Dec 19, 2018

@vaneuk vaneuk force-pushed the vaneuk:ios-xr_timestamps branch from b5431e5 to 4b32553 Dec 21, 2018

@vaneuk vaneuk force-pushed the vaneuk:ios-xr_timestamps branch from 1c92aca to 56de586 Dec 22, 2018

@ansibot ansibot added needs_revision and removed core_review labels Dec 22, 2018

@vaneuk vaneuk closed this Dec 24, 2018

@vaneuk vaneuk reopened this Dec 24, 2018

@vaneuk vaneuk closed this Dec 27, 2018

@vaneuk vaneuk reopened this Dec 27, 2018

@ansibot ansibot added the stale_ci label Jan 6, 2019

@ansibot ansibot added core_review and removed needs_revision labels Jan 14, 2019

@vaneuk vaneuk force-pushed the vaneuk:ios-xr_timestamps branch from c1efbb8 to 6c6da5f Jan 18, 2019

@vaneuk vaneuk force-pushed the vaneuk:ios-xr_timestamps branch from 6c6da5f to a5da4ae Jan 18, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment