Docker and macvlan
If you want to use docker containers in your regular LAN subnet you need to setup a new Docker network with macvlan driver. First create your Docker network. -- ip-range specifies all addresses th...
If you want to use docker containers in your regular LAN subnet you need to setup a new Docker network with macvlan driver. First create your Docker network. -- ip-range specifies all addresses th...
How to create new portgroups in a VD Switch from a CSV-file. Very handy when adding several portgroups at one time. $file = Import-Csv -path "c:\vlan.csv" foreach ($row in $file) { New-VDPortgr...
This example uses invoke-webrequest to retrieve computer information from a company reporting webpage. Only text inside TD elements are stored in a array for future use and added to a PSObject. fu...
A short script to migrate VMs to a new cluster or host. Migrates one vm at a time to save network bandwith. After migration it upgrades Vmware tools to match current host version. Takes a CSV file...
This config will dropp all ipv6 packages on vlan 1 ASW-02# conf ASW-02(config)# ipv6 access-list "drop-all-v6" ASW-02(config-ipv6-acl)# 10 deny ipv6 ::/0 ::/0 ASW-02(config-ipv6-acl)# exit ASW-02(...
Here is an example of a script to create AD users from a CSV-file and assign a temoporary password. param ( [parameter(Mandatory = $true)] $infile, $output ) $OU = "OU=Users,DC=PSLAB...
I had some trouble with VMwaretools stopping on some machines and decided to automate restart och vmware tools. I wrote this script which takes a view parameter to view current status. If you start...
Short instruction for firmware upgrade over TFTP and CLI. Type show version to determine what version your switch is running on. Use command copy tftp flash hostname filename primary to downl...
If you want to monitor your windows server uptime in OP5. Run from NSClient++ on all hosts you want to monitor uptime on. param ( [parameter(Mandatory = $true)] [int]$w, [parameter(Man...
If you need to create a new host with OP5 api you can use something like this. Template, hostgroups and contactgroups are not mandatory and can be removed from hash table. function new-op5host ( ...