Skip to main content


Welcome to my Notes!

Hello Folks, My name is Gautam Johar. Actively working on VMware Cloud and keen to learn new and latest cloud technologies in market. Love to share my knowledge and experience with community. With this feeling, I started writing this blog. Try my best to share what I learn, what I know and what I could apply in my daily operations life. If you want, you can send me any amount at my UPI ID: gautamjohar-it@icici as a token of appreciation but only if my any post helped you.
Recent posts

XYZ stuff

This is dynamic post and I will keep stuff adding in this post. It has some out of syllabus stuff :) Arista | Command to transfer the tech-support bundle to FTP server copy flash:/EOS-4.18.2F.swi ftp:/user:password@ Explanation - user = username of ftp server account password = password of ftp server account = IP address of ftp server EOS-4.18.2F.swi = tech-support bundle file name  Powershell | How to encrypt a PowerShell script Reboot Windows with below PowerShell command  powershell.exe -encodedCommand cwBoAHUAdABkAG8AdwBuACAALQByACAALwB0ACAAMAAxACAA To create a digital clock Download the script and run in PowerShell EST Clock - CST Clock - IST Clock - Free Training and Certifi

vCD | How to disable auto-discovery for particular OrgvDC

Overview How to connect How to check existing setting How to update existing setting Overview I am creating a post on the subject because there is no clear cut article on this on web or might be I couldn't find straightforward process to do this. Basically, in vCD GUI there is option to disable or enable the auto-discovery for entire vCD system. On org level you cannot disable or enable auto-discovery but you can override this setting on OrgvDC level but with the help of Admin APIs. Hope you know about APIs but what is Admin APIs. This will automatically be answered in this post. Read this post carefully and I hope you will understand this. To know more about auto-discovery, you can check out this post by Tom Fojta. How to connect You cannot even check the auto-discovery status for OrgvDC from GUI. You need to use the API. I have already covered this in my previous posts to connect vCD in API tool. Have a look here How to check existing setting Once you are connected then

vCD | How to select ESP as Protocol in firewall rule of ESG

Overview How to connect How to extract edge firewall rules config How to update edge firewall rules config Overview This post is to share the process to change the existing available protocols in NSX-v Edge firewall rule (Not DFW). Available protocols are TCP, UDP, ICMP and Any on vCD's Edge Service Gateway page. See below image. My customer's demand was to set another protocol here which is ESP . I checked on GUI and it was clear that it is not possible from here so I could change it successfully from API queries. How to connect Before updating this firewall rule field, we must know that how to connect vCloud Director in any API tool. You can use Postman, Insomnia, ARC (Advance Rest Client) as a tool to connect vCD. You might need to disable SSL check before executing any api call. Below snippet is from Postman API tool. Once that SSL check is disabled then 1. Set Authorization as Basic Auth. See below image 2. Set header as mentioned below Accept application/*;version=32.

vCD | Upgrade from version 9.5 to 10.1.2

  Overview Planning In-place upgrade from vCD versin 9.5 to version 9.7 Best Practices for migration Migrate from vcd version 9.7(linux hosted) to vCD 9.7 appliance Known Errors during above deployment and migration Upgrade from version 9.7 appliance to Cloud Director 10.1 appliance Vendor Articles and References Overview It is three step process from version 9.5 to version 10.1.2. I would suggest to complete pre-requisites properly and it will be flawless process. You should check inter-operability first so that your other components can function with vCD versions you will be upgrading to. My experience says that during migration, first deploy the primary node → Transfer the DB → Replace custom certificates with self-signed certificates → Make sure your primary node up → Now add more nodes if you want to deploy multi-cell architecture → Change certificate.ks in standby nodes. When we talk about Primary and standby nodes then it is only for Postgre DB

Cloud Director | Error "Invalid User" during any operation with VM

Hi Guys, I am covering this error because I couldn't find any article on it and I had to open a case with VMware to resolve it. Luckily, my issue went into hand of a good guy and we could resolve it after around 5-6 hours call. So, I thought to cover this up as well. It can be beneficial for someone. In this article, I will not share exact solution rather I will tell you that why is it happening, I mean the root cause and then you have to raise a case with VMware. At least you will now know the root cause. Why not solution? because you will have to do some changes in vCloud Database and it is very critical to touch cloud director DB by your own and if you are not that expert. Error is below in image and impacted vCD version is 9.7 Reason: In my case, it happened because my customer deleted a user from LDAP server directly without transferring its objected from vCloud Director. Hope you know that when you delete any user in vCD, it ask you to transfer its objects. In this case, it w

vROPS | CPU Addition Automation

Hello Friends, In my previous post, I explained the cpu addition automation with PowerShell. Now, I got a request to explain the steps from vROPS as well. As I said that who has vROPS then it is better than doing it from PowerShell. vROPS is undoubtedly Enterprise level solution and I would say PS here is a trick to do it. Here you go... Pre-requisite CPU hot add must be enable for the VM(s) which you want to automate for. How to do it? User account you are using, must have sufficient access rights  Procedure 1. Login vROPS with admin privilege account. 2. Click on Alerts from top Menu. Which one? See below image- 3. Expand the Alert Settings and Click on "Alert Definition" and then click on Green + icon as shown below.  4. Fill the form ;) Name : Give any suitable name. I gave "_increase cpu count". Base Object : Select Virtual machine under vcenter adapter here. Type virt and it will auto highlight. Alert Impact : Impact: Efficiency (Because continuous CPU spike w

Automation | Add vCPU in VM if usage is more than 90%

Hi Guys, I got this question from one of the VMware group so I thought to add it in my blog and then share. Automation of CPU addition is not tough but adding it with condition can be little challenging. You can do it with vROPS very easily but if you don't have vROPS then I have solution for you. Pre-requisite is to enable hot add for CPU. Below is the base code-  Connect-VIServer vcenter_ip #to connect vcenter $VM = Get-VM VM_Name #to get the vm name #to convert the value in GHz. Default value comes in MHz $maxcpu = ($vm.Extensiondata.Summary.Runtime.MaxCpuUsage)/1024 #to convert number of cpu into GHz speed. Here you need to replace 2.80 as per physical host's core speed at your end $cpus = ($vm.Extensiondata.summary.config.NumCPU)*2.80 # to have percentage value $cpulimit = $cpus*90/100 #below is the hot add cpu command if ($maxcpu -gt $cpulimit){ get-vm $vm | Set-VM -NumCpu 2 -Confirm:$false #Current value is 1 and it will change it to 2 } Now the question is how to autom

Cloud Director | How it works with VM Snapshot

Hello Guys, Hope all are healthy and safe and enjoying the present. If you are healthy and safe and still not enjoying the life then start enjoying it :) This was today's Gyan! I wish that as VMware has this snapshot feature, life also should have this feature. When you feel that I am most content, successful and happiest then take snapshot and save it somewhere and in adverse days, revert the snapshot. Unfortunately, it doesn't happens. Because whatever happens in life, happens for once and get implemented permanently. No more Gyan! let's start the main discussion :D You will be surprised to know that this behavior has not documented by VMware either in form of KB article or documentation. There is one good documentation from Tomas Fojta which explain it but I thought to showcase this behavior in bit explained way and with snippets. Before demonstrating it with snippets, I would like to share that 1. vCenter works differently than vCD in terms of snapshots 2. When you tak