Re: how to fetch Memory/CPU hot add limit for virtual machine by using 'Advanced search' operation ? (5029 Views)
Reply
Established Member
jadda007
Posts: 2
Registered: ‎07-23-2011
Message 1 of 5 (5,044 Views)
Accepted Solution

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

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 ?
Please use plain text.
Honored Contributor
Mahmoud Ibrahim
Posts: 1,574
Registered: ‎05-21-2008
Message 2 of 5 (5,029 Views)

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

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 

vmware.png

 

You can use the below links for reference 

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

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

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

Regards,
Mahmoud Ibrahim
http://www.mahmoudthoughts.com
  • 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.
  • Please use plain text.
    Valued Contributor
    jadda
    Posts: 94
    Registered: ‎07-19-2012
    Message 3 of 5 (5,008 Views)

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

    Hi Mahmod,

     

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

    Please use plain text.
    Valued Contributor
    jadda
    Posts: 94
    Registered: ‎07-19-2012
    Message 4 of 5 (4,994 Views)

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

    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.

    Please use plain text.
    Honored Contributor
    Mahmoud Ibrahim
    Posts: 1,574
    Registered: ‎05-21-2008
    Message 5 of 5 (4,974 Views)

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

    [ Edited ]

    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.ht...

     

    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
    http://www.mahmoudthoughts.com
  • 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.
  • Please use plain text.
    The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation