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.
If you would like to manage your vROPs using Powershell the following module could be helpful.
PowervROps is a module written for PowerShell that can be used to access various elements of the vRealize Operations Manager API via PowerShell functions.
Found a great blog post on how to monitor windows services with VMware vRealize Operations Manager (vROPs).
Link: Steve Tilkens Blog
During my research about best practices of setting up a vROPs environment I found the following document which provides a guideline for a reference vROPs architecture.
“The vRealize Operations Manager Reference Architecture Guide provides recommendations for deployment
topology, hardware requirements, and interoperability, and scalability for
VMware vRealize Operations Manager 6.5.”
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 bundle using the CASA API, checks the status of the creation and download the log bundle when it is ready. After successful download it will automatically upload the bundle to sftpsite.vmware.com in the corresponding SR folder.
The script is avialable in my Gogs: vrops-support-bundle
Disclaimer: This is not officially supported by VMware, please use at your own risk.
Steps how to use the script:
Setup an Linux virtual machine as host for the script. A machine with 1 vCPU, 2GB Memory and 100Gb storage is sufficient. The storage can be smaller it really depends on the size of your vROPs environment and the size of the log bundles.
* access to vROPs master on port 443
* direct sftp access to sftpsite.vmware.com
Usage: ./standard_vrops_api.pl MASTER-FQDN
You have to provide the admin user password and the VMware SR number.
* the script collects environment information
* triggers a full log bundle
* checks the status of the log bundle creation
* copy log bundle from all nodes to Master
* download log bundle to local machine
* upload of log bundle to sftpsite.vmware.com
Screenshots and more details will follow in part 2.
If you would like to run a command remotely from the master node on all/only data/only remote collector nodes here is how you can do this.
On the master create a SSH key.
localhost:~ # ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Created directory '/root/.ssh'. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: ca:1a:a3:40:c1:5b:bb:e5:6f:b7:55:4c:bc:ce:b2:11 [MD5] root@localhost The key's randomart image is: +--[ RSA 2048]----+ | | |. . | | o . o | | + . o . | | o . . S E + | |. +. . = | |. .o.o + o | | . . +.. .. + | | . . ...... | +--[MD5]----------+
Copy the public key to all nodes.
localhost:~ # ssh-copy-id -i /root/.ssh/id_rsa.pub root@DATA-NODE
Now you have to created 3 files containing the following hosts (FQDN or IP) in /root.
datanodes.lst – contains only the data nodes and the master itself
rcnodes.lst – contains only the RC nodes
allnodes.lst – contains all nodes including master
vi allnodes.lst master.internal.xmsoft.de node01.internal.xmsoft.de node02.internal.xmsoft.de node03.internal.xmsoft.de rc01.internal.xmsoft.de
So if you would like to execute a command on all node you can run the following command.
for i in `cat /root/allnodes.lst`; do echo $i;ssh $i 'free -m'; done
localhost:~ # for i in `cat /root/allnodes.lst`; do echo $i;ssh $i 'free -m';echo ""; done master.internal.xmsoft.de total used free shared buffers cached Mem: 48267 47812 454 0 38 9547 -/+ buffers/cache: 38226 10040 Swap: 23999 0 23999 node01.internal.xmsoft.de total used free shared buffers cached Mem: 48267 47680 587 0 52 10031 -/+ buffers/cache: 37595 10671 Swap: 23999 0 23999 node02.internal.xmsoft.de total used free shared buffers cached Mem: 48267 47122 1145 0 38 9009 -/+ buffers/cache: 38074 10192 Swap: 23999 0 23999 node03.internal.xmsoft.de total used free shared buffers cached Mem: 48267 47961 306 0 58 11403 -/+ buffers/cache: 36499 11768 Swap: 23999 0 23999 rc01.internal.xmsoft.de total used free shared buffers cached Mem: 48267 47983 283 0 67 12307 -/+ buffers/cache: 35608 12658 Swap: 23999 0 23999
You can replace “free -m” with any other linux command.
Long time no post, I’m busy like hell onsite at my VMware customer. As I’m working as Onsite Senior Technical Support Engineer in VMware GSS.
As part of my work I started to create VMware KB articles and my first VMware KB got approved and published now. It’s about VMware vROPs initial redirect issue using browser with a different language then english.
Hopefully this will help other customers to resolve this minor issue with vROPs.