<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Neteng on Aaron&#39;s Worthless Words</title>
    <link>https://a996c8ee.aww-3cz.pages.dev/tags/neteng/</link>
    <description>Recent content in Neteng on Aaron&#39;s Worthless Words</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Wed, 23 Aug 2023 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://a996c8ee.aww-3cz.pages.dev/tags/neteng/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Generating Network Diagrams from Netbox with Pynetbox</title>
      <link>https://a996c8ee.aww-3cz.pages.dev/posts/2023/08/generating-network-diagrams-from-netbox-with-pynetbox/</link>
      <pubDate>Wed, 23 Aug 2023 00:00:00 +0000</pubDate>
      <guid>https://a996c8ee.aww-3cz.pages.dev/posts/2023/08/generating-network-diagrams-from-netbox-with-pynetbox/</guid>
      <description>&lt;p&gt;Here&amp;rsquo;s my typical disclaimer: I&amp;rsquo;m not a developer. I have the ability to make code give me an expected output, but I do not do anything &amp;ldquo;the right way.&amp;rdquo;&lt;/p&gt;&#xA;&lt;p&gt;All the code I write for these blog posts is in &lt;a href=&#34;https://github.com/aconaway1/blog-pynetbox&#34;&gt;my Github repo&lt;/a&gt; that you can and should freely copy and modify. Here&amp;rsquo;s the environment I&amp;rsquo;m running this stuff in. Python. &lt;a href=&#34;https://github.com/netbox-community/pynetbox&#34;&gt;Pynetbox&lt;/a&gt;. You know the drill by now.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code data-lang=&#34;fallback&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Python         :  3.9.10&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Pynetbox       :  7.0.0&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Netbox version :  3.5.8&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;We&amp;rsquo;ve been working through some stuff, and, at this point, we have a lot of stuff in our &lt;a href=&#34;https://docs.netbox.dev/en/stable/&#34;&gt;Netbox&lt;/a&gt; instance. Let&amp;rsquo;s step up the game a little, though, and see if we can&amp;rsquo;t generate a network diagram based on that data. Let&amp;rsquo;s set some expectations, though. This is not going to be comparable to that Visio diagram you&amp;rsquo;ve managed by hand for the last 8 years. This is going to be a very simple diagram with subnet, nodes, and IP addresses &amp;ndash; enough for an auditor or for some architect who doesn&amp;rsquo;t know what&amp;rsquo;s in their own data centers.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Out-of-band Management - Useful Beyond Catastrophe</title>
      <link>https://a996c8ee.aww-3cz.pages.dev/posts/2023/07/out-of-band-management-useful-beyond-catastrophe/</link>
      <pubDate>Thu, 13 Jul 2023 00:00:00 +0000</pubDate>
      <guid>https://a996c8ee.aww-3cz.pages.dev/posts/2023/07/out-of-band-management-useful-beyond-catastrophe/</guid>
      <description>&lt;p&gt;I was lucky enough to participate in Tech Field Day Extra at Cisco Live a couple weeks months ago. This event brings independent thought leaders together with a number of IT product vendors that were at Cisco Live to share information and opinions. I was not paid to attend, but the organizers did provide some meals while I was there. There is no expectation of providing any content, so the fact that I’m mentioning it says something. It was a great event and worth a few hours to &lt;a href=&#34;https://www.youtube.com/playlist?list=PLinuRwpnsHafmM4n1UieIWxQLz8omLCxK&#34;&gt;check out the videos&lt;/a&gt;. Thanks to &lt;a href=&#34;https://gestaltit.com/&#34;&gt;Gestalt IT&lt;/a&gt; for getting me involved. OpenGear was there, and it was good to see some new faces and hear some new ideas.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Overlay Management</title>
      <link>https://a996c8ee.aww-3cz.pages.dev/posts/2023/07/overlay-management/</link>
      <pubDate>Wed, 12 Jul 2023 00:00:00 +0000</pubDate>
      <guid>https://a996c8ee.aww-3cz.pages.dev/posts/2023/07/overlay-management/</guid>
      <description>&lt;p&gt;I was lucky enough to participate in Tech Field Day 27 a couple weeks months ago. This event brings independent thought leaders together with a number of IT product vendors to share information and opinions. I was not paid to attend, but the organizers did provide travel, room, and meals while I was there. There is no expectation of providing any content, so the fact that I&amp;rsquo;m mentioning it says something. It was a great event and worth a few hours to &lt;a href=&#34;https://www.youtube.com/playlist?list=PLinuRwpnsHafAJ1Gc3Bt8B7GEy_A69Bb9&#34;&gt;check out the videos&lt;/a&gt;. Thanks to &lt;a href=&#34;https://gestaltit.com/&#34;&gt;Gestalt IT&lt;/a&gt; for getting me involved.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Netbox Upgrade Play-by-play</title>
      <link>https://a996c8ee.aww-3cz.pages.dev/posts/2023/04/netbox-upgrade-play-by-play/</link>
      <pubDate>Tue, 25 Apr 2023 00:00:00 +0000</pubDate>
      <guid>https://a996c8ee.aww-3cz.pages.dev/posts/2023/04/netbox-upgrade-play-by-play/</guid>
      <description>&lt;p&gt;I just upgraded my Netbox server from v2.7.6 to v3.4.8. This is just a record of what I did in case anyone want to know how I did it.&lt;/p&gt;&#xA;&lt;h2 id=&#34;environment&#34;&gt;Environment&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;The source v2.7.6 server is an Ubuntu 18.04 VM. Yes, both are very old.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;The destination v3.4.8 server is an Ubuntu 20.04 VM.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;We have no media, scripts, or reports in Netbox.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;I&amp;rsquo;m running Virtualbox on my laptop to do the data migrations.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Using Python Logging to Figure Out What You Did Wrong</title>
      <link>https://a996c8ee.aww-3cz.pages.dev/posts/2023/02/using-python-logging-to-figure-out-what-you-did-wrong/</link>
      <pubDate>Sun, 26 Feb 2023 00:00:00 +0000</pubDate>
      <guid>https://a996c8ee.aww-3cz.pages.dev/posts/2023/02/using-python-logging-to-figure-out-what-you-did-wrong/</guid>
      <description>&lt;p&gt;As a warning to everyone, I am not a developer. I am a network engineer who is trying to do some automation stuff. Some of what I’m doing sounds logical to me, but I would not trust my own opinions for production work. I’m sure you can find a Slack channel or Mastodon instance with people who can tell you how to do things properly.&lt;/p&gt;&#xA;&lt;p&gt;I use too many print statements to figure out what&amp;rsquo;s going on. Get an object and print it to screen to make sure it&amp;rsquo;s right. Do a calculation and print the result. There are so many print statements in my code that I had to start using a debug variable to tell it when to print stuff. I even use that technique in my functions.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Deleting Stuff from Netbox with Pynetbox</title>
      <link>https://a996c8ee.aww-3cz.pages.dev/posts/2023/02/deleting-stuff-from-netbox-with-pynetbox/</link>
      <pubDate>Fri, 24 Feb 2023 00:00:00 +0000</pubDate>
      <guid>https://a996c8ee.aww-3cz.pages.dev/posts/2023/02/deleting-stuff-from-netbox-with-pynetbox/</guid>
      <description>&lt;p&gt;As a warning to everyone, I am not a developer. I am a network engineer who is trying to do some automation stuff. Some of what I’m doing sounds logical to me, but I would not trust my own opinions for production work. I’m sure you can find a &lt;a href=&#34;https://netdev.chat/&#34;&gt;Slack channel&lt;/a&gt; or &lt;a href=&#34;https://infosec.exchange/explore&#34;&gt;Mastodon instance&lt;/a&gt; with people who can tell you how to do things properly.&lt;/p&gt;&#xA;&lt;p&gt;We&amp;rsquo;ve added stuff and updated stuff, so let&amp;rsquo;s delete some stuff. &amp;ldquo;Hey, man&amp;hellip;you already did that,&amp;rdquo; you say? You&amp;rsquo;re right! When &lt;a href=&#34;https://aconaway.com/2023/01/12/using-pynetbox-to-create-netbox-api-tokens/&#34;&gt;we started creating API tokens based on user/pass&lt;/a&gt;, we made sure to delete the token at the end. That means we should all be professional &lt;a href=&#34;https://pynetbox.readthedocs.io/en/latest/&#34;&gt;pynetbox&lt;/a&gt; deleters, then, right? :)&lt;/p&gt;</description>
    </item>
    <item>
      <title>Updating Stuff on Netbox with Pynetbox</title>
      <link>https://a996c8ee.aww-3cz.pages.dev/posts/2023/01/updating-stuff-on-netbox-with-pynetbox/</link>
      <pubDate>Wed, 25 Jan 2023 00:00:00 +0000</pubDate>
      <guid>https://a996c8ee.aww-3cz.pages.dev/posts/2023/01/updating-stuff-on-netbox-with-pynetbox/</guid>
      <description>&lt;p&gt;Let&amp;rsquo;s see. We&amp;rsquo;ve &lt;a href=&#34;https://aconaway.com/2022/12/11/querying-netbox-with-pynetbox/&#34;&gt;queried stuff&lt;/a&gt; on &lt;a href=&#34;https://docs.netbox.dev/en/stable/&#34;&gt;Netbox&lt;/a&gt; and &lt;a href=&#34;https://aconaway.com/2023/01/17/adding-stuff-to-netbox-with-pynetbox/&#34;&gt;added stuff&lt;/a&gt; to Netbox. Now let&amp;rsquo;s update stuff.&lt;/p&gt;&#xA;&lt;p&gt;Netbox, like all sources of truth, needs to be kept up-to-date if it&amp;rsquo;s going to be useful. Without doing some maintenance on the data, it will wind up being like that one Visio diagram that you give the auditors &amp;ndash; it might have been accurate at one point but gets further and further from the truth every day. We&amp;rsquo;ll need to keep our stuff updated today in order to use it more effectively tomorrow.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
