vROPs powershell module

If you would like to manage your vROPs using Powershell the following module could be helpful.

Quote:

PowervROps is a module written for PowerShell that can be used to access various elements of the vRealize Operations Manager API via PowerShell functions.

Link: https://github.com/andydvmware/PowervROps

Reference Architecture vRealize Operations Manager 6.5

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.”

Link: Reference Architecture vRealize Operations Manager 6.5

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 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.

Requirements

* Perl
* curl
* access to vROPs master on port 443
* direct sftp access to sftpsite.vmware.com

Instructions

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.

vROPs How to execute a command on multiple cluster nodes from Master

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

Example:

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.

vROPs initial redirect to vRealize Operations Manager Web UI only working with english as Browser language (2147594)

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.

https://kb.vmware.com/kb/2147594

Hopefully this will help other customers to resolve this minor issue with vROPs.