With the release of vRealize Operations 6.7 VMware has introduced few updates to the REST APIs. Please find the details on the VMware Blog. What’s New in vRealize Operations 6.7 REST APIs
VMware Self-Driving Operations delivered by vRealize. VMware vRealize Operations 6.7 introduces several new and enhanced performance and capacity optimization capabilities to help customers adopt a ‘self-driving’ approach to operations management. VMware vRealize Operations delivers continuous performance optimization based on operational and business intent, efficient capacity management, proactive planning and intelligent remediation. It provides a unified IT operations management platform to optimize, plan and scale SDDC and multi-cloud deployments, from apps to infrastructure. Discover how vRealize enables IT teams across industries to innovate and accelerate time to value.
VMware has retired the traditional Configuration Maximums Guides in pdf form. For vSphere 6.7 Maximums you will need to visit the new online tool: https://configmax.vmware.com/
This tool has vSphere 6.0 to 6.7. It is a dynamic tool allowing to isolate component maximums, compare maximums, and export out maximums.
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 #!/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 username = 'email@example.com' password = 'VMware1!' v = sys.version_info try: if sys.version_info <7 or v.minor < 7: si = SmartConnect(host="localhost", user=username, pwd=password) content = si.RetrieveContent() ds = content.rootFolder log = si.content.eventManager.LogUserEvent(entity=ds, msg="Postgres Corruption detected") else: s = ssl.SSLContext(ssl.PROTOCOL_TLS) s.verify_mode = ssl.CERT_NONE si = SmartConnect(host="localhost", user=username, pwd=password, sslContext=s) content = si.RetrieveContent() ds = content.rootFolder log = si.content.eventManager.LogUserEvent(entity=ds, msg="Postgres Corruption detected") except: print("Unexpected error:", sys.exc_info())
The resulting alert can be catched by vROPs and trigger further events/ tickets.