Deploy NetBox quickly using an Ansible playbook

Deploy NetBox quickly using an Ansible playbook

Background NetBox is an infrastructure resource modelling application. It is a great tool to organize and document your infrastructure from a network and connection perspective. This Ansible playbook is created to quickly install and getting started with a NetBox environment on a Debian based server. Requirements Python 3.8, PostgresSQL 10, Redis 4 I recommend to install NetBox on a Debian 11 system witch includes these requirements in their default repository’s. Python is required to be installed on the server for…

Read More Read More

Creating tools for NetApp Storage – Provisioning volumes

Creating tools for NetApp Storage – Provisioning volumes

Provisioning storage from any storage vendor often requires several configuration steps before it is accessible by the intended host. With NetApp this could be automated with NetApp´s PowerShell cmdlets. With NetApp, NAS-Volumes are the most common volumes to create. So to automate this I have created a provisioning function that creates a volume with the desired properties and makes it available to share with the correct type of permission sets. To use the function NetApp´s Data ONTAP PowerShell Toolkit is…

Read More Read More

PowerShell And XML

PowerShell And XML

How to work with XML in PowerShell PowerShell gives you a real advantage when it comes to working with XML based logs. And it is easy. As always this is because of objects. Just as with other object there is methods and properties. You begin by creating an object of you XML data. It is done by casting the variable as a System.Xml.XmlDocument. Just like this. For instance with a XML file like this. The output of $a.Books would yield…

Read More Read More

Powershell – DSC Custom Resource

Powershell – DSC Custom Resource

Powershell Desired State Configurations (DSC) Introduction DSC is a technology developed for deploying and managing system configuration. And making sure it stays that way even if the configuration is change by other means than through DSC. It has many similarities with AD Group Policies(GPO). The advantages of DSC are that it can manage Workgroup joined systems and it is much easier to write a custom DSC configuration than a GPO. It is also possible to manage Linux system by DSC….

Read More Read More

PowerShell – Get-Command

PowerShell – Get-Command

How do you search for Cmdlets? In search for the cmdlet you are looking for, you first have to remember the naming conventions for cmdlets. The verb noun composition. For instance the verbs that are often uses are; add,get,remove,set and out. Then there is the noun. The noun is often associated with the object of interest, like Process or Printer. To search for a cmdlet use the Get-Command cmdlet. With this command you can list cmdlets by there noun, verb…

Read More Read More

PowerShell – Important help sections

PowerShell – Important help sections

When learning Powershell I found that the most rewarding sections of the Powershell help files where the pages about operators (about_Operators and subtopics). A great way to find the topic you are interested in is just to type for instance help *operators*. This will give you a list of all the help pages about different operators.

PowerShell – Where to start

PowerShell – Where to start

So where to start. Well as always you start with the help! Now that is something you don’t want to hear, but it is the best way to get to know Powershell. So how do you find this help. All you have to do is type help in the Powershell Console and it will tell you how to get help about a cmdlet. For example to get help file for cmdlet Get-Process, type Help Get-Process or just Get-Process -?. This…

Read More Read More