I recently ran in to an issue where I needed to convert a reasonably large DHCP database from a Windows Server in to a Cisco CLI to allow the Cisco to take over DHCP roles for a subnet. I found nothing that realy automated this task, even using the exported XML file. So knowing that this was the second time I needed the tool, and likely to need it again, even if it was for smaller tasks, I set about coding it in Powershell. It is the scripting system well supported in Windows land.
The current version of the script can be found on my GitHub repository:
Convert-WindowsDHCPToCisco
Still ha smany DHCP options that it hasn't been setup to hanle at this point but it does follow the basic ones that most of us use.
Currently handles DHCP Options
Code |
Option Description |
Cisco Output |
3 |
Default Gateway |
default-router |
4 |
Time Server |
ignoring |
6 |
Domain Nameserver |
dns-server |
15 |
Domain Name |
domain-name |
42 |
NTP Servers |
option 42 ip |
51 |
Lease time |
ignoring |
66 |
TFTP Server |
next-server |
67 |
Boot filename |
bootfile |
81 |
MS DHCP Name Protection |
ignoring |
121 |
Static routes |
option 121 hex |
161 |
FTP Server |
option 161 ip |
162 |
Path |
option 162 ascii |
252 |
Proxy PAC URL |
option 252 asicc |
DHCP References Used
It's back around to October again and Hacktoberfest is of course up and running. I enjoyed my first involvement with Hacktoberfest in 2019 but I didn't complete enough pull request for the month. Will I make it this year?
Hacktoberfest is a great idea. It got me contributing, and keen to try again next year, but I hope to keep its intent rolling through the year.
As before in 2019, my thanks go to DigitalOcean and DEV for this great initiative.
This is the beginings of this site utilising GatsbyJS.
While I am learning parts of GatsbyJS as well as expanding knowledge on ReactJS, I am not following through somone tutorial and simply pasting things in from that. I want to work on this to understand how these frameworks operate. As such it has been, and will be, a little jumpy as I don't follow a set path through setting up this site as I would if I followed through someones tutorial.
At present I have a fairly basic blog/thoughts/articles system operational, as well as a landing page. All of the pages have very little styling at this point, which certainly needs to be worked on. I also need to get some content up, expecially in the about page. I've also got options to discover on things such as styling where I'm exploring:
I've currently used the following plugins:
gatsby-plugin-react-helmet
for correct SEO elements on the pages
gatsby-plugin-react-helmet-canonical-urls
to make pages cannonical for this site. The source site.
gatsby-plugin-styled-components
for styling
gatsby-plugin-mdx
to manage the Markdown files to be used as post content
gatsby-remark-vscode
to have any Markdown code blocks styled to look like vscode screenshots
gatsby-plugin-feed
to create RSS feed data to allow sharing via feeds
gatsby-plugin-sitemap
to screate sitemap files
gatsby-plugin-robots-txt
to create robots.txt files
gatsby-plugin-offline
& gatsby-plugin-manifest
to make the site a Progressive Web App
gatsby-plugin-netlify-cms
suppoprt for Netlify CMS system to allow online creation of blog entries
Still a long way to go.