Monday, May 14, 2018

NSX-T Resources

Hi

Its been a while when I last blogged but here I am again with NSX-T.

Please go through the whole article here about getting anything for NSX-T


NSX-T - Reference Architecture

NSX-T - Reference Design

https://communities.vmware.com/docs/DOC-37591

Containers and container Networking with NSX-T



NSX-T Hands-on-Labs
HOL-1826-01-NET – VMware NSX-T – Getting Started (https://labs.hol.vmware.com/HOL/catalogs/catalog/681)
HOL-1826-02-NET – VMware NSX-T with Kubernetes (https://labs.hol.vmware.com/HOL/catalogs/catalog/681)


NSX-T White Paper

NSX-T Routing

Software Download

NSX-T                                                 https://my.vmware.com/web/vmware/details?productId=673&downloadGroup=NSX-T-210
PKS                                                     https://network.pivotal.io/products/pivotal-container-service#/releases/43085
PKS CLI                                              https://network.pivotal.io/products/pivotal-container-service#/releases/43085/file_groups/848
Kubectl CLI                                         https://network.pivotal.io/products/pivotal-container-service#/releases/43085/file_groups/847
Pivotal Ops Manager for vSphere       https://network.pivotal.io/products/ops-manager
Stemcell for vSphere                           https://network.pivotal.io/products/stemcellsz

NSX-T Official Documentation
(https://docs.vmware.com/en/VMware-NSX-T/index.html)


NSX-T Deployment Architecture with NAT 
NSX-T deployment with PKS using the Network Address Translation (NAT) topology. The following figure shows the NAT deployment architecture:


Early Access: VMware Validated Design for NSX-T in a Workload Domain

https://communities.vmware.com/thread/588236



NSX REST API Guide

https://www.vmware.com/support/nsxt/doc/nsxt_20_api.html 

Please provide an update to the article and I will update it at my earliest.

There are some other information also I am waiting on currently so I will update them as well once confirmed.

Thank you for your time and please share and care.

Have a nice day !!

Monday, May 8, 2017

NSX Firewall Rules using Application Rule Manager (ARM)

Hi All,

Recently I was engaged in a project for NSX Brownfield deployment and the requirement was to migrate the citrix environment to VMware Horizon View desktops.

So the challenge we had was to find out what is in use by the Citrix VMs in the existing environment from the service/port perspective so it will be easier to find out the communication path between twoVMs (for test for now) but it can be scaled all the way to the cluster level if needs to.

So there are few ways this can be achieved and I will cover the same in the series of 3 parts.

1) Using ARM (Application Rule Manager) which will be covered in this post
2) Using vRNI (vRealize Network Insight) which will be the next post
3) Using LI (vRealize Log Insight) which will be the last post of this series

So lets get started.

We are running the latest NSX Manager version 6.3.1.

Now I assume that the readers are familiar with NSX Manager and other components of VMware vSphere as I will be using the terminologies quite frequently and also the acronyms of the same.


So once you go to Networking and Security and you need to click on Flow Monitoring to see the option of application Rule Manager

Im showing here the screen shot of the same.





Then you need to generate the flows by doing certain activities to invoke the traffic to use particular ports / services.

So now lets dig deeper in to ARM.

lets say I want to know the flows between two VMs so I will start with New Session and then give a name to the session.

Next option is to select the source and here you have only two options to choose from as a Object Type

1) Virtual Machine

2) vNIC

So I will go with VM and provide a name of the VM.

Thats the only thing you need to provide and once you click OK then it will start gathering the flows from the VM.




Now click Stop to finish collecting the flows and once you highlight any flows under the View Flows option then you will see two options under Actions.





So either you can hide records or you can create a Firewall Rule based on the flow captured.

After I selected Create Firewall Rule, then I will go to the tab "Firewall Rules" and check what rule is created.




So before you publish the rule you can modify the Rule with necessary details e,g Source, Destination, Service, Applied To, Action and Log.

You can create multiple sessions and just select the drop down to see/view specific Flow details about a particular session.

Name the session properly so you can see what you have captured. In the above screen shot as you can see I've given the name tst-h-ic-blk which I provided to find out the icmp block for horizon and the rule is test rule.

You can keep the name with the function of the VM/server you are going to create the firewall rule for, so it will be easier to understand take actions on the particular rule set.





Once you create the rule then you need to go the Firewall Rule tab and publish it and it will be immediately come in to the effect. Which you can verify under Firewall section on the left.




So as you can see, it will be added as a new Section to give the name to the rule properly so it will be meaningful.

If there are more than one service you can see in the flow then click on the small gear icon on the right besides the services and you can see all the services captured.




Now from the product use perspective this will be a trouble when you have to find out the traffic patterns on a large environment (having no other options of at the cluster level or host level options) so you have only one choice of finding out per VM basis and then go thro each flow collected and create the rule/s.

May be I can suggest a feature request to VMware about incorporating other options when dealing with multiple items and have a single option to create Firewall rule / rules based on the collected flows. This can be based on the at the Data Center/ Cluster Level which can be considered in aggregation of all the flows captured.

It will help the Admin of the environment to allow the default communication ports which got captured after running the flow capturing for enough duration which will allow to capture all possible traffic coming from X and going to Y or Z.

Hoping that in next version this improvement will get incorporated to ease the process of utilizing only ARM to recommend the rules and go with the same.

Hope this helps.

In Next post I will cover vRNI to find out how you can utilize the same to create Firewall Rule/s.

Please share and care.

Thanks for your time.

Monday, April 3, 2017

vMotion of NSX EDGE gotcha

virtualpatel.blogspot.com: vMotion of NSX EDGE gotcha: Hi, Recently I was working on a brown field deployment of NSX and ran into an issue where we were not able to connect to the DHCP server ...

vMotion of NSX EDGE gotcha

Hi,

Recently I was working on a brown field deployment of NSX and ran into an issue where we were not able to connect to the DHCP server from a Logical Switch (which means the VMs are not getting IP addresses from DHCP server) which was a key.

If we put the VM on a regular VDS dvportgroup it gets the DHCP IP correctly.

So we started looking in to the issue further and engage VMware GSS to look in to the issue.

During the troubleshooting we had to decide the location of Edge and try moving it to a different host to verify if its not hitting any uplink issue.

As we were using vCenter Web Client and as soon as we tried migrating (vMotion) it to another host and we were prompted with the NIC mapping page. Where we need to map each interface exists on the NSX Edge to a corresponding portgroup or dvportgroup. Now we have only limited number of portgroups/dvportgroups existed on the Cluster and we could not map all the internal interfaces (which gets created by default on the Edge appliance).

The source were listed as "None" so not sure where to map them.

So we ended up using the vSphere client to migrate the Edge appliance, and boom....it got migrated with no notification about mapping all the interfaces. Just select the destination ESXi host and hit "Finish", and we are done.

We were then moved into the next phase of troubleshooting but the above just put me in a dilemma that the behaviour of Web Client is a bug or is it by design.

Interested in getting the answer from VMware so that I can clarify that with the existing and future customers on why to use vSphere client and what is the alternate methods to use when the Fat/Thick client will completely got removed by VMware??

Please leave the comment and share this.

Thanks for your time.




Tuesday, January 3, 2017

vRA and SCCM Timeout Issue

virtualpatel.blogspot.com: vRA and SCCM Timeout Issue: Hi, OK here I am again. Been away for few months working on various projects including vRA, vROPS, SRM, VIN, vRB etc.etc. And one of the...

vRA and SCCM Timeout Issue

Hi,

OK here I am again. Been away for few months working on various projects including vRA, vROPS, SRM, VIN, vRB etc.etc. And one of them is MSB. Yes its a new term I've learned and worked on with one of the Federal client along with VMware NSBU. 

But here today I'm going to discuss about the timeout issue with vRA and SCCM deployment.

Now before we begin let me give you the overview of what we are dealing with.

In my recent project Im working with VMware on a vRA Distributed architecture with a little bit of vRB and also integrating the SCCM on which the client is heaving depending on for VM/s deployment. 

Mainly these are windows 2008 R2 Std and Windows 2012 R2 Std VMs. They are leveraging SCCM to do all major tasks such as putting patches, updates, updating AV signatures, putting legacy apps, some monitoring apps such as WhatsupGold and Logrhythm etc. etc.



So once the VM is built in vRA its been handed over to SCCM for further provisioning and there is a default time out setting in vRA which is only 15 minutes.



So as you can see the default setting for SCCM machine registration timeout is 5 minutes. So now
lets assume you are doing few tasks using SCCM e.g. Installing OS, putting patches, doing AV updates, putting legacy or custom applications or softwares etc. etc. then you need time to finish all those tasks in the background on SCCM side. With having 5 minutes timeout vRA wont know what is the status of the SCCM VM as the whole process may not be finished and the gugent might not be updating vRA with any status at all so you may see the process/task in vRA as its still running and not completed and eventually the task will fail as no signal received by vRA in time (which is 5 minutes). So to avoid that you need to increase that time out setting by enough time that you can finish the required tasks on SCCM side before hitting the timeout window of vRA. We had to keep it at 45 minutes (screen shot below) on a safer side which accounts few reboots of the OS along with other tasks listed above.




After doing the above change we were started receiving finished tasks in vRA successfully which were handled by SCCM then gugent updates vRA server with appropriate status.

I will cover the SCCM and vRA in one of my upcoming blogs very soon.

Hope this will help integrating SCCM and vRA.

Please share and care.

Thanks for your time.


Friday, May 13, 2016

[Updated] Request to extend a chance for VCDX5

virtualpatel.blogspot.com: Request to extend a chance for VCDX5: Hi, I am taking the Liberty here to request VMware Education to extend the chance for Appearing a VCDX 5 Defense after the schedule of Oc...

Tuesday, May 3, 2016

New VMware NSX Licensing Scheme is released

virtualpatel.blogspot.com: New VMware NSX Licensing Scheme is released: Hi all, VMware just announced the new NSX Licensing scheme so please read the FAQ here which has all the preliminary information without...

New VMware NSX Licensing Scheme is released

Hi all,

VMware just announced the new NSX Licensing scheme so please read the FAQ here which has all the preliminary information without even getting panicked and also get in touch with your sales person (assigned to your account) which will give you the better idea.




So by looking at this the most suitable one for any small to mid size organization is the "Advanced" version which has mostly all the bells and whistles except the multi site and Cross VC functionalities.

Its a simple math when making the decisions on what the organization wants. If its ready to spend money to connect their geographically dispersed locations then Enterprise edition is the only choice.

To promote open stack the standard Edition is having the support for it. Home Lab people might have to go for the Standard Edition depending on the price of it as I'm sure it wont be affordable to choose the Advanced or Enterprise version.

IPSEC and SSL VPN  are part of Enterprise which is rising a question on just using L2VPN when normal organization have staff people who are connecting remotely using their MAC/WIN/*NIX machines. So even for that feature they need to go for Enterprise version. Hoping that this should be part of Advanced and NOT Enterprise but lets see what the future might hold.

All the remote features are part of Enterprise which is nice as if you don't need it you don't buy them.

There is no indication on pricing done as the pointer was set to contact the Sales person but even a hint should be fine on the pricing model or even if one has to use just one feature from other edition then what is the cost involved in that (rather than switching from one edition to another completely).

Home Lab people will surely need most of the features to test and try out various scenarios but not sure what will happen in that area unless the person is a vExpert, then its a different story.

This granular model looks adaptive but the pricing model will tell us more on how people feel about it. I just heard that it will be based on 1K per socket but I would not go with it unless it come from a valid source or from VMware itself. So hoping something should be publicly available which will give an idea to the large audience.

Share and care !

Thanks for your time.










Thursday, March 24, 2016

Another VCIX-NV Fiasco at Pearson Vue

virtualpatel.blogspot.com: Another VCIX-NV Fiasco at Pearson Vue: Hi All, I blogged about my first experience in Jan. 2015 after appearing for this VCIX-NV Exam at Pearson Vue test center. Just came ...

Another VCIX-NV Fiasco at Pearson Vue

Hi All,

I blogged about my first experience in Jan. 2015 after appearing for this VCIX-NV Exam at Pearson Vue test center. Just came back home after having a very disappointing exam experience at Pearson Vue Exam center and thought to just write about it to have it properly fixed by both parties.

Today I went for VCIX-NV (VCXN610) after confirming my appointment yesterday. Drove 30 mins to get there and finished the security procedures on time. Proctor took me inside the exam room and logged me in for the exam and I've started the exam and first surprise, "can't even login to Control Center"...booooom. This happened to me for the first time as appeared for the other similar exams before  (e.g. VCAP exams), but never had this exact issue.

Soon after reading the error, raised the hand,and proctor came and he stopped the exam, called the support person right away.  After 10 mins of remote troubleshooting, they gave a green signal to proceed as its been checked by the support person so Proctor gave me the credit of lost time and I've started the exam again and same thing happened again, the RDP connection was not setting up to the Control Center and getting the same error  "Contact the Testing center administrator or VSS administrator". Called the proctor again.

As the testing was NOT done properly by the support person (who was from Pearson), now Pearson Vue support person engaged VMware Certification support person on the phone. He tried and couldn't fix the powercli error and decided to move me to another station and start the exam again. 
I started on a different station and it took 20-30 seconds just to connect to Control Center through RDP session (or their jump box). Once logged in opened firefox browser and opened few tabs to work optimally to do multitasking. But later realized that was a bad move.

Latency was all over the place and also a square grid was coming up on the whole screen which was not clearing even after refreshing the screen or changing tabs in the browser. The whole connection is so sluggish and feels like its running on 14.4 Kbps modem connection as you can see the page is loading frame by frame. Upon asking Pearson Vue representative, he mentioned that that is being handled by VMware Certification and its in their Lab Latency so they cant do anything locally about it. Even when switching between the tabs n the browser the screen does NOT even load within few seconds. I did not expect this and I am sure if I continued with it and could not even finish 5 questions within the whole Exam Time.

So I called the proctor and he stopped the lab again. He called the Pearson support again and who in turn engaged VMware support. The whole circle started again and no "corner" of resolution found as its a circle.

And while waiting to hear back from the support staff, it's already more than an hour from the start time and I could not even connect properly to the Lab Infrastructure, so they gave me the incident number and asked to reschedule the exam. Glad I did not have to pay for the exam again as there is a policy they have where, if they cant fix the technical issue within 30 mins then, attempt is not considered and candidate can appear for that exam again at the next available schedule.

Now the trouble not stopped here..called up Pearson Vue after coming out of the center as they dont want to call the scheduling staff and I could not even call them from within the center. I just dont wanted to keep the matter in limbo after leaving the testing center but the proctor suggested that with the incident number the scheduling co ordinator should be able to pull up your details and help you reschedule the exam. So I called up and got a person who informed me that their system is in under maintenance, please try calling again after 15 mins.

Tried calling 4 times on 15 mins interval but and their system was still down and no one could help me to reschedule as they don't have ETA from their IT Team. Finally decided to call once reached (after 45 mins of drive) home, and now on hold for more than 1.45 mins and yet no one is available to take the call. Still listening to their hold music. 

What a latest technology Pearson is having that no outbound calls allowed to notify the caller on when the system will be in working status or even to just send an email to the caller that system is back up so please call in to reschedule. Now that the call center moved to India, not sure how they are going to attend the callers after their system maintenance with increased inbound calls.

No IVR notification about "system maintenance for exam rescheduling" so that the caller can just listen to it and hung up without wasting time to get the rep on the phone and then he verifies the identity and eventually states the system is down.

And on top of that each time you call you must listen to their 3-4 mins of greeting and there is no way to skip it either. So looks like Pearson Vue believes, everyone else have free time so really no care been taken. Recent changes of merging with VMware Certification, not sure how the portal looks like or which features are available but will find out soon once they finished the merge as still don't see "Manage Account" or "Schedule Exam" buttons under myVMware portal.

Now in this whole waiting game. my personal schedules are totally messed up and which affected my daughters class schedules too and I'm sure Pearson won't do anything about it. If they really care then someone may call and at least discuss about the hassles I had to go through and offer something to make a better future experience/service. And I am sure its not a lot I am asking :-).
Already ranted once about the latency in 2014 when I gave the exam for the first time. But both, Certification team at VMware and Pearson have to really think about some solid solution as I'm sure this is not the first time happening or I'm not the only one faced the issues multiple times with exam scheduling/rescheduling and Lab latency.

Its hard to believe that this is not even 1% of what they are able to do with the technology available on their hands in today's world.

I am going through just plain simple "pain". Irony is even after a year, we are still at the same status with Pearson Vue and nothing improved from the user experience perspective nor in the area of stability of the lab environment. They point to VMware when the issue occurs, so my request here is to sort this out for a vast community out there who are using their technology to make the career and sustain the family or for any other valid/genuine purpose. Please respect people time and money they are investing and don't let them go through this situations as I am sure this can be solved by putting necessary efforts and if required, I am ready to provide feedback and can also request other members of VMware community to come up and do the same.

At this time still waiting on the phone after 2.30 hours of hold time as need to get this exam rescheduled and not sure which date will be available at the soonest. Hopefully by tomorrow I will get someone as cant hold overnight :-).

===

Update:
To my surprise I just now received the Exam Score Report even if I did not attempt a single question, and still was able to score 100 marks.


This doesn't look right to me and needs to be fixed.

Update (at 3.15 p.m. CST):

So a responsible Program Manager of Pearson called me today morning who read this blog post too, and assured to take care of the issue through his back channel at VMware.

In the mean time as per their policy I had to contact VMware Team who issued me a Voucher and I rebooked the Exam for April at the same center. So hoping VMware will fix the issue specifically for this exam before that day by doing required testing and investigation.

Thank you for your time.

Please share and care !

Friday, February 5, 2016

vExpert 2016

virtualpatel.blogspot.com: vExpert 2016: Hi, By now the news is already spread in the community and everyone knows who is the vExpert for 2016. I am really thankful to the VMwa...

vExpert 2016

Hi,

By now the news is already spread in the community and everyone knows who is the vExpert for 2016.

I am really thankful to the VMware Community and the Program Manager Corey Romero (@vCommunityGuy) who made this possible with his and his team's enormous efforts every year.

https://blogs.vmware.com/vmtn/2016/02/vexpert-2016-award-announcement.html

One can visit the above link and check out who made it to the list.

This is 4th year for me and its really amazing to see how much the program grown up.

With more than 1300+ vExpert this year which is making the program at the top.

Wishing all the vExpert Congratulations and good luck for next year.

Share and care !!

Cheers.






Friday, January 29, 2016

Cisco Champion 2016

virtualpatel.blogspot.com: Cisco Champion 2016: Hello, I was just working on something and suddenly saw an email landing in my Inbox with a Title of " Welcome 2016 Cisco Champion...

Cisco Champion 2016

Hello,

I was just working on something and suddenly saw an email landing in my Inbox with a Title of

"Welcome 2016 Cisco Champions!"



So for a second, I thought the result was not announced so what it should be ?

Curiosity drove me to open the mail and indeed it was the email from the Cisco Community Program Manager and the Team.

Brandon Prebynski (@prebynski), Program Manager

Lauren Friedman (@lauren), DC, EN, Cloud, IOT Lead

Kim Austin (@ciscokima), Collaboration Lead

Brian Remmel (@bremmel), Security Lead


I was awarded for 2015 and now for 2016 so this is my 2nd year getting this Award.

I am really thankful to the Team and the Program Manager Brandon, for giving me such recognition and hopefully continue to contribute more and more for the community.

Wish all other Cisco Champions who made to the list of 2016.

I may know some and may not others but when it comes to the community contribution, it really doesn't matter who, where, why, how?

I am doing similar contribution for other communities as well which is keeping me strong and helping people out is a major objective here which helps me being consistent.

Hopefully see all Cisco Champions some time at some event and wishing everyone Good luck for 2017.

Cheers...

Share and care !

Thursday, December 17, 2015

vCenter Server Maintenance Best Practices

virtualpatel.blogspot.com: vCenter Server Maintenance Best Practices: vCenter Server Maintenance Best Practices I was trying to find best practices  for vCenter Server maintenance which shou...

vCenter Server Maintenance Best Practices




vCenter Server Maintenance Best Practices

I was trying to find best practices  for vCenter Server maintenance which should include everything and not just the database. Looking through online public documentation from VMware and other sources I found the following information and compiled in this post. If you feel anything is missing or needs an update then please reach out to me using any available channel and I will modify/update the post.

While you are at this, you should look at the Database Maintenance plan (if only you are not having anything setup currently) by visiting my friend and a blogger Erik Bussink's (@ErikBussinkblog post.

Now you can change the frequency depending on the requirements you might have so its not hard coded values posted here. Organization to organization the values may change.

Virtual Center Roles (Yearly)

• VirtualCenter Administrators: super users who have all privileges on all systems
• Virtual Machine Administrators: administrators on a subset of servers; can perform all operations on their servers, including VM provisioning, resource allocation and VMotion
• Virtual Machine User: access to a subset of VMs; can use remote console, perform power operations, view performance graphs, but cannot create/delete VMs, set resources or move VMs.
• Read-Only User: can only view information on a subset of VMs
• Privilege Management
• Administrators on the Windows system running the Management Server are automatically assigned VirtualCenter Administrator privileges
• VirtualCenter Administrators can delegate privileges to other users by accessing an existing ActiveDirectory or Domain Controller

Best Practices for Templates (Quarterly)

Virtual machine templates are very powerful and versatile. The following best practices, culled from many different areas of IT infrastructure management, will enable you to derive the most value from templates and avoid starting ineffective habits.

• Install Antivirus software and keep it up to date: In today’s world of viruses that are hyper efficient at exploitation and replication, an OS installation routine has to merely initialize the network subsystem to be vulnerable to attack. By deploying virtual machines with up to date antivirus protection, this exposure is limited. Keep the antivirus software current every month by converting the templates to VMs, powering on, and updating the signature files.

• Install the latest operating system patches, and stay current with the latest releases: Operating system vulnerabilities and out of date antivirus software can increase exposure to exploitation significantly, and current antivirus software isn’t enough to keep exposure to a minimum. When updating a templates antivirus software, apply any relevant OS patches and hotfixes.

• Use the template notes field to store update records: A good habit to get into is to keep information about the maintenance of the template in the template itself, and the Notes field is a great place to keep informal update records.

• Plan for ESX Server capacity for template management: The act of converting a template to virtual machine, powering it on, accessing the network to obtain updates, shutting down, and converting back to template requires available ESX Server resources. Make sure there are ample resources for this very important activity.

• Use a quarantined network connection for updating templates: The whole point of keeping antivirus and operating systems up to date is to avoid exploitation, so leverage the ability of ESX Server to segregate different kinds of network traffic and apply updates in a quarantined network.

• Use the same datastore for storing templates and for powered on templates: During the process of converting templates to virtual machines, do not deploy the template to another datastore. It is faster and more efficient to keep the template’s files in the same place before and after the update.

• Install the VMware Tools in the template: The VMware Tools include optimized drivers for the virtualized hardware components that use fewer physical host resources. Installing the VMware Tools in the template saves time and reduces the chance that a sub optimally configured virtual machine will be deployed to your production ESX Server infrastructure.

• Use a standardized naming convention for templates: Some inventory panel views do not offer you the opportunity to sort by type, so create a standard prefix for templates to help you intuitively identify them by sorting by name. Also, be sure to include enough descriptive information in the template name to know what is contained in the template.

• Defragment the guest OS filesystem before converting to template: Most operating system installation programs create a highly fragmented filesystem even before the system begins its useful life. Defragment the OS and convert to template, and that way you won’t have to worry about it again until the system has been in production for a while.

• Remove Nonpresent Hidden Devices from Templates: This problem will likely occur only if you about certain devices, notably network devices, even after they are removed from the system. Refer to Microsoft TechNet article 269155 for removal instructions

• Use Folders to Organize and Manage Templates: Folders can be both an organizational and security container. Use them to keep templates organized and secure.

• Create Active Directory groups that map to VirtualCenter roles: Rather than assign VirtualCenter roles to individual user accounts, create dedicated Active Directory groups, and place user accounts in those groups.

• Store templates on a shared VMFS volume on the SAN (dedicated LUN) and enable access to the SAN-based template volume from all ESX servers

• SAN templates may only be provisioned to target hosts connected to SAN

• The VC Mgmt Server’s local template repository can be used to provision VMs onto ESX Servers that are not connected to the SAN

• If template deployments to a LUN fail due to SCSI reservations, increase the “Scsi.ConflictRetries” parameter to a value of “10” through the Advanced Settings menu

Roll up Jobs (Quarterly) 

1.     Ensure that the jobs listed in this table are installed:

Note: For managing an Oracle vCenter Server database, you can use Oracle SQL Developer and for managing a DB2 vCenter Server database, you can use DB2 Control Center.


Rollup Job
Corresponding File
Event Task Cleanup myDB
job_cleanup_events_DB.sql
Past Day stats rollup myDB
job_schedule1_DB.sql
Past Month stats rollup myDB
job_schedule3_DB.sql
Past Week stats rollup myDB
job_schedule2_DB.sql
Process Performance Data myDB
job_dbm_performance_data_DB.sql
Property Bulletin Daily Update myDB

Note: This job only applies to vCenter Server 5.x
job_property_bulletin_DB.sql
Topn past day myDB
job_topn_past_day_DB.sql
Topn past month myDB
job_topn_past_month_DB.sql
Topn past week myDB
job_topn_past_week_DB.sql
Topn past year myDB
job_topn_past_year_DB.sql

2.     

where DB is db2mssql, or oracle.


Note: Ensure that myDB references the vCenter Server database and not the master or some other database. If these jobs reference any other database, you must delete and recreate the jobs. 


Stored Procedures (Quarterly

Verifying the stored procedures installed in vCenter 5.5 and 6.0
To check the stored procedures installed in vCenter Server 5.5 and 6.0 using MS SQL:
1.     Navigate to vCenter DB > Programmability > Stored Procedures.
2.     Ensure that the stored procedures listed in this table are installed:
Stored Procedure
Corresponding File
calc_topn1_proc
calc_topn1_proc_DB.sql
calc_topn2_proc
calc_topn2_proc_DB.sql
calc_topn3_proc
calc_topn3_proc_DB.sql
calc_topn4_proc
calc_topn4_proc_DB.sql
cleanup_events_tasks_proc
cleanup_events_DB.sql
clear_topn1_proc
clear_topn1_proc_DB.sql
clear_topn2_proc
clear_topn2_proc_DB.sql
clear_topn3_proc
clear_topn3_proc_DB.sql
clear_topn4_proc
clear_topn4_proc_DB.sql
delete_stats_proc
delete_stats_proc_DB.sql
insert_stats_proc
insert_stats_proc_DB.sql
l_purge_stat2_proc
l_purge_stat2_proc_DB.sql
l_purge_stat3_proc
l_purge_stat3_proc_DB.sql
l_stats_rollup1_proc
l_stats_rollup1_proc_DB.sql
l_stats_rollup2_proc
l_stats_rollup2_proc_DB.sql
l_stats_rollup3_proc
l_stats_rollup3_proc_DB.sql
load_stats_proc
load_stats_proc_DB.sql
load_usage_stats_proc
load_usage_stats_proc_DB.sql
process_license_snapshot_proc
process_license_snapshot_DB.sql
process_performance_data_proc
process_performance_data_DB.sql
purge_stat2_proc
purge_stat2_proc_DB.sql
purge_stat3_proc
purge_stat3_proc_DB.sql
purge_usage_stat_proc
purge_usage_stats_proc_DB.sql
rule_topn1_proc
rule_topn1_proc_DB.sql
rule_topn2_proc
rule_topn2_proc_DB.sql
rule_topn3_proc
rule_topn3_proc_DB.sql
rule_topn4_proc
rule_topn4_proc_DB.sql
stats_rollup1_proc
stats_rollup1_proc_DB.sql
stats_rollup2_proc
stats_rollup2_proc_DB.sql
stats_rollup3_proc
stats_rollup3_proc_DB.sql
upsert_last_event_proc
upsert_last_event_proc_DB.sql

Where, DB is db2mssql, or oracle.  
If any of these jobs or stored procedures are missing, you must install them by running the corresponding .sql file on the vCenter Server database using a database management tool such as SQL Management Studio. For more information on running these .sql files, see sectionAdding the SQL Server Agent Jobs in Updating rollup jobs after the error: Performance data is currently not available for this entity (1004382)

Notes

  • The upsert_last_event_proc procedure is not required for the Oracle database.
  • If there is a custom schema, the following command also needs to be ran:

    alter schema schema_name transfer dbo.stored_procedure_name
All SQL scripts are located in the vCenter Server installation folder:
  • vCenter Server 5.1 and 5.5: C:\Program Files\VMware\Infrastructure\VirtualCenter Server\sql.  
  • vCenter Server 6.0: C:\Program Files\VMware\vCenter Server\vpxd\sql
For more information on commonly used vCenter Server installation paths, see Common vCenter Server and vSphere Client Windows paths (1028185).


Ensure that the vCenter Server database is the target before executing the SQL file.


Growth of a Database (Quarterly)

Determining what is growing in the vCenter Server database

The vCenter Server database is a complex database and there are several areas that can cause problems. Out of the many tables in vCenter Server, there are very few which accumulate data during regular operation. These tables do accumulate data during regular operation:
  • vpx_hist_stat1 to vpx_hist_stat4 in vCenter Server 4.x and vpx_hist_stat1_n to vpx_hist_stat4_n in vCenter Server 5.x – These tables store the collected performance data information.
  • vpx_sample_time1 to vpx_sample_time4 – These tables store the reference time frames for the performance data in the vpx_hist_stat tables.
  • vpx_event and vpx_event_arg – These tables store the event information from the Tasks and Events tab in vCenter Server.
  • vpx_task – stores the task information from the Tasks and Events tab in vCenter Server.
This small subset of the tables in vCenter Server account for the majority of cases that are showing substantial growth in the database. If any other table is showing growth, file a support request with VMware Technical Support and note this KB Article ID in the Problem Description. For more information, see How to Submit a Support Request.
Microsoft SQL
If you are using Microsoft SQL, there are three ways to validate where space is being consumed within a Microsoft SQL database. Select one method.
  • From the SQL Management Studio interface, navigate to the database, right-click the table, and select Properties. See the Data space in the Storage section of the screen.
  • Manually run this SQL query against the vCenter Server database:

    select object_name(id) [Table Name], 
    [Table Size] = convert (varchar, dpages * 8 / 1024) + 'MB' 
    from sysindexes where indid in (0,1) 
    order by dpages desc

    This query lists all tables in the vCenter Server database by table size in MB.
  • Manually run this SQL query for individual tables:

    exec sp_spaceused tablename;

    See the data column of the output. For example:

    Note: Querying the database one table at a time may be time consuming. To query all tables simultaneously, use this SQL Query:
EXEC sp_MSforeachtable @command1="EXEC sp_spaceused '?'"

Growth of Transaction Logs (Quarterly)

vCenter Server Transaction log growth when using Microsoft SQL

The Transaction log records all transactions that occur on the database.
Depending on the recovery model that is set on the database, you may notice growth of the transaction log. The recovery model for the database can dramatically affect database growth for any database.
There are three different recovery models for Microsoft SQL:
  • Full Recovery Model

    This model logs all transactions, which makes full failure recovery possible. It provides the greatest amount of recovery potential in case of a failure that impacts the database, but it uses the most disk space of all of the models.
  • Bulk-Logged Recovery Model 

    This model logs all transactions except for certain large scale operations such as Index creation or bulk load operations. A full backup is typically performed after a large insert of information, but this model does not consume as much disk space.
  • Simple Recovery Model 

    This model logs all transactions, but after the transaction is complete, it is deleted. It uses the least amount of disk space of all the models, but it also offers the least amount of recovery. As such, regular full backups need to be taken.
By default, Microsoft SQL uses the full recovery model for the databases. Due to the large number of transactions with the vCenter Server database, VMware uses a warning during the installer that indicates the recovery model that is set in the database. For example:

Regardless of the recovery model, VMware recommends that you take regular backups of the database and that a truncate of the transaction log is performed at the same time as the backup. This regular maintenance prevents the size of the transaction logs from posing an issue to the amount of disk space available to the system. For more information on the transaction logs and how to shrink them, see:


Reducing the size of SQL Database (Quarterly)
Reducing the size of the vCenter Server database
To reduce the size of the vCenter Server database:

Warning: This procedure erases all historical data. If you want to retain some historical performance data instead of deleting all of it, see Purging old data from the database used by vCenter Server (1025914) or Purging old data from the database used by VirtualCenter 2.x (1000125).


Note: The below steps are not applicable to vCenter Server 5.1 and 5.5. To truncate performance data on the vCenter Server 5.1 and 5.5 database see the sections, Truncating all performance data from vCenter Server 5.1.


To reduce the data perform these steps:
1.     If your database is Microsoft SQL Server, Oracle or PostgreSQL, obtain the vCenter Server database password.
For information, see the Obtain the vCenter Server database password section in this Knowledge Base article.
2.     Stop the vCenter Server service.

o    If you installed vCenter Server on a Windows machine: 


a.     Log in as an administrator to the Windows machine on which vCenter Server is installed.
b.     Navigate to Start > Administrative Tools > Services.
c.     Right-click VMware VirtualCenter Server and select Stop
3.     Back up the vCenter Server database. 

o    For MS SQL, see your database vendor's documentation.


4.     Run the script for your database.
As vCenter Server is installed on a Windows machine:
1.     Log in as an administrator to the Windows machine on which vCenter Server is installed.
2.     Locate the vcdb.properties file and open the file by using a text editor.
o    For vCenter Server 5.1 and 5.5, the file is located in the C:\ProgramData\VMware\VMware VirtualCenter\ folder.
o    For vCenter Server 6.0 the file is located in the C:\ProgramData\VMware\vCenterServer\cfg\vmware-vpx\ folder.
3.     In the vcdb.properties file, locate the password of the vCenter Server database user and record it.
For information, see the Run the script for your database section in this KB article.
                The scripts contain three main parameters:

         For Microsoft SQL Server:


1.     Log in to the Microsoft SQL Server machine as an administrator.
2.     Download and save the 2110031_MS_SQL_task_event_task.sql script attached to this Knowledge Base article.
3.     Open the command prompt and run the script:
sqlcmd -S IP-address-or-FQDN-of-the-database-machine\instance_name -U vCenter-Server-database-user -P password-d database-name -v TaskMaxAgeInDays=task-days -v EventMaxAgeInDays=event-days -v StatMaxAgeInDays=stat-days -i download-path\2110031_MS_SQL_task_event_stat.sql
  • TaskMaxAgeInDays
All tasks older than TaskMaxAgeInDays day are deleted.
  • EventMaxAgeInDays
All events older than EventMaxAgeInDays day are deleted.
  • StatMaxAgeInDays
All statistics older than StatMaxAgeInDays day are deleted.
The possible values for all of the parameters are:
-1
Skips the respective historical data deletion. For example, TaskMaxAgeInDays = -1, means that no task records will be deleted.
0
Deletes all historical data for the respective component. For example, TaskMaxAgeInDays = 0, deletes all task records.
1 and more
Deletes data older than the number you enter, in days. For example, TaskMaxAgeInDays = 10, leaves the task records gathered within the last 10 days and deletes all of the records gathered before that.

Rebuilding indexes (Quarterly)

To rebuild the vCenter Server database indexes:
1.     Download and extract the .sql files from the 2009918_rebuild.zip file attached to this article. 

Note: For a vCenter Server 5.1 and 5.5 databases, download and extract the .sql files from the 2009918_rebuild_51.zip file attached to this article.

2.     Connect to the vCenter Server database, for example using Management Studio for SQL Server or SQL*Plus for Oracle.
3.     Execute the .sql file to create the REBUILD_INDEX stored procedure:

o    Oracle: rebuild_indexes_oracle.sql or rebuild_indexes_oracle_51.sql
o    SQL Server: rebuild_indexes_sql.sql or rebuild_indexes_sql_51.sql


4.     Execute the stored procedure for either Oracle or SQL Server that was created in the previous step:

execute REBUILD_INDEX


Backup of vCenter SSL Certificates (Yearly)
· Windows 2003: %ALLUSERSPROFILE%\Application Data\VMware\VMware VirtualCenter
· Windows Vista and 2008 Server: %ALLUSERSPROFILE%\VMWare\VMware VirtualCenter


Windows OS Patches (Monthly)
Windows Critical and Security Patches are installed after taking the snapshot of the Virtual machine.
Test all the functionalities of vCenter Server machine and see if any other impact occurred due to the recent patches. If yes, then roll back the patches installed recently and or uninstall them from Add Remove Programs.
Once the verification is finished, and all the application/s runs without an issue then remove the Snapshot from the vCenter Server.
Change Request is required to put the patches and having maintenance on the vCenter Server.

Upgrade to the new version release with same build or patch/es (3-6 months)


Every six months check the VMware’s web site for any new updates available for vCenter Server and download them and have a maintenance window with a Change request to put those patch/es or update/s.

Major version upgrade is not discussed here as it requires the whole environment upgrade.
As usual take the snapshot of the virtual machine and also make sure that a full backup of vCenter is taken along with necessary database/s before applying the patch/update.
One can verify on the download site for any critical issue which got resolved by VMware from security stand point or other critical areas which are flagged as Bug with the product, then, it’s very important to apply such patch/es or update/s with an Emergency Change Request to avoid any impact on the existing environment e.g. SSL issue or some other security flaw/s.
Keep checking http://kb.vmware.com/kb/ and http://blogs.vmware.com/ site frequently and look for recently modified/created articles for vCenter Server which will have similar information about any known issue/s which got taken care with a single patch/update or multiple patches/updates.

vCenter Server Service Restart (as needed)
Sometimes due to the nature of the issues, you may just restart the vCenter Server Service rather than restarting the whole vCenter Server. In such cases, please make sure that you verify all the other dependent application/s, service/s and other components which are heavily rely and integrated to the vCenter Server service and to avoid any disruption to the existing production workload in Private Cloud, you need to inform the necessary stake holders about the possible impact on the functionalities and availability of services offered by whole vRealize suite and vCenter Server combination. This should be done only with Change Request during after hours.
For more information refer http://kb.vmware.com/kb/1003895

Resource Availability on ESXi  (upon scheduling maintenance)



Make sure we have enough resources on ESXi where the vCenter Server will be powering on and running (in case disaster occurred and the vCenter Server was shut down).
Verify if any resource pools or memory/cpu reservation configured at the cluster level, then make sure such resources are available to the vCenter Server virtual machine.

vCenter Server and vRealize Automation Center portal (as and when required)
During the maintenance of vCenter Server the console to the virtual machines are not available and also the Access to the vRA portal (if you are using vRA) is not available to deploy any of the virtual machine


Changing IP address of Vcenter Server virtual machine(as and when required)

Whenever you need ot change the IP address of the vCenter Server please proceed very carefully as so many other components are involved and dependent on vCenter Server e.g. Plugins, vRA, vRO etc.


First of all, create backups of the vCenter Server VM and underlying SQL database.


·         Set DRS to manual mode to avoid anything moving around (optional as it depends on the configuration in place at Cluster level).
·         Identified the ESXi host running the vCenter VM and connected directly to the host with the vSphere Client.
·         Close any sessions you have open to the vCenter Server (Web Client, vSphere Client, etc.)
·         Open a console window to the vCenter Server by way of the ESXi host.
·         Stop all VMware services.
·         Changed the IPv4 address and IPv4 gateway.
·         Ping the new Default Gateway for Test and also try pinging other ESXi hosts in the same cluster and other clusters, do some more ping test with other virtual machine in same Datacenter and other Datacenter as well and to the Internet for making sure end to end connectivity.
·         Restarted the vCenter Server.
·         Put DRS back to fully automated (optional based on your setup)


Changing FQDN of vCenter Server virtual machine(as and when required)

The same recommendation as of changing the IP address will apply for FQDN of the vCenter Server virtual machine. Also make sure the Active Directory is reflecting the new name and all the DNS records get updated upon the change. Check with the Server Team if needs any help on updating the DNS records.

Plugins and other Extensions of vCenter Server (as and when required)



Check and verify all the plugin operations e.g. Storage plugin or Update Manager or External Backup solution plugin or #vRealize Orchestrator as and when vCenter Server got patched/updated/upgraded from one version to another. Major version always requires to update the plugins and then test the functionality.

Backup of vCenter server (monthly)

Make sure the Backup is done and includes a full back up of the vCenter Virtual machine each month. Verify with Backup Team about the same.

1)      In case of troubleshooting / maintenance only you can try restarting vCenter Service first and see if the issue gets resolved or not and if not then you can shut down the service and restart the virtual machine

For more information please refer

2)      Make sure you have enough resources on the ESXi host in case of Disaster occurred and the vCenter server was shut down
3)      For Patching you need to have a maintenance window scheduled with a proper Change Request request and then patch the VM with specific OS related critical and important patches

4)      For Database maintenance refer the following KB and make sure you have the Full Backup done before you proceed
5)      For purging old Data from the vCenter Database please refer to http://kb.vmware.com/kb/1025914
6)      During the maintenance of vCenter Server the console to the virtual machines are not available and also the Access to the vRA portal (if using to deploy VMs) is not available to deploy any of the virtual machine
7)      Whenever you need to change the IP address of the vCenter Server please proceed very carefully as so many other components are involved and dependent on vCenter Server e.g. Plugins, vRA, vRO etc.

First of all, create backups of the vCenter Server VM and underlying SQL database.
1.    Set DRS to manual mode to avoid anything moving around (optional as it depends on the configuration in place at Cluster level).
2.    Identified the ESXi host running the vCenter VM and connected directly to the host with the vSphere Client.
3.    Close any sessions you have open to the vCenter Server (Web Client, vSphere Client, RDP etc.)
4.    Open a console window to the vCenter Server by way of the ESXi host.
5.    Stop all VMware services.
6.    Changed the IPv4 address and IPv4 gateway.
7.    Ping the new Default Gateway for Test and also try pinging other ESXi hosts in the same cluster and other clusters, do some more ping test with other virtual machine in same Datacenter and other Datacenter as well and to the Internet for making sure end to end connectivity.
8.    Restart the vCenter Server.
9.    Put DRS back to fully automated (optional based on your setup)
8)      The same recommendation as per Item #7 goes for changing the FQDN of the vCenter Server virtual machine. Also make sure the Active Directory is reflecting the new name and all the DNS records get updated upon the change.
9)      Check all the Templates’ registration and do a test deployment of a virtual machine from the template/s to see if any error occurs
10)   Check and verify all the plugin operations e.g. Storage plugin or Update Manager or External Backup solution plugin or #vRealize Orchestrator
11)    Make sure the Backup is done and includes a full back up of the vCenter Virtual machine each month. Verify with Backup Team about the same.
Hope you will find the above useful in your environment and as vCenter Server is a crucial core components, necessary steps needs to be taken to make sure it runs smoothly without any issues.

I have not included anything about VCSA but you can use the same information for Windows based vCenter and just replace the services portion accordingly and add ssh to the connection list.

If you have any Feedback then do let me know please. 

Please share and care ! 

Enjoy !!