Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Need storage allocation per configuration in Labmanager

$
0
0

Hi All,

 

I am looking for a report to find storage allocation per configuration or per VM in LabManager. I need information like which user is using how much storage.

 

Can any one help me to find out the storage like below query or any other powercli script??

 

use LabManager

go

 

select

  right('000000' + convert(varchar,bvs.dir_id),6) + '-' + left(bvs.name,15) as "Name in VCeneter",

  left(bko.name,12) as "Organization",

  left(bkw.name,8) as "Workspace",

  left(us.fullname,20) as "User",

  left(cfg.name,25) as "Configuration",

  dir.chain_length as "Chain Length",

  left(ds.display_name,15) as "LUN",

  left(ms.display_name,26) as "ESX Server",

  rii.ip_addr as "Internal IP",

  rie.ip_addr as "External IP",

  left(bvs.vm_tools_version,7) as "VM Tools",

  bvs.vcpu_count "CPU Count",

  left(bvs.mem,5) as "Memeory",

  convert(varchar(19), bvs.date_created, 120) as "Created",

  convert(varchar(19), dvs.date_deployed, 120) as "Deloyed"

 

from BucketVirtualServer bvs

  inner join Bucket bko on bko.bucket_id=bvs.OrganizationBucketId

  inner join Bucket bkw on bkw.bucket_id=bvs.bucket_id

  inner join ConfigurationView cfg on bvs.sg_id=cfg.sg_id

  inner join Usr us on us.user_id=bvs.user_id

  inner join FsDir dir on dir.dir_id=bvs.dir_id

  inner join Datastore ds on ds.datastore_id=dir.datastore_id

  inner join NetworkInterface ni on bvs.vs_id=ni.vs_id

  inner join ReservedIPAddress rii on rii.address_id=ni.ip_address_id

  left join ReservedIPAddress rie on rie.address_id=ni.ext_address_id

  inner join DeployedVirtualServer dvs on dvs.vs_id=bvs.vs_id

  inner join ManagedServer ms on ms.ms_id=dvs.ms_id

 

where bvs.is_vrouter=0

order by bvs.dir_id

go

 

I know it is difficult to get this data as all the VM's in LabManager are linked clones. Still want to find if there is a way.

 

Thanks,

Srikanth Chagarlamudi


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>