Skip to content

Instantly share code, notes, and snippets.

Olli Janatuinen olljanat

Block or report user

Report or block olljanat

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@olljanat
olljanat / MigrateVmIPsToIPAM.ps1
Last active Mar 20, 2019
Nutanix AHV - Migrates specified virtual machines IP addesses to IPAM reservations to avoid two IPs to be reserved per server
View MigrateVmIPsToIPAM.ps1
<#
.SYNOPSIS
Migrates specified virtual machines IP addesses to IPAM reservations to avoid two IPs to be reserved per server
.DESCRIPTION
Finds servers which have two reserved IP addresses,
removes old NIC and add new NIC with second IP (static IP inside of VM).
Can be run online but causes small network hickup for servers.
@olljanat
olljanat / Find-OrphanDockerLayers.ps1
Last active Jul 25, 2019
Find Windows containers orphan layers
View Find-OrphanDockerLayers.ps1
param (
[switch]$RenameOrphanLayers
)
If ($RenameOrphanLayers) {
Write-Warning "$($env:COMPUTERNAME) -RenameOrphanLayers option enabled, will rename all orphan layers"
}
# Get known layers on Docker images
[array]$ImageDetails += docker images -q | ForEach { docker inspect $_ | ConvertFrom-Json }
You can’t perform that action at this time.