Ansible Network Modules | ios_conifg, nxos_config, cli_command

Поділитися
Вставка
  • Опубліковано 4 лют 2025

КОМЕНТАРІ • 34

  • @rpratt7990
    @rpratt7990 3 роки тому

    Hi Roger, great content. I have a dumb question, how do you figure it out to install ubuntu and still run EVE-NG over VM in windows ?. I tried it a couple of times but in my tries, I usually lose the use of VM to run EVE-NG

  • @SadhamHussainsree
    @SadhamHussainsree 3 роки тому

    Fantastic

  • @richardlazaro6969
    @richardlazaro6969 3 роки тому

    Hi Roger , maybe you can help me design a playbook in ansible. Design policy (1) .Issue CLI commands to the ACI device and save the output to a log. The commands to be acquired form 4 groups so that the group of commands can be divided into groups. -Commands you want to retrieve are listed in a text file for each group. - The log creates a folder of playbook execution timing and store it in a file by command. - A playbook collects multiple parts and aggregates them into one playbook by Role.

  • @ashusworld8960
    @ashusworld8960 4 роки тому

    Hello Roger, Am working on Nexus compliance and I could successfully get the compliance report for AAA, Tacacs, username, ACL's, NTP from the existing N3k, N5k, N7k and N9k devices. But i couldn't write a playbook to fetch the trunk Interfaces (eth/po) configured with syntax 'spanning-tree port type edge trunk' from the existing configuration. Please suggest

    • @RogerPerkin
      @RogerPerkin  4 роки тому

      You will probably have to use a bit of Regex to pull the config and then fish out what you are looking for. Take a loot at this NTP example - the concept is the same ua-cam.com/video/UGrCBBljkKg/v-deo.html
      Assume you want to find all interfaces that are configured like this - or not configured like this?

  • @subhasreeachyuta1461
    @subhasreeachyuta1461 4 роки тому

    Hello Roger, thanks for the video.
    But i got stuck with banner.
    When user login to connect to device post entering id, banner will come post that it's getting stukked and throwing an error. Could you please suggest me on this.

    • @RogerPerkin
      @RogerPerkin  4 роки тому

      Take a look at the IOS Banner module docs.ansible.com/ansible/latest/modules/ios_banner_module.html

  • @victormelo1141
    @victormelo1141 4 роки тому

    Hello Roger..
    Thank you for your time to creating this video
    I have been following this video..but you forgot to explain how to configure the visual studio code to work with ansible..
    Most of us come from network backgrounds..and visual studio is part of DevOps..Not networking..
    Can you please explain that part, please?

    • @RogerPerkin
      @RogerPerkin  4 роки тому

      There is not much to explain? VSC is just a code editor, like a fancy notepad. I just use it to edit the code and then run it from the terminal. Let me know if you want it explained more, but tbh there is nothing else to it

  • @chrisnavarro5122
    @chrisnavarro5122 3 роки тому

    Hi Roger, how about Junos devices ?

    • @RogerPerkin
      @RogerPerkin  3 роки тому

      For other vendors you just need to find that vendors modules, most have them. An understanding of how to configure those devices is required before you start to automate them

  • @D35TR00
    @D35TR00 5 років тому

    Gr8 video. Is there a way to have ansible save those nx-os configs somewhere else like gitlab or github?

    • @RogerPerkin
      @RogerPerkin  5 років тому +1

      Ansible saves the configs to a local folder and then you can decide how you archive them? Pushing them to gitlab would be a good video - I will add it to the list. Setting up Gitlab for an on site repository for configs

    • @D35TR00
      @D35TR00 5 років тому +1

      @@RogerPerkin Awesome!! I will keep an eye out for the video. I have my notifications enabled for this channel.

  • @sathisha4456
    @sathisha4456 5 років тому

    Hi Roger , Ansible is working on cisco switches?
    because your all videos is covered only cisco Routers.

    • @RogerPerkin
      @RogerPerkin  5 років тому

      Yes, Ansible will work just the same for cisco switches

    • @sathisha4456
      @sathisha4456 5 років тому

      ​@@RogerPerkin Thankyou !.

  • @shibasishbanerjee6036
    @shibasishbanerjee6036 5 років тому

    Hi Roger - It is a great video. Looking for an Eve-NG configuration video for Various Cisco and other Vendor devices

    • @RogerPerkin
      @RogerPerkin  5 років тому +1

      Are you looking for video on how to setup devices in Eve-NG?

    • @shibasishbanerjee6036
      @shibasishbanerjee6036 5 років тому

      @@RogerPerkin I am looking for video to deploy various Cisco and Other device in EVE-NG

  • @sathisha4456
    @sathisha4456 5 років тому

    Hi Roger , we have using cisco switch on telnet port. how to communicate ansible playbook with telnet port on switch.? Because Ansible playbook has running on SSH port default. I have tried to run on ansible playbook on telnet switch , but error message has displayed on "Un-reachable on your switches....". How to solve this issue?
    Thanks !..

    • @RogerPerkin
      @RogerPerkin  5 років тому

      You cannot connect to a switch using Telnet with Ansible. If you are locked in and cannot change your switches to SSH then you need to be looking at a pure Python script

    • @sathisha4456
      @sathisha4456 5 років тому

      @@RogerPerkin Thank you! for your reply. So, If Ansible playbook run on Cisco device , should be switch connect to the SSH port.
      This is Correct?

    • @RogerPerkin
      @RogerPerkin  5 років тому

      @@sathisha4456 Yes, you should be running SSH to connect to your switches and this is how Ansible connects also.

    • @sathisha4456
      @sathisha4456 5 років тому

      @@RogerPerkin Thank you !. for your reply. my another question. why used to pure Python script? and how to used python script as soon as could not be change my switches to SSH?

    • @RogerPerkin
      @RogerPerkin  5 років тому

      @@sathisha4456 Just subscribe to my channel on turn on notifications as I will be uploading some videos on using Python very soon

  • @vishalkanojia1983
    @vishalkanojia1983 5 років тому

    HI ROGER, NYC WORK, CAN U PUT THIS SCRIPTS ON GITHUB FOR REFERENCE?

    • @RogerPerkin
      @RogerPerkin  4 роки тому +1

      Thanks Vishal, everything I've got is here - github.com/rogerperkin/network-programmability

  • @Joey-vw3ei
    @Joey-vw3ei 3 роки тому

    Hello Mr Perkin, i use Ansible Tower and i have use the script. I cann save the config files from Cisco Switches theres no Problem, now i have a Problem by Nexus Router to save the config Files. fatal: [10.x.x.x]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/libexec/platform-python"}, "changed": false, "msg": "unable to elevate privilege to enable mode, at prompt [b'\\xxxx-xxxxxxxx# '] with error: failed to elevate privilege to enable mode still at prompt [b'\\xxx-xxxxxxx# ']"} when i start the console to connect to the Nexus i come in and the Nexus is in enable mode, i don´t need a comand ena. I hope you can help me by this Problem. Greeting Joe

  • @veereshsanadi9802
    @veereshsanadi9802 5 років тому

    If all switches having Privileged Mode (enable) password. How to write playbook?

    • @ankitkulshresta
      @ankitkulshresta 5 років тому

      so your userid should have "privileged mode 15" so it will not ask for enable password.

  • @hema-val
    @hema-val 5 років тому

    Out of date playbook. With current Ansible version this playbook wouldn't work.

    • @RogerPerkin
      @RogerPerkin  5 років тому +1

      Can you expand on your statement? Why would the playbook not work? This is running on Ansible 2.8.5

    • @arifpatel6516
      @arifpatel6516 5 років тому

      Roger Perkin - Hi Roger, I am your Big fan after I found your channel on UA-cam . Your great efforts and absolutely generously giving your valued training materials help to Network Engineers all over the world.... I was searching for Ansible training on global internet..... Since I found your video course my search has finally end..... Greatly Greatly appreciated your valued time and help to the world....