Monitoring Scripts VCSA VMware

Update: Trigger a User event from the VCSA command line

Disclaimer: This is not officially supported by VMware, please use at your own risk. Recently I faced the challenge with a script running on a VCSA which executes some checks and in case something gets detected it has to trigger a vCenter alarm. My solution is to log a user event which will be captured […]

Automation Tools Virtualisation VMware vROPs

vROps log bundle automation Part 1

In my role as an onsite GSS Senior TSE at a large VMware customer in Germany I have to collect vROPs log bundles multiple times a week. As this is time consuming manual process I have created a script in my spare-time which fully automates this task. The script triggers the creation of a log […]

hacking Homelab ix4-300d Lenovo NAS Uncategorized

Lenovo ix4-300d SSH, root home directory and cronjobs

Couple of weeks ago I got my hands on 3 Lenovo ix4-300d storage boxes. These boxes are no longer produced and sometimes you can get them really cheap. First I had plans to use them as iSCSI storage for my home lab but the performance is not good enough. Therefore I decided to play around […]

Scripts Uncategorized VMware vSphere

Get all guest IPs of all your Virtual Machines using Powershell

This is a small powershell script to get all Guest IPs from all virtual machines $VCENTER=”″ Connect-VIServer -Server $VCENTER $vms = Get-VM | Sort $file = “c:\ip_list.txt” foreach ($vm in $vms){ foreach($ip in $vm.Guest.IpAddress){ Write-Host “$vm $ip” “$vm $ip” | Out-File -FilePath $file -Append } } Disconnect-VIServer -Server $VCENTER -Confirm:$false -Force:$true

PowerShell Scripts

Upload file to webdav using Powershell

This is small powershell script to upload a file from your local disk to a webdav server. It is also proxy capable. #Complete path of the file to be uploaded $file = “d:\test_file.txt” #URL without the last “/” $url = “https://YOUR-SERVER/webdav” $proxy = “http=PROXY-SERVER:PORT” #User and Pwd for Webdav Access $user = “USERNAME” $pass = […]

Scripts Tools Ubuntu

Monitor System Logs with Logwatch

I’m using the tool Logwatch to get a daily log report from all my servers by email. Install Logwatch: apt-get update apt-get install logwatch Config file: /usr/share/logwatch/default.conf/logwatch.conf To simplify the access to the config file I use a symlink. cd /etc/logwatch ln -s /usr/share/logwatch/default.conf/logwatch.conf Configuration (parameters which I have changed): #Output = stdout Output = […]

ESXi PowerShell Scripts VMware vSphere

Collect ESXi stats with powershell and send it to Graphite server

I was not quite happy with the statistics from the vCenter. It is not possible to get an overview overall my ESXi servers. :-( Someone pointed me to the tool Graphite that this is a cool solution to visualize such kind of statistics. So I decided to give it a try. I created and virtual […]