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 by an vCenter alert definition.

1. vCenter alert definition

as trigger manually enter (type): vim.event.GeneralUserEvent

2. The script which will log the user event

#!/usr/bin/python

import sys
sys.path.insert(0, '/usr/lib/vmware/site-packages/')
from pyVim.connect import SmartConnect
from pyVmomi import vim
import ssl
import atexit

s = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
s.verify_mode = ssl.CERT_NONE

si = SmartConnect(host="localhost", user="administrator@vsphere.local", pwd='VMware1!', sslContext=s)

content = si.RetrieveContent()
ds = content.rootFolder

log = si.content.eventManager.LogUserEvent(entity=ds, msg="Issue detected")

Result:

The resulting alert can be catched by vROPs and trigger further events/ tickets.

VMware has released vSphere Integrated Containers 1.3

Yesterday VMware released version 1.3 of the vSphere Integrated Containers. The version enhances stability and delivers a new graphical-user interface to guide users through the creation of a Virtual Container Host (VCH).

Please find the details in the original post on the VMware blog: VMware Blog

ESX IP STORAGE TROUBLESHOOTING BEST PRACTICE

VMware has released a new White paper about ESXi IP storage troubleshooting.

In this paper, we:
• Describe how you can analyze packet traces to identify functional and performance issues in an
ESX IP storage environment.
• Compare packet capture alternatives, and explain why we recommend an inline optical network
tap connected to a packet capture system.
• Present the challenges of 10G packet capture, and describe key features of commercial 10G
capture solutions.
• Describe the design of an inexpensive, self-assembled 10G packet capture solution optimized for
troubleshooting that you can build relatively easily. We also describe our experience with multiple
prototypes of this design, which we have used in our ESX IP storage testbeds for NFS and iSCSI
performance for many years.
• Present examples of analyzing packet traces to solve ESX performance issues for NFSv41, software
iSCSI over IPv6, and hardware iSCSI.

ESX-IP-storage-troubleshooting.pdf

Storage and Availability Technical Documents

VMware Whitepapers about Storage and Availability.

vMSC Best Practices – https://storagehub.vmware.com/#!/vsphere-storage/vmware-vsphere-r-metro-storage-cluster-recommended-practices
vSphere APIs for IO Filtering – https://storagehub.vmware.com/#!/vsphere-storage/vmware-vsphere-apis-for-i-o-filtering-vaio
VMFS – https://storagehub.vmware.com/#!/vsphere-storage/vmware-vsphere-vmfs
VAAI – https://storagehub.vmware.com/#!/vsphere-storage/vmware-vsphere-apis-array-integration-vaai-1
iSCSI – https://storagehub.vmware.com/#!/vsphere-storage/best-practices-for-running-vmware-vsphere-on-iscsi

New Whitepaper: VMware vSphere® Metro Storage Cluster Recommended Practices

VMware has released a new Whitepaper about Metro Storage Clusters.

“An overview of the definition, functionalities and capabilities of VMware vSphere Metro Storage Cluster configuration that is a specific storage configuration combining replication.”

VMware vSphere® Metro Storage Cluster Recommended Practices

vSphere Integrated Container Fundamentals free training

Overview:
This course covers a series of topics on cloud native basics such as container technology, Kubernetes, and container related infrastructure technologies.

Outline:

Cloud Native Basics
What is a Container?
In this lightboard talk, Ben Corrie explains what a container is for beginners.

The Benefits of Containers
In this lightboard talk, Ben Corrie walks through the benefits of containers.

Kubernetes in 5 mins
In this lightboard talk, Steve Tegeler walks through Kubernetes fundamentals for beginners.

Docker Networking Options
In this lightboard talk, Nathan Ness walks through the networking options in Docker.

Networking with Kubernetes
In this lightboard talk, Nathan Ness walks through the networking options in Kubernetes and explains the types of communications through Kubernetes services.

An Analysis of IT Technology Silos: Consumers & Providers
In this lightboard talk, Steve Tegeler takes you through an analysis of IT technology silos and talks about what the consumers and providers of each silo care about.

Container Registry
In this lightboard talk, Haining Zhang walks you thought what container registry is and how it works.

Developer Ready Infrastructure
Pivotal Cloud Foundry and vSphere Part 1
In this lightboard talk, Merlin Glynn provides an overview of cloud foundry and the benefits of running cloud foundry, as well as how it interacts with vSphere.

Pivotal Cloud Foundry and vSphere Part 2
In this lightboard talk, Merlin Glynn discusses Pivotal Cloud Foundry (PCF) and VMware vSphere, vRealize and NSX, and explains how VMware technologies provide key services such as scalability, availability and security that keep PCF running optimally and how to meet external requirements of PCF like monitoring and logging.

Pivotal Cloud Foundry and NSX
In this lightboard talk, Merlin Glynn provides an overview of Pivotal Cloud Foundry and VMware NSX, and explains how NSX provides virtual networking and security for Pivotal Cloud Foundry.

Containers on vSphere
vSphere Integrated Containers Networking Overview
In this lightboard talk, Patrick Daigle provides an overview of the networking concepts for vSphere Integrated Containers.

Link to VMware MyLearn

Performance of Enterprise Web Applications in Docker Containers on VMware vSphere 6.5

“In this paper, we explore the performance characteristics of a large enterprise web application running in
Docker containers deployed in VMware vSphere 6.5 virtual machines (VMs). In order to put the performance of
this deployment choice into context, we compare its performance to that of the same application running both
in vSphere 6.5 VMs without Docker containers and in Docker containers on an operating system (OS) running
directly on the bare-metal server. We also look at the performance impact of some common configuration
options in order to better understand the performance differences among these three configurations.”

Performance of Enterprise Web Applications in Docker Containers on VMware vSphere 6.5