Skip to content
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

Can't pull configuration #53

Open
rfreddy opened this issue Aug 8, 2022 · 1 comment
Open

Can't pull configuration #53

rfreddy opened this issue Aug 8, 2022 · 1 comment

Comments

@rfreddy
Copy link

rfreddy commented Aug 8, 2022

Hi I'm trying to pull out the configuration from a N4032F running 6.3.1.13 but I've been unsuccessful. Can anyone here help me?

This is the playbook:

PLAY [dellos6] ***********************************************************************************************************************************


  • hosts: [dellos6]
    connection: network_cli
    collections:

    • dellemc.os6
      gather_facts: no

    tasks:

    • name: "Gather Dell EMC OS6 Device Conf"
      os6_config:
      backup: yes
      backup_options:
      dir_path: /home/rfreddy/ansible
      filename: "{{ inventory_hostname }}.conf"

And this is the output:

TASK [Gather Dell EMC OS6 Device Conf] ***********************************************************************************************************
fatal: [roc-ac20-sw1]: FAILED! => {"changed": false, "msg": "unable to retrieve current config", "stderr": "show running-config\r\n ^\r\n% Invalid input detected at '^' marker.\r\n\r\nroc-ac20-sw1>", "stderr_lines": ["show running-config", " ^", "% Invalid input detected at '^' marker.", "", "roc-ac20-sw1>"]}

PLAY RECAP ***************************************************************************************************************************************
roc-ac20-sw1 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

Thank you and have a great day,

Freddy

@ChristopherBorn
Copy link

looks like you might need to enter "enabled' mode, probably by using the "become" option. Might be easiest to set "ansible_become" to True in the inventory, and providing the password (use vault to hide it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants