The Auditors are coming!
Here are 2 handy scripts for you to run against your VMWare database. Written for Oracle, but will
This one, returns the OS type and name of a virtual machine, and the host it runs on:
select v.DNS_name, h.dns_name, v.guest_osfrom vpx_vm vinner join VPX_HOST h on h.id = v.host_idwhere v.DNS_NAME is not nullorder by h.dns_name;
This one returns build version, name, boot-time and some blank and prefilled columns (because of the spreadsheet we had to use) You will need to replace [VCNAME] with your Virtual Center name. Funny that
select l.product_name, l.edition_name, l.product_version, '', h.boot_time, h.name, '[VCNAME]', '', '', 'Production', 'Location', '', '', '', '', h.cpu_core_count / h.cpu_count, h.cpu_count, h.product_name from vpx_lic_assets aThis should help with the most basic questions. Other people want more, or less info.
inner join vpx_lic_context c on a.asset_id = c.asset_id
inner join vpx_lic_licenses l on c.license_id = l.license_id
inner join vpxv_hosts h on a.name = h.dns_name;
Some useful tables/views:
Tables:
vpx_lic_licenses
vpx_lic_assets
vpx_lic_context
vpx_vm
vpx_host
Views:
vpxv_hosts
Thanks for reading,
No comments:
Post a Comment