jadda007 Absent Member.
Absent Member.
7059 views

how to fetch Memory/CPU hot add limit for virtual machine by using 'Advanced search' operation ?

Jump to solution
Hi i would like to  fetch Memory/CPU hot add limit for virtual machine by using 'Advanced search' operation located in integrations  "\vmware\vmware virtualinfra\utilities\advanced search".If anyone has better idea please post here ?
Labels (3)
0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

Re: how to fetch Memory/CPU hot add limit for virtual machine by using 'Advanced search' operation ?

Jump to solution

Hi Jadda,
I will try to help here as much as possible as I don't have VMware environment accessible for now.

 

the attribute for Hot plug memory add  is hotPlugMemoryLimit

for CPU I did not find called CPU add limit but there are two attributes cpuHotAddEnabled and  cpuAllocation

 

 

The cpuAllocation has other sub-properties like limit that may be useful.

 

 

If you would like to use them in search so ensure that propsType is VirtualMachine and PropsPathSet is config.thepropertiesMentionedAbove  like config.hotPlugMemoryLimitconfig.cpuHotAddEnabled and/or config.cpuAllocation.limit 

 

You can use the below links for reference 

http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.wssdk.apiref.doc_50%2Fvim.VirtualMachine.html

http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.wssdk.apiref.doc_50%2Fvim.vm.ConfigInfo.html

http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.wssdk.apiref.doc_50%2Fvim.ResourceAllocationInfo.html

Regards,
Mahmoud Ibrahim
https://www.itmthoughts.com
New version of Mahmoudthoughts witten by other IT experts
  • Say thanks by clicking the "Kudos! Star" which is on the left.

  • Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue.
  • 4 Replies
    Micro Focus Expert
    Micro Focus Expert

    Re: how to fetch Memory/CPU hot add limit for virtual machine by using 'Advanced search' operation ?

    Jump to solution

    Hi Jadda,
    I will try to help here as much as possible as I don't have VMware environment accessible for now.

     

    the attribute for Hot plug memory add  is hotPlugMemoryLimit

    for CPU I did not find called CPU add limit but there are two attributes cpuHotAddEnabled and  cpuAllocation

     

     

    The cpuAllocation has other sub-properties like limit that may be useful.

     

     

    If you would like to use them in search so ensure that propsType is VirtualMachine and PropsPathSet is config.thepropertiesMentionedAbove  like config.hotPlugMemoryLimitconfig.cpuHotAddEnabled and/or config.cpuAllocation.limit 

     

    You can use the below links for reference 

    http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.wssdk.apiref.doc_50%2Fvim.VirtualMachine.html

    http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.wssdk.apiref.doc_50%2Fvim.vm.ConfigInfo.html

    http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.wssdk.apiref.doc_50%2Fvim.ResourceAllocationInfo.html

    Regards,
    Mahmoud Ibrahim
    https://www.itmthoughts.com
    New version of Mahmoudthoughts witten by other IT experts
  • Say thanks by clicking the "Kudos! Star" which is on the left.

  • Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue.
  • jadda Absent Member.
    Absent Member.

    Re: how to fetch Memory/CPU hot add limit for virtual machine by using 'Advanced search' operation ?

    Jump to solution

    Hi Mahmod,

     

      The info. u have given helps a lot.Especially the URL's u have given are very informational.thanks for your help

    0 Likes
    jadda Absent Member.
    Absent Member.

    Re: how to fetch Memory/CPU hot add limit for virtual machine by using 'Advanced search' operation ?

    Jump to solution

    Hi ,

      You have given me a Good info,which is very useful.But i want fetch  adapter name or device name.Can u please help me on this.I am trying to use  'DeviceInfo'.But it is showing invalid property .

     

    For freeSpace in Data store i have used info.freeSpace and for hot add limit i have used config.hotPlugMemoryLimit.how can i select info or config? or do i need select other.can u please guide me on this.

    0 Likes
    Micro Focus Expert
    Micro Focus Expert

    Re: how to fetch Memory/CPU hot add limit for virtual machine by using 'Advanced search' operation

    Jump to solution

    Hi Jadda,

    You can try to use network.XXXXX

     

    http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.wssdk.apiref.doc_50%2Fvim.Network.html

     

    For the second section on how/why  to use info. or config. on which case to use them

    Note: I am not developer, I am just trying to help.

     

    VMware  management uses differnt classes to handle each aspect of the Vmeare environment like you may need to create new network vnet, or read network related details, you may need to read the free amount of space on datastore, some of those objects are interconnected like having VM that uses certain network and stored in datastore.

     

    So that's why when you call VM attributes you may call info.something as it is related to VM info in some cases you call config.somthing which is for retriving/ or set certain configuration values.

     

    so for example  VM data object is for VM representation http://pubs.vmware.com/vsphere-50/topic/com.vmware.wssdk.apiref.doc_50/vim.VirtualMachine.html

    You can see in the 1st table under property name you will find something like guest which can be used to retrieve the VMtools version installed guest.toolsVersion or the running status of the VM by guest.gueststate

     

     

    In technical way

    VMWARE managed objects are many and many of their attributes are shared between them simply data object of network

     

    The data objects like (VM, Datastore, Host etc) has attibutes stored and shared between them.

     

    lis of VMware Manage Objects http://pubs.vmware.com/vsphere-50/topic/com.vmware.wssdk.apiref.doc_50/index-mo_types.html

    Regards,
    Mahmoud Ibrahim
    https://www.itmthoughts.com
    New version of Mahmoudthoughts witten by other IT experts
  • Say thanks by clicking the "Kudos! Star" which is on the left.

  • Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue.
  • The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.