/r/networkautomation

Photograph via snooOG

A community for sharing knowledge and engaging with a growing community of network automation specialists.

/r/networkautomation

6,880 Subscribers

3

common task(-s) to automate ?

Hi folks,

I want to ask, what are the most typical task that you automate in your company ? or you wish it's automated ?

I did some automation and it's usually:

- configure interface/subinterface

- configure subnet

- get IP-address/mac-address from device

I'm curios, what are the tasks that you usually automate? or what things are not explained well on the internet from Python ?

0 Comments
2024/10/31
20:19 UTC

5

When to start diving into network automation?

I've started learning Python from the ground up, and want some advice on when to start diving into more network automaton focused learning.

I'm around half way into Python crash course, and am itching to start playing with some of the networking library's, and netmiko. For now this is simply for my own learning, as I have a few ideas on small tools to build for myself to help me with my day job. I'm currently working on ENARSI, but later would like to try to down the devnet path, or at least the associate.

Is this book (or at least the 1st half) enough of a foundation from which I can start applying it to network stuff? Basically I wanted to ensure I have a decent grounding in the basics before I go down the network automation path.

4 Comments
2024/10/30
21:05 UTC

3

Ansible RegEx Search Filter Tutorial: How to Parse Configuration | Creat...

0 Comments
2024/10/26
14:19 UTC

27

Learning network automation

Hey guys recently had an interview with meta interviewer, it didn’t go as expected . I have 3 years of network engineer experience but I lack in network automation . Can anyone help me where to start from scratch

25 Comments
2024/10/25
18:56 UTC

1

Get OLTs Alarm ID using python

Hello everyone, I'm currently working on setting up an environment for alarm monitoring from several OLTs using the TL1 protocol. However, I’ve noticed that not all alarm IDs are available in TL1. Does anyone have alternative suggestions for creating a monitoring environment for this purpose? Thank you!

4 Comments
2024/10/25
06:34 UTC

6

Ansible Can’t SSH into Cisco SMB Devices - Need Help!

Hey everyone,

I’ve been wrestling with an issue that’s been bugging me for a while, and I haven’t been able to resolve it yet. Whenever I try to SSH into a Cisco CBS or SG 300 switch without the ip ssh password-auth command, Ansible fails to establish an SSH connection. I even tried using Paramiko for SSH, but no luck there either.

I also wrote a Python script using Pexpect to inject that command, but running the script with both Pexpect and the threading module led to an unintended management plane lockout — which was a headache!

Has anyone encountered a similar problem or found a workaround? Any advice would be much appreciated!

10 Comments
2024/10/12
03:42 UTC

12

Some resources for learning network automation

I’m a network engineer trying get into network automation. I have knowledge using push JSOn/XML files to SDNs. I also knowledge of creating some python scripts to generate config files. But I need some automation resources to learn Ansible and python. Also some example work cases that I can utilize automation for.

8 Comments
2024/10/07
02:28 UTC

20

Network automation book?

Hello, I have a CCNA and work a networking job at the moment, so I believe I have a good foundation in networking but wanted to look into network automation. I do not have time at the moment to go after a certification but was wondering if anyone could recommend a book to get a good overview of the different aspects of network automation. I have played around with different API's and Python with the help of AI but want to get a better overall understanding, any books good to start with for foundation?

8 Comments
2024/10/02
17:00 UTC

3

Ansible Tutorial: Zip filter for combining config data structures Cisco Example

0 Comments
2024/09/22
07:54 UTC

15

Share some scripts you use!

Let's see your most useful script. Doesn't have to be directly related to networking.

12 Comments
2024/09/20
11:55 UTC

0

Exploring the Potential of L4S and Wi-Fi 7 in Reducing Latency

Hey r/networkautomation , I wanted to share some findings from our recent research at Excentis, where we've been digging deep into low-latency technologies. We've been exploring L4S (Low Latency, Low Loss, and Scalable Throughput) alongside Wi-Fi 7 to see how they impact network performance.

Our latest case study paper, "Is L4S the Real Latency Killer?", is the result of collaboration with Nokia Bell Labs. We put their access point to the test to see how L4S performs in a Wi-Fi network environment. We built our setup in layers, starting with basic Wi-Fi 6 configurations and gradually incorporating Dual-Queue Coupled AQM (DualQ AQM) to evaluate L4S performance. We also configured latency-optimized EDCA/WMM parameters at the MAC layer for further analysis.

If you're interested in low-latency networking and want to dive into the details, feel free to check out our case study paper.

Would love to hear your thoughts or experiences with L4S or other low-latency technologies!

3 Comments
2024/09/20
07:47 UTC

6

Launch Alert: Simplify Network Automation with NetworkFlow!

We are thrilled to announce the launch of our new website, networkflow.co.nz! 🎊

At NetworkFlow, we're committed to making network configuration automation easier and more efficient for you. Our site now features a powerful tool that leverages Jinja2 and flow charts to quickly generate network configuration templates. Say goodbye to manual configurations and hello to streamlined automation! 🌐

🔧 Key Features:

  • Jinja2 Integration: Easily create and manage configuration templates with Jinja2.
  • Flow Charts: Visualize and automate network setups using intuitive flow charts.
  • Simplified Automation: Reduce errors and save time with our user-friendly tools.

Explore our website today and see how we can help you simplify your network automation processes. We're excited to support you in achieving seamless and efficient network management!

🔗 Visit networkflow.co.nz to get started.

https://preview.redd.it/m8k0ux7kvgpd1.png?width=1484&format=png&auto=webp&s=9f8e180bef4f34a8b18620c60434647f0b0ead21

0 Comments
2024/09/18
01:01 UTC

27

Network Automation

This topic seemed to gain traction, but how much ? I've never seen REAL automation on enteprises market, maybe they do it in big Cloud providers, and ISPs for very repetitive tasks. They have the need, the knowledge, the money. And of cource big software companies (Google, Meta, Microsoft), I believe they had SDN much more than marketing started talking about it.

On enteprises we can maybe see some config templating done with Fortimanager, DNAC tools. Not everybody uses them. But just to make an example, if you need to connect and gather the output of a few show commands, you still need to do it manually or write your own scripts.

13 Comments
2024/09/06
08:23 UTC

3

Cisco AutoInstall will not write to memory

Hello,

At work we are currently trying to automate switch firmware upgrades using AutoInstall on a Cisco 9200L.

The issue we're facing is at the end of the sequence no matter what mode or command we use it will not write to memory but the upgrade itself seems to work.

Does anyone here have any experience in trying to automate switch upgrades using AutoInstall and could maybe give some insight?

Thanks! :)

3 Comments
2024/09/05
07:02 UTC

6

Struggling to find a thesis project idea (I am completely new to network automation)

Hello guys,

For some context, I am currently enrolled in a network automation academy where we have been thought about computer networks from scratch by doing the first 2 CCNA modules (ITN & SRWE).

We are about to finish the second module and then start doing network automation.. Considering these experiences, I am looking towards doing a network automation project for my final undergrad thesis project. The problem is that I have to specifically choose the project topic really early, before I start the network automation part of the academy I am enrolled in, so I don't know what I could actually do.

I am thinking about creating a python application with a GUI that would allow users to automatically create and configure topologies in GNS3.

Do you guys have any suggestions? TL;DR: I want to do network automation for my final undergrad thesis, but I don't know what project to choose as I have yet to gain any experience in Network Automation

3 Comments
2024/09/01
22:46 UTC

27

Network Automation Landscape

Hey gang, here is a [work in progress] landscape of the network automation tooling, projects, and products etc.

https://steinzi.com/network-automation-landscape/

Codes over on GitHub, feel free to send a pull request and add whatever!
https://github.com/steinzi/network-automation-landscape/

3 Comments
2024/08/28
15:17 UTC

6

Is eNMS still alive?

I've recently come across eNMS which looks like it has the potential to be a really interesting tool.

Has anyone played with it? If so, any comments?

Also; I note that activity on the public github repo has fallen off a bit of a cliff recently. Anyone have any insight on whether this is still an active project, or has the author move on?

0 Comments
2024/08/25
19:57 UTC

6

Audit net config

I have a Jinja template that I use to configure 100 SRX firewalls. Now, I need to audit all 100 SRX devices to check if they are compliant with the template. I regularly use Python, pytest, Batfish, and Nornir, so I can find a solution, but I'd like to see how you would approach this problem? I want to avoid to write iper complicate test.

13 Comments
2024/08/19
19:13 UTC

3

Ansible json_query filter : Efficiently filter JSON data using JMESPath

0 Comments
2024/08/18
08:15 UTC

5

Live/Instructor-led network automation training

Hi,

I've read a few similar posts about general training on here and the r/networking sub but I haven't seen anything specifically for live/instructor-led training.

I learn best with live training, ideally in-person but that ain't gonna happen anymore (thanks, COVID). My networking and python knowledge is sound but I really don't mind going over fundamental python stuff again because there's likely something small or relevant to network automation that could be very helpful. i.e. all skill-level recommendations welcome.

What are the recommendations for live training?

I've had my eye on the Network to Code courses, particularly the Network Programming & Automation course. I've also seen recommendations for Packet Coders Network Automation with Python Bootcamp, and it looks good. It looks like they cover different topics so I'll likely plan to do both.

Thanks

7 Comments
2024/08/06
08:43 UTC

3

Ansible TextFSM CLI Parser: Easily parse Device show commands using TextFSM regex | Cisco Example

0 Comments
2024/08/04
07:35 UTC

3

advise on how to automate a bunch of Opengear IM7248's

2 Comments
2024/08/01
04:29 UTC

1

Transport Error/Saw EOF

Hi Guys,

While trying fetch output from the device, getting Authentication Failed : Transport Out or Saw EOF error. Any idea what is that error or how to fix that?

0 Comments
2024/07/29
12:04 UTC

13

Was the time spent for the Devnet certifications for nothing?

I have passed both Cisco DevNet certifications.

  • Devnet Associate
  • Devnet Professional

I am applying for positions such as

  • Network Automation Engineer
  • Cloud Network Engineer
  • Network Developer
  • Software Automation Engineer

But all companies say I don't have the right qualifications...

What surprises me is that the Devnet certifications cover topics such as

  • Linux Fundamentals
  • Python scripts and object-oriented programming
  • JSON, XML and YAMAL data format
  • Automation tools - i.e. Ansible
  • APIs/RESTFUL APIs
  • Network Fundamentals and Automation - Cisco DNA Center and ACI
  • Software delivery methods such as Waterfall or Agile

Have I spent 1.5 years learning for nothing?!?!

7 Comments
2024/07/18
11:52 UTC

2

django.db.utils.IntegrityError: insert or update on table while mi8grating netbox > nautobot using nautobot-netbox-importer

I am trying to Migrate data from Netbox 3.7.4 to Nautobot 2.X using nautobot-netbox-importer. I tried the migration with the netbox-demo.3.7. data and worked fine but with the data I have I have been getting this error >

sys.exit(main())
  File "/opt/nautobot/lib/python3.10/site-packages/nautobot/core/cli/__init__.py", line 293, in main
    execute_from_command_line([sys.argv[0], *unparsed_args])
  File "/opt/nautobot/lib/python3.10/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/opt/nautobot/lib/python3.10/site-packages/django/core/management/__init__.py", line 413, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/opt/nautobot/lib/python3.10/site-packages/django/core/management/base.py", line 354, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/opt/nautobot/lib/python3.10/site-packages/django/core/management/base.py", line 398, in execute
    output = self.handle(*args, **options)
  File "/opt/nautobot/lib/python3.10/site-packages/nautobot_netbox_importer/management/commands/import_netbox.py", line 89, in handle
    adapter.import_to_nautobot()
  File "/opt/nautobot/lib/python3.10/site-packages/nautobot_netbox_importer/diffsync/adapters/netbox.py", line 97, in import_to_nautobot
    self._atomic_import()
  File "/usr/lib/python3.10/contextlib.py", line 78, in inner
    with self._recreate_cm():
  File "/opt/nautobot/lib/python3.10/site-packages/django/db/transaction.py", line 246, in __exit__
    connection.commit()
  File "/opt/nautobot/lib/python3.10/site-packages/django/utils/asyncio.py", line 33, in inner
    return func(*args, **kwargs)
  File "/opt/nautobot/lib/python3.10/site-packages/django/db/backends/base/base.py", line 266, in commit
    self._commit()
  File "/opt/nautobot/lib/python3.10/site-packages/django/db/backends/base/base.py", line 241, in _commit
    with self.wrap_database_errors:
  File "/opt/nautobot/lib/python3.10/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/opt/nautobot/lib/python3.10/site-packages/django/db/backends/base/base.py", line 242, in _commit
    return self.connection.commit()
django.db.utils.IntegrityError: insert or update on table "dcim_device" violates foreign key constraint "dcim_device_primary_ip4_id_2ccd943a_fk_ipam_ipaddress_id"
DETAIL:  Key (primary_ip4_id)=(some UUID) is not present in table "ipam_ipaddress".

I tried multiple things like 1. Dropping constraints in DB 2. Disabling Foreign key Constraints but nothing worked. Can someone please point me to correct direction?

5 Comments
2024/07/15
12:16 UTC

0

networks

can someone please explain networks, wifi and how to manipulate them to keep someone out of your life. or tell me where I can go to learn quickly please... thanks in advance!!!

3 Comments
2024/07/10
03:00 UTC

2

What are some open-source SOAR-platforms we could use for Network Anomaly Detection using Machine Learning KNN Algorithm?

Hello people of reddit! Me and my groupmates are planning to use the Machine Learning KNN Algorithm for Network Anomaly Detection for our CAPSTONE project but we want to find a way to integrate a 'response' feature to it. Upon further research I have found out that it is possible to add a response feature to it by integrating it to a SOAR platform.

Now here comes the tricky part, we are having a hard time finding what SOAR platform we can use that is open-source and free. And not only that, we are having a hard time finding some documentation on how to do it. so I ask of you, do you guys have any suggestions what we could use and if possible, can you provide the documentation for it?

note: we will be using python for the KNN Algorithm, hope this information helps

0 Comments
2024/07/08
01:16 UTC

5

Ansible modules for controlling 3COM 4200/4210 OS V3.x switches

Does anyone know of any ansible modules for managing older 3Com switches?
E.g. Setting up NTP, checking on the state of Tacacs etc.
So far I only have my own python/expect scripts. Or what other tools are available?

0 Comments
2024/07/06
18:59 UTC

2

Cisco IOS-XR routing table via netconf

Hi,

I'm pretty new at IOS-XR and Netconf and can't google it myself. How could I get the current routing table of an Cisco IOS-XR router via netconf (ncclient). I want the output from *show ip route*, but in a structured format.

I think I have to use the get method and a filter, but I could not figure out how to create the filter for that. Can someone please help me? I really don't want to parse the routing table via regex

4 Comments
2024/07/03
09:28 UTC

3

Windows provisioning package over network no USB.

Windows provisioning package over network no USB.

I am trying to send and use a provisioning package created by Windows Configuration Designer via network connection, that automatically runs scripts to map and use the provisioning package from drive without any human interaction.

So, a provisioning package that runs when connected to network. To setup the OOBE Out-Of-Box-Experience.

Any Solution's will be of value.

0 Comments
2024/06/30
19:12 UTC

Back To Top