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.

HTML5 Client for SSH, VNC and RDP

If you run machines in a cloud or in a restriced environment where direct ssh is a security risk it could be a good way forward to use a HTML5 based solution. Guacamole is such an solution. It is a clientless remote access system. It is just required to install Tomcat to run the web application and a proxy deamon. The solution can connect to SSH (including key authentication), Windows RDP and VNC. As authentication backend they offer LDAP, Mysql and a file based solution.

I’m using Guacamole in multiple environments with an Apache in front for SSL. The tomcat is only available on localhost which improves the security. Furthermore it is possible to develop additional authentication providers. Based on that it should be possible to in corporate Guacamole in the single sign on solution which is available in most of the large companies.

VManage – Iphone App

I found a very good iphone app to manage a vmware environment. This app is called vmanage and is available for 2.39€ which is quite cheap.

You have to configure your vCenter or ESXi server in the following way.

Start testing … if you need a VPN connection start this first and after you have successfully opened the secure connection start VManage and press start.

If the connection to your VC/ESXi server is established you should see the following:

Don’t panic … click on the button right at the top and the app will read all your appliances from your VC/ESXi.

and on the Host tab you should see your ESX/ESXi hosts

I’m going to stop here as I only want to show how it works :-)