<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Automation on Aaron&#39;s Worthless Words</title>
    <link>https://a996c8ee.aww-3cz.pages.dev/tags/automation/</link>
    <description>Recent content in Automation on Aaron&#39;s Worthless Words</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Wed, 15 Mar 2023 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://a996c8ee.aww-3cz.pages.dev/tags/automation/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Sending Slack Messages with Python</title>
      <link>https://a996c8ee.aww-3cz.pages.dev/posts/2023/03/sending-slack-messages-with-python/</link>
      <pubDate>Wed, 15 Mar 2023 00:00:00 +0000</pubDate>
      <guid>https://a996c8ee.aww-3cz.pages.dev/posts/2023/03/sending-slack-messages-with-python/</guid>
      <description>&lt;p&gt;Here&amp;rsquo;s a quick summary of what we&amp;rsquo;ve talked about in the last few posts &amp;ndash; all with &lt;a href=&#34;https://www.python.org/&#34;&gt;Python&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;We&amp;rsquo;ve &lt;a href=&#34;https://aconaway.com/2022/12/11/querying-netbox-with-pynetbox/&#34;&gt;asked Netbox to provide some info&lt;/a&gt; using &lt;a href=&#34;https://pynetbox.readthedocs.io/en/latest/&#34;&gt;pynetbox&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;We&amp;rsquo;ve &lt;a href=&#34;https://aconaway.com/2023/01/17/adding-stuff-to-netbox-with-pynetbox/&#34;&gt;added stuff to Netbox&lt;/a&gt; using pynetbox.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;We&amp;rsquo;ve &lt;a href=&#34;https://aconaway.com/2023/01/25/updating-stuff-on-netbox-with-pynetbox/&#34;&gt;updated&lt;/a&gt; and &lt;a href=&#34;https://aconaway.com/2023/02/24/deleting-stuff-from-netbox-with-pynetbox/&#34;&gt;deleted stuff&lt;/a&gt; in Netbox using pynetbox.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;We&amp;rsquo;ve &lt;a href=&#34;https://aconaway.com/2023/02/26/using-python-logging-to-figure-out-what-you-did-wrong/&#34;&gt;logged our messages with Python logging&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;This is all fine and dandy, but I would guess that you&amp;rsquo;re not the only engineer in the company and production maintenance scripts don&amp;rsquo;t run off of your laptop. We need a way to let a group of people know what&amp;rsquo;s happening when one of your scripts is run. And please don&amp;rsquo;t say email. Email has been worthless for alerting for over a decade, and there are better ways to do it. Search your feelings&amp;hellip;you know it to be true!&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>
    <item>
      <title>Automating My World</title>
      <link>https://a996c8ee.aww-3cz.pages.dev/posts/2018/07/automating-my-world/</link>
      <pubDate>Mon, 23 Jul 2018 00:00:00 +0000</pubDate>
      <guid>https://a996c8ee.aww-3cz.pages.dev/posts/2018/07/automating-my-world/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve told this story 984828934 time in the past year, but bear with me.  We got a new director-type last year, and he has challenged all of us to do things differently.  As in everything.  Anything that we&amp;rsquo;re doing today should be done differently by next year.  This isn&amp;rsquo;t saying that we&amp;rsquo;re doing things wrong.  This is just a challenge mix things up, integrate new tools, and get rid of the noise.  Our group has responded big-time, and we&amp;rsquo;re now doing most of our day-to-day tasks with a tool of some kind.  A couple weeks ago, I realized that I did a whole day&amp;rsquo;s work without logging directly into any gear &amp;ndash; everything was through a tool.  It was a proud moment for me and the group.&lt;/p&gt;</description>
    </item>
    <item>
      <title>An Update for my Adoring Fans</title>
      <link>https://a996c8ee.aww-3cz.pages.dev/posts/2018/06/an-update-for-my-adoring-fans/</link>
      <pubDate>Tue, 05 Jun 2018 00:00:00 +0000</pubDate>
      <guid>https://a996c8ee.aww-3cz.pages.dev/posts/2018/06/an-update-for-my-adoring-fans/</guid>
      <description>&lt;p&gt;I feel like a teenage girl with a fashion blog who hasn&amp;rsquo;t posted in 6 months and comes back with &amp;ldquo;I know I haven&amp;rsquo;t posted in a while&amp;hellip;&amp;rdquo;  Sigh.  It&amp;rsquo;s been right at a year since I actually published a post, so I figured I would give everyone an update.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve had some personal things going on lately, and those have taken all of my energy.  We&amp;rsquo;ve made it through those rough times, so my energy is coming back.  I&amp;rsquo;m feeling better every day, and I hope I can get back to producing some content.  And, let me tell you&amp;hellip;I&amp;rsquo;ve got some stuff to talk about.&lt;/p&gt;</description>
    </item>
    <item>
      <title>A Quick Intro to Google&#39;s Capirca</title>
      <link>https://a996c8ee.aww-3cz.pages.dev/posts/2010/04/a-quick-intro-to-googles-capirca/</link>
      <pubDate>Sun, 11 Apr 2010 00:00:00 +0000</pubDate>
      <guid>https://a996c8ee.aww-3cz.pages.dev/posts/2010/04/a-quick-intro-to-googles-capirca/</guid>
      <description>&lt;p&gt;Yeled left a comment earlier this week asking if I&amp;rsquo;d seen &lt;a href=&#34;http://code.google.com/p/capirca/&#34;&gt;Google&amp;rsquo;s Capirca&lt;/a&gt;.  I&amp;rsquo;d heard of it and checked out some presentation slides on it, but I&amp;rsquo;d never actually tried it out, so, in keeping with the script, I downloaded it to see what it could do.  Remember, now, that I&amp;rsquo;ve been playing with it for about 2 hours now, so I&amp;rsquo;m no expert on its use.&lt;/p&gt;&#xA;&lt;p&gt;Capirca is a Python-based solution that Google came up with to automate ACL creation on their many thousands of routers around the world.  You can&amp;rsquo;t blame them for wanting to automate it, either.  How many times do you think they ran into problems with typos or keying errors from their network guys across those devices?&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
