Used cases for custom attributes


Let’s see how to add custom attribute. Custom attributes are string and stored in vCenter. These attributes can help you sort the inventory based on the attributes

Let’s get used to how to create custom attribute

  • Click on Administration menu, select custom attributes

image

  • Select the type of attribute and provide a suitable name for it

image

  • In my case I select Virtual Machine and added three attributes
    • Business Owner
    • BuildBy
    • Purpose
  • Also I created a global attribute and named it as priority.
  • Below is how it looks now

image

  • Let’s go to virtual machine & fill these attributes as appropriate by press Edit (encircled Red)

image

  • Same steps are followed for host as shown below

image

  • So we create the custom attributes and associated them with the VM, host and also template (using Global attribute)

Used Cases

CASE:01

  • You can export the data of all managed objects from vCenter as explain here
  • Click on the folder/Datacenter/Cluster depending upon what is the scope of inventory. Then click export and you have the data shown below(please click on the image for clarity)
  • This have now custom attributes added i.e. Buildby,Business owner and Purpose
  • This information is highly critical when it comes to
    • Charge back
    • Identifying the owner
    • Purpose of the Virtual Machine

image

CASE:02

Second use case is to sort the inventory data within vCenter for quick action.

  • Suppose you have a DR situation where in you wish to migrate all High and medium servers to another Host.
  • Then you would need to able to identify the virtual machine based on this criteria. Assuming custom attribute is create with field Priority (High,Medium and low). It is very simple to find out as shown below
  • So how to action it
    • Select Host or Cluster
    • Select Virtual machine tab
    • In filter field (contains) select priority (encircled Red)

image

    • Select all VM’s and & migrate to another host.

image

So custom attributes can be of great help and they can be easily automated using SDK. Not sure if it now possible using powershell.

Advertisements

3 comments on “Used cases for custom attributes

  1. Hi Preetam… it’s really useful tip for the Shared Virtualization.. and ISPs, can very well use this for their services to identify the virtual guess using attributes.. I would also like to add attribute Owner E-mail ID to further automate VM Reports.. if any one has got such plans… Thanks again for this Excellant stuff.

  2. This was very helpful to me at our company. I had seen the custom attributes feature in vCenter before but never really understood the use case. I have now implemented this for our company’s QA cluster VMs and it works great for user consistency and for users checking in and out VMs for use. Thanks!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s