VMUGDK Presentation – PowerShell: From Zero To Hero

Posted Leave a commentPosted in Script

Hi all Did a presentation on Powershell yesterday and only got around halfway through, before I ran out of time. I have publish the entire thing on github if anyone want a peak at what I talk or didn’t. No powerpoint just powershell code. The presentation is an attempt to start slow and end up where modules and functions gets built. https://github.com/MichaelRyom/VMUGDK-12-2022   Enjoy

Alternative to VDS Health Check

Posted 2 CommentsPosted in Script

If you have a large environment or a lot of VLANs you know that running with VDS Health check on, is not an option. This is due to the way VDS Health check works. It will sent out one packet per uplink per VLAN. Meaning if you have two uplinks and 20 VLAN, it will send out a total of 40 packets for that one host. Which is not that bad, but now scale it up to the kind of people which usually have and need the distributed switch and the number of VLANs is likely to be triple digit […]

Export settings from vRops

Posted 12 CommentsPosted in vRops

Have you ever wanted to export settings from vRops, either as a form of backup or to migrate to another installation? Then you know how cumbersome it can be to find all the settings and export them one by one and also remembering to get it all. To help me get this task done I have created this Powershell script which uses the vRops API to export the settings to xml files which can be easily be imported if or when needed. The list of settings being exported: ActionDefinitions AlertDefinitions AlertPlugins Authentication Sources Email Templates GlobalSettings Groups, their role and […]

Using Log Insight query API with Powershell

Posted 2 CommentsPosted in Log Insight

Log Insight is such an underrated tool. As a consultant I use it all the time, it makes it simple and fast to find issues and solutions. Frankly speaking any VMware shop not running Log Insight is letting there company down. There is multiple ways to get insight out of Log Insight. You can use the GUI; setup webhooks for third party intergration; get it to send you an email; send alerts to vRops or use the Log Insight API. The API is split into two, an ingestion API and a query API. Today I am going to show you […]

SDRS VM settings always set to fullyautomated with New-VM cmdlet

Posted Leave a commentPosted in Script

New-VM cmdlet Came across an issue when doing deployment of VMs using the PowerCli cmdlet New-VM. If not specified and deployed into a datastore cluster, SDRS behavior will always be set to automated. Even if the datastore clusters default setting is set to something else. It seems weird to bypass the datastore clusters default settings and per default just set it to automated, but that is just how it is at the moment. Consider this to be a request to change default behaviour of the cmdlet, to always set the SDRS setting of the VM to default unless otherwise specified. […]

Delete claimrules via PowerCLI

Posted Leave a commentPosted in ESXi, Script

Had to mask storage in an older environment. As soon as that was done and storage were removed, then the clean up starts. I could have done all this by hand, but where is the fun in that. Instead I created this little script below which removes all claimrules with a rule number greater than 101 and lower than 65535. Of course this should go without saying. You need to know what you are doing and that there is no claimrules between 101-65535 that is crucial to your environment. Deleting claimrules like this shouldn’t be taking lightly. Well, I had […]

Deploy appliances via PowerCLI

Posted Leave a commentPosted in Script

Needed to deploy some appliances. I could have done that via a client, but it some what cumbersome and requires you to sit a wait for every step. Why not deploy appliances via Powercli? It’s easy, fast and requires only a few lines of commands. The PowerCli cmdlet is called “Import-VApp”. The cmdlet lets you specify fields like Source, Name and OvfConfiguration. The tricky part here is to know which OvfConfiguration parameters are needed. An OVA file is just a zip file with the vmdk and configuration files in it. It can simply be opened with a tool which supports […]

esx.problem.net.vmknic.ip.duplicate – Hunting for MAC

Posted Leave a commentPosted in Log Insight, Script

Log Insight is a very powerful tool to monitor your environments health status. One of my favorite dashboards to is the “General – Problems” dashboard, which is part of theĀ  “VMware – vSphere” content pack. It comes with Log Insight per default. Because there you can get a great overview of any problems that might be in your vSphere environment. One of the problems you might see is the “esx.problem.net.vmknic.ip.duplicate” or as it can be seen in the pie chart “net.vmknic.ip.duplicate”. This problem basically tells you there’s an misconfiguration in your environment. Two VMK nics have the same IP address […]

Auto create Nano server for ESXi with Powershell

Posted 1 CommentPosted in Windows

I have recently played a little with Microsoft’s up coming Windows 2016 OS. One of the things I find very intriguing about Windows 2016 is Nano Server. It is the possibility to create a small and fast booting version of Windows. Nano server is JeOS (Just Enough OS), meaning that it all you need for the task ahead. Not more deploying 50GB+ servers with lots of features if you only need one. This equals faster boot times, smaller footprint on resources and smaller attack surface. All good things that IT has come to love from the Linux world. The only […]

No Syslog Server is Configured

Posted Leave a commentPosted in Log Insight, NSX, Script, vRops

If you are running vRops and NSX, one of the mangement packs that is a must to install is the NSX management pack – On a side note remember to link Log Insight to vRops, that way when you install the NSX management pack in vRops, it will also install the NSX content pack in Log Insight and setup the alerts in the NSX content pack and forward them to vRops. The NSX management pack delivers both NSX network information as well as traditional network information from switches via SNMP and CDP/LLDP. It helps to provide better to understand of […]