Category: VMware


vROPS contains a standard email plug-in that could be used to send standard alert notifications. Creating a new email template is not possible using the default web interface. VMware support offering a KB (2125759) to create a new email template by connecting to the master node and running series of commands, which is not a friendly way. Instead, using the vRealize Ops API makes it too easy to create and apply the new email template.

The Following Procedure explains the usage of the Postman (API development environment) to create a new email template.

Procedure:

1. Download & Install Postman.

2. (Optional) Disable SSL Certificate verification.

Postman> File > Settings

clip_image002

3. Connect to vRealize Ops API.

Setting the URL to connect to vRealize Ops API https://vROPS-Server/suite-api/api/notifications/email/templates

Under Authorization Select “Basic Auth” and Type the User Name & Password.

clip_image004

4. Create a new email template.

Use the raw editor to set the format and values of the template

POST suite-api/api/notifications/email/templates” using XML Format as follows:

Select Body > raw > Content Type: XML (text/xml)

clip_image006

Sample Request in XML (For new Alerts):

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ops:email-template html="true" xmlns:ops="http://webservice.vmware.com/vRealizeOpsMgr/1.0/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <ops:name>MyTemplate1</ops:name>
    <ops:template>$$Subject=[vROPS] {{AlertStatus}} Type:{{AlertType}}, Sub-Type:{{AlertSubType}}, State:{{AlertCriticality}}, Object Type:{{AffectedResourceKind}}, Name:{{AffectedResourceName}} New alert was generated at: {{AlertGenerateTime}} Info: {{AffectedResourceName}} {{AffectedResourceKind}}&lt;br&gt; Alert Definition Name: {{AlertDefinitionName}} Alert Definition Description: {{AlertDefinitionDesc}} Object Name : {{AffectedResourceName}} Object Type : {{AffectedResourceKind}} Alert Impact: {{AlertImpact}} Alert State : {{AlertCriticality}} Alert Type : {{AlertType}} Alert Sub-Type : {{AlertSubType}} Object Health State: {{ResourceHealthState}} Object Risk State: {{ResourceRiskState}} Object Efficiency State: {{ResourceEfficiencyState}} Symptoms:&lt;br&gt;{{Anomalies}} Recommendations: {{AlertRecommendation}} Notification Rule Name: {{FilterRuleName}} Notification Rule Description: {{FilterRuleDesc}} Alert ID : {{AlertId}} VCOps Server - {{vcopsServerName}} &lt;a href={{AlertSummaryLink}}&gt;Alert details&lt;/a&gt;&lt;br&gt;</ops:template>
</ops:email-template>

5. Query for the ID of the email template.

Send “GET suite-api/api/notifications/email/templates” to get the ID of the email template.

clip_image008

6. Query the current Alert Types and Subtypes.

Send “GET suite-api/api/alerts/types” and recorded the required “alertType” and “alertSubType”.

clip_image010

7. Define the condition of the email template.

Send “POST suite-api/api/notifications/email/templates/{id}/conditions”.

Replace the {id} with the actual value of the email template

 clip_image012

Sample Request in XML:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ops:email-template-condition alertSubType="15" alertType="7" xmlns:ops="http://webservice.vmware.com/vRealizeOpsMgr/1.0/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <ops:alertStatus>NEW</ops:alertStatus>
    <ops:emailAddress>user@domain.com</ops:emailAddress>
</ops:email-template-condition>

The new template will be applied on any new notification email based on the selected criteria.

References:

· vRealize Operations Manager API Programming Guide

· Configure E-Mail Alerts in vRealize Operations Manager

· Straight-Up Flying with the vRealize Operations REST API

· Postman – Sending API Requests

Advertisements

vRealize Suite Lifecycle Manager allows you to add and manage content direct from Marketplace, including vRealize Automation blueprints and OVAs, vRealize Operations Manager management packs, and vRealize Log Insight content packs, that you can download and deploy in your vRealize Suite environments.

Prerequisites:

  • Make sure that the vRealize Suite Lifecycle Manager is connected to the Internet.
  • My VMware credential is required.

Procedure

  1. Login to vRealize Suite Lifecycle Manager appliance, then click Marketplace.

clip_image002

2. Click the All tab.

  1. Click the Refresh Content from Marketplace button.

vRealize Suite Lifecycle Manager displays all content available for vRealize Suite in Market Place.

clip_image003

4. You may filter the list of available content by search terms or product, publisher, or technology by clicking Filter and select the appropriate filters.

clip_image005

5. Select the content pack, you may click View Details to read more about the downloadable content, including compatibility information, user ratings, and a list of related content.

clip_image007

6. Click Download to start downloading the content to vRealize Suite Lifecycle Manager.

7. Once the download completed, Click on Downloaded Tab then click Install.

clip_image009

8. Select the Datacenter & Environment and Click Install.

clip_image011

9. You may check the installation status by clicking on Requests Page.

clip_image013

clip_image015

That’s all folks!

Reference: Adding and Managing Content from Marketplace

The configure-network utility is used for performing various network configurations on the VMware virtual appliances including VCSA and vRealize Suite.

Just login to the virtual appliance using ‘root’ account and run the command: /opt/vmware/share/vami/vami_config_net

image

0) Show current Configuration

1) Exit

2) Default Gateway: Allows configuration of the default gateway for the network

3) Hostname: Hostname of the virtual appliance.

4) DNS: Two DNS servers can be configured as needed.

5) Proxy Server: Proxy Server & Port Number (http:// is prefixed by network utility).

6) IP Address for eth0: This can be either static (specifying the IP address and Subnet Mask) or dynamic (via DHCP).

Ref: Using the configure-network command-line utility in VMware vCenter Support Assistant (2042462)

vRealize Suite Lifecycle Manager allow you to download vRealize OVAs through “My VMware” registered account. The following steps could be followed to configure the Proxy server in case there is no direct internet connection.

Procedure:

1. Login to vRSLM using the ‘root’ account.

2. Run the following command to configure the Network/Proxy settings manually

/opt/vmware/share/vami/vami_config_net

clip_image001

3. Configure the Proxy Server Settings by entering the menu number (5)

Press (Y) and add the IP address/FQDN & Port Number of the Proxy server.

clip_image002

vRealize Suite Lifecycle Manager provides a single installation and management platform for all vRealize Suite products.

Once vRSLM Deployed, you will need to configure the following basic settings before downloading and installing/adding the rest of the vRealize products.

Procedure:

Login to vRealize Suite Lifecycle Manager appliance by using the URL https://IPaddress/vrlcm using the default admin account “admin@localhost” and Password “vmware”.

Note: If you are logging in Manager for the first time, reset the root password

image

Settings:

1. Common Configuration: Allow you to modify settings such as passwords, SSH settings, and configuration drift interval “the interval of time vRealize Suite Lifecycle Manager uses to collect data for configuration drift reports”.

image

Also, You may Restart or Schedule a restart of the Server

image

1. OVA Configuration: Allow you to select OVA Source location (NFS Share/Local /data/source) or download the OVA direct from VMware using “My VMware” registered account.

image

2. My VMware: Allow you download product OVAs through My VMware.

image

Once registered, you can start the download of the OVA Products.

image

3. Logs: select the level of information to collect and the number of log files to keep.

image

Also, you can trigger the download of the logs.

image

4. Update: Allow you to install updates to the vRealize Suite Lifecycle Manager appliance.

image

5. Generate Certificate: Allow you to generate a new SAN Certificate.

image

6. Proxy: If you are using a proxy server in your network, you must configure the proxy server in vRealize Suite Lifecycle Manager.

image

7. Identity Manager: VMware Identity Manager could be added as a source of identification to vRealize Suite Lifecycle Manage “Version 2.9.2 is the only version supported”.

image

References:

· vRealize Suite Lifecycle Manager 1.1 Installation, Upgrade, and Management

· VMware vRealize Suite Lifecycle Manager 1.1 Release Notes

· vRealize Suite Lifecycle Manager 1.x Programming Guide

VMware Workstation 14 Pro allows you to quickly scan for virtual machines on local folders as well as network shared storage and USB drives.

Procedure:

1. Select File > Scan for Virtual Machines.

clip_image001

2. In the Select a location to scan text box, enter or browse for a location, then click Next.

clip_image002

3. Select the virtual machines and the library node, then Click Finish.

clip_image003

Notes:

1. To use the same folder hierarchy in the library, click Match the file system folder hierarchy in the library.

2. If the location of the virtual machines you are adding to the library is on a remote server or a removable storage device, select the options in the Copy to local disk options dialog box that meet your needs.

Reference:

VMware Workstation Pro 14.0

vRealize Suite Lifecycle Manager is designed to streamline and simplify the deployment and on-going management of the vRealize product portfolio, throughout the product life cycle. vRealize Suite Lifecycle Manager relieves IT teams of day-to-day admin tasks by accelerating product installation and deployment, simplifying on-going management and configuration, and enabling best practice-based implementation.

image

Key Benefits:

  • Rapid Installation:

Simple and flexible deployment model with product and solution based installation supported. Automated environment replication and validation process.

  • Easy Ongoing Management:

Automated configuration management and drift management with health monitoring capabilities.

  • One-Click Upgrade:

Simplified upgrade and patching process with environment snapshot function.

  • Best Practice Implementation:

Easy alignment with VMware recommended reference architecture and validated design (VVD) through pre-defined settings.

Software Requirements

  • vCenter Server 6.0/6.5
  • ESXi version 6.0/6.5

Hardware Requirements

  • 2 vCPUs
  • 16 GB memory
  • 127 GB storage

Supported vRealize Suite Products

  1. vRealize Automation 7.2 or 7.3
  2. vRealize Orchestrator 7.2 or 7.3 (embedded with vRealize Automation)
  3. vRealize Business for Cloud 7.2.1, 7.3, or 7.3.1
  4. vRealize Operations Manager 6.5 or 6.6.1
  5. vRealize Log Insight 4.3 or 4.5

Deployment:

1. Login to vSphere Web Client (Flash), Select the Deploy OVF Template.

2. Browse to the path of the vRealize Suite Lifecycle Manager appliance OVA file.

clip_image002

3. Enter an appliance name and select a deployment location.

clip_image004

4. Select the host and cluster.

clip_image006

5. Review the template details.

clip_image008

6. Read and accept the end-user license agreement.

clip_image010

7. Select the storage and vDisk format (Thick Format recommended for Production environment)

clip_image012

8. From the drop-down menu, select a Destination Network and IP Protocol (IPv4)

clip_image014

9. Define the Host Name, Certificate configurations and IP settings.

clip_image016

10. Verify the settings and click finish to complete the deployment.

clip_image018

Note: the following command could be used to modify the network configuration after the deployment.

/opt/vmware/share/vami/vami_config_net

Login to vRealize Suite Lifecycle Manager

1. Login to vRealize Suite Lifecycle Manager appliance by using the URL https://IPaddress/vrlcm using the default admin account “admin@localhost” and Password “vmware”.

clip_image020

References:

· vRealize Suite Lifecycle Manager Solution Brief

· Blog: https://blogs.vmware.com/management/2017/09/vrealize-suite-lifecycle-management.html

· Release Notes: https://docs.vmware.com/en/vRealize-Suite/2017/rn/vrealize-lifecycle-manager-1-release-notes.html

· Documentation: https://docs.vmware.com/en/vRealize-Suite/2017/com.vmware.vrsuite.lcm.doc/GUID-5E1CB756-CE86-430D-89C0-DE3831C33738.html

· Download: https://my.vmware.com/group/vmware/details?downloadGroup=VRSLCM-10&productId=675&rPId=18268

· Use Case Deployment Using vRealize Suite Lifecycle Manager: https://pubs.vmware.com/vmware-validated-design-41/index.jsp#com.vmware.vvd.usecases-lcm-deploy.doc/GUID-4F7F9BCA-86B6-4E01-80C6-B4C83E6F35AA.html

VMware PowerCLI is a command-line and scripting tool built on Windows PowerShell and provides more than 600 cmdlets for managing and automating VMware products and features.

Online Installation using the PowerShell Gallery:

1- Determine Current PowerShell Version:

PS C:\> $PSVersionTable.PSVersion

2- Finds VMware PowerCLI modules from the PS online gallery

PS C:\> Find-Module -Name “VMware.Powercli” -AllVersions | Format-List Name,Version

3- Install VMware PowerCLI module that meets specified criteria from PS online gallery

PS C:\> Install-Module -Name VMware.PowerCLI -RequiredVersion 6.5.2.6268016 -Scope CurrentUser

4- Verify the Installation of the VMwarePowerCLI module that has been installed

PS C:\ > Get-Module -ListAvailable | where {$_.Name -like “VMware.Powercli”} | Format-List Name,Version 

5- Create desktop shortcut for VMwarePowerCLI module  using the target

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noe -c “Import-Module VMware.PowerCLI”

6- Update VMware PowerCLI to the latest version

PS C:\> Update-Module -Name VMware.PowerCLI

Offline Installation:

1- Download the VMware PowerCLI module using a computer that has internet access

PS C:\> Save-Module -Name VMware.PowerCLI -Path C:\PowerCLI

2- Copy and replace the individual VMware PowerCLI module folders to one of the following locations on the target computer

  • Current user usage: %userprofile%\Documents\WindowsPowerShell\Modules
  • All users usage: %SystemRoot%\System32\WindowsPowerShell\v1.0\Modules

References:

vRealize Operations Manager 6.5 focuses on enhancing product scalability limits and troubleshooting capabilities.

  • Additional monitoring capabilities: Adds ability to increase memory and increase the scope of monitoring within the same environment.
  • Automatic upgrade of Endpoint Operations Agents
  • Enhanced troubleshooting capabilities: Quickly correlates logs and metrics in context for any monitored object using Log Insight within vRealize Operations Manager.
  • Improved collaboration: Simplifies export and import of custom groups and eases dashboard sharing between different vRealize Operations Manager installations.

Install Software Upgrade

Prerequisites

· Create a snapshot of each node in your cluster.

· Obtain the PAK file for your cluster.

To update your vRealize Operations Manager environment, you need to download the right PAK file for the clusters you wish to upgrade from VMware

Notice: that only the Virtual Appliance clusters use an OS Update PAK file.

image

Procedure

1

Log into the master node vRealize Operations Manager Administrator interface of your cluster at https://master-node-FQDN-or-IP-address/admin.

2

Click Software Update in the left panel.

3

Click Install a Software Update in the main panel.

image

4

Follow the steps in the wizard to locate and install your PAK file.

a

If you are updating a Virtual Appliance deployment, perform the OS update.

image

This updates the OS on the virtual appliance and restarts each virtual machine.

image

b

Install the product update PAK file.

image

Wait for the software update to complete. When it does, the Administrator interface logs you out.

5

Log back into the master node Administrator interface.

The main Cluster Status page appears and cluster goes online automatically. The status page also displays the Bring Online button, but do not click it.

image

6

Clear the browser caches and if the browser page does not refresh automatically, refresh the page.

The cluster status changes to Going Online. When the cluster status changes to Online, the upgrade is complete.

Note: If a cluster fails and the status changes to offline during the installation process of a PAK file update then some nodes become unavailable. To fix this, you can access the Administrator interface and manually take the cluster offline and click Finish Installation to continue the installation process.

7

Click Software Update to check that the update is done.

A message indicating that the update completed successfully appears in the main pane.

image

Ref:

vRealize Operations Manager 6.5 Release Notes

https://pubs.vmware.com/Release_Notes/en/vrops/65/vrops-65-release-notes.html

Install a Software Update

https://pubs.vmware.com/vrealizeoperationsmanager-65/index.jsp#com.vmware.vcom.core.doc/GUID-0F212458-40BD-4C0E-9319-DB40DD7BC671.html

VCAP6-DCV Deployment Study Guide

This study guide covers all exam blueprint sections with additional Topics, KB and Articles to help prepare you for the VCAP6-DCV Deployment Exam.

Section 1 – Create and Deploy vSphere 6. X Infrastructure Components

Section 2 – Deploy and Manage a vSphere 6. X Storage Infrastructure

Section 3 – Deploy and Manage a vSphere 6. X Network Infrastructure

Section 4 – Configure a vSphere Deployment for Availability and Scalability

Section 5 – Configure a vSphere Deployment for Manageability

Section 6 – Configure a vSphere Deployment for Performance

Section 7 – Configure a vSphere 6. X Environment for Recoverability

Section 8 – Configure a vSphere 6. X Environment for Security

Download: VCAP6-DCV Deployment Study Guide.pdf