Trying to added numbers of chargeback for thin discs
All,
I found a verion of the below script here but I need to change so that we only charge for use when a thin disk is used as not all VM is still thin.
Y at - it an easy way to add a disk usage if her thin instead of assigned capacity... I would need to keep the appearance of tiered of the script storage.
$report = @)
#Get all s Vm, need info and understand storage
#get - vm - name NHN | % {
Get - vm | % {
$vm = $_
$T1 = ($_ | get-HDD |) Where-Object {$_.} Filename-match 'Mirror'} | measure - object - property CapacityKB-sum). Sum
$T2 = ($_ | get-HDD |) Where-Object {$_.} Filename-match "Fiber" - and $_. Filename-match "CF"} | measure - object - property CapacityKB-sum). Sum
$T3 = ($_ | get-HDD |) Where-Object {$_.} Filename-match 'SATA'} | measure - object - property CapacityKB-sum). Sum
$_ | Get-Datastore. Where-Object {$_.} Type - eq "VMFS"} | % {
$row = "" | Select - the name of the property, MemoryMb NumCPU, "T1 (GB) ',' T2 (GB) ',' T3 (GB) ', 'Cost Center', 'Cost of storage', 'Extra CPU', 'Extra Mem', 'Total'"
$row. Name = $vm. Name
$row. MemoryMb = $vm. MemoryMb
$row. {T1 (GB)} = "" f ($T1 / 1 Mb)
$row. {T2 (GB)} = "" f ($T2 / 1 Mb)
$row. {T3 (GB)} = "" f ($T3 / 1 Mb)
need custom field cost center
$row. {Cost center} is $vm. CustomFields.Item ('Cost Center')
Start doing the calculations
$row. {Store cost} = (($row.)) {} T1 (GB)} * 5.2) + ($row. {} T2 (GB)} * 2.6) + ($row. {} T3 (GB)} * 1))
if($Row.) NumCpu - gt 1) {[int] $row.} {{} Additional CPU} = 450}
Else {[int] $row.} {{} Additional CPU} = 0}
if($Row.) MemoryMb - gt 2084) {[int] $row.} {} Extra Mem} = (($row.)) MemoryMb - 2084) *. (02)}
Else {[int] $row.} {} Extra Mem} = 0}
$row. = ($row.{ Storage cost} + $row. {Extra CPU} + $row. {Additional Mem} + 550)
$report += $row
}
}
print to excel
$report | Sort - Name property. Sort - unique name. Export-Csv "C:\chargeback.csv" - noTypeInformation
#$report | Sort - Name property. Sort - unique name
Sorry for the delay, kind of lost that on my list
Try the attached script
____________
Blog: LucD notes
Twitter: lucd22
Tags: VMware
Similar Questions
-
Can not enter the alphabetical letters in redemption code... only numbers. Œuvres for keyboard very well everywhere else on my iMac.Any suggestions?
Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html
-
Several numbers of cell for the same person
Is it possible to store multiple numbers of cell for the same person in my contacts? For example: I have a contact with two phone numbers, these are all cell phones, but in the contacts that they marked as the default cell and home numbers. When I am trying to change home to cell number and record this is not registered. It is always the cell and home numbers. So my question is: how to change all the numbers to cell Type?
When you change the contact, press the label, scroll and choose custom label. You can't have two identical labels, but you can have labels custom as mobile2, mobile3, etc.
-
The error code is 'Windows Update error 80072ee2'. SO how to fix in a step-by-step fashion. I added the site proposed for the update in my antivirus while list.
Hi Sarma_RN,
1. When you receive the error message?
2. update you are trying to install?
3. When was the last time you were able to install updates?
If Windows Update, error 80072ee2 during updates, the Windows Update servers may experience an unusually high number of requests for updates. Close Windows Update, wait 10 to 15 minutes, and then run Windows Update again. Alternatively, you can wait for automatic update of Windows run at its next scheduled time.
These errors can occur caused by one of the following problems:
- Applications or processes that interfere with Internet communications
- Problems on your computer
- Strong Internet activity
- Recoverable database errors
See the Microsoft article and try the steps mentioned below.
You may encounter temporary connection related errors when you use Windows Update or Microsoft Update to install updates
http://support.Microsoft.com/kb/836941
I hope this helps!
Halima S - Microsoft technical support.
Visit our Microsoft answers feedback Forum and let us know what you think.
-
win xp sp3 restart after trying to install edimax ps-1216u for printer laserjet p1102
win xp sp3 restart after trying to install edimax ps-1216u for printer laserjet p1102
I have the printer installed that tried to install edimax ps-1216u and when it tries to install the printer, the computer restartsProblem solved! I have disabled smart installation with SIUttility for this computer. I have manually installed the printer by adding the port tcp/ip standard and all is ok now.
-
Adding EMC SRDF adapter for VMware SRM fails
Hello community,
We have DMX storage in the protected site and recovery site. We are trying to install the array manager for MRS.
Adding matrix Manager fails with the error below; hoping someone has fixed this and can offer some guideance. Thank you!
Add Array Manager
Cannot add the table view manager.
SRA command 'discoverArrays' failed. Unable to connect to the management table host.Check the logs of EmcSrdfSra for more information about the error.We have just added a new article in the knowledge base: addition of EMC SRDF adapter fails when you try to add the Array Manager (2041557)
I hope this captures all relevant to this issue.
-
I am constantly this message and it quite disturbing. Please, help me to turn it off.
What I found in Google is this link, and there is no answer.Message is:
E-mail % has already been added as an application for mailto linksHello
Sorry for this problem, it is very annoying sound! This occurs whenever you try to click on a link of e-mail on the Web sites, or is it at other times? It seems that there is a problem with the default mail client specified in Firefox. The first think you should do is verify that the e-mail client that you are using is indeed defined as the default system. Depending on the client you use, this could be done in a number of different ways.
The other thing you could try is to reset Firefox, which restores the common Firefox settings that can cause problems. Don't worry, you won't lose your bookmarks saved, passwords and other important things, but it will restore all the other settings, leaving you with a fresh start.
If you think something would open to try, here are the instructions: Refresh Firefox – reset the parameters and modules
Please let me know if this solves the problem, so I can check this off my list of todo - or please let me know if you need help, and I'll have to do this new sort it out for you!
Thank you
David -
Yester night I tried to improve my S5 iphone for a new virsion so at the end he asked me my icloud and the password I remember my password but not my icloud so I need your help please.
Seems that Apple has temporary problems with their activation servers. Many users report similar problem on older devices.
Latest news: If you can not activate your iPhone, iPad, or iPod touch after installing iOS 9.3 - Apple Support
Hoppefully Apple will highlight the top soon.
-
In the middle of my teens adding devices, and registration for the apple's music, security issues have been changed and now nobody seems to remember the answers. How can you bypass those to change your settings?
You must ask security team account Apple to reset your security questions. To contact them, click here and choose a method; If this page does not list one for your country or if you are unable to call, complete and submit this form.
(140233) -
I'm trying to set up Robin DNS for both terminal Servers Server on another site.
Hello
I'm trying to set up Robin DNS for both terminal Servers Server on another site.Our fields are not approved, but accessible through forwarders.I created two records as follows:xxx.x.XX.12 SRVxxx.x.XX.13 SRVWhen I perform an nslookup it lists two IP addressesE-mail address is removed from the privacy *.xxx.x.XX.12, xxx.x.xx.13When I ping srv it alternates between IP addressesResponse of xxx.x.xx.12 bytes = 32 time = 10ms TTL = 126Did I miss something?Thanks in advance.Hello
The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.
http://social.technet.Microsoft.com/forums/en/category/WindowsServer/
-
E-mail address of hotmail
My email account has been hacked and changed the password. I'm trying to get a contact address for hotmail get this account deleted
Unfortunately, this forum is not for Hotmail. They have a dedicated forum for any questions.
If your account has been hacked:
Compromised account - unauthorized account access:
http://windowslivehelp.com/solution.aspx?SolutionID=6ea0c7b3-1473-4176-b03f-145b951dcb41
Hotmail support:
http://windowslivehelp.com/product.aspx?ProductID=1
-
I am trying to download a WOW patch for my computer. I am using Windows 7 Home premium. I get an error message: "could not initialize storage. You may not be allowed to write on the destination path. "I'm on my admin account, so I should have permission to play where I want to. I did have this problem before with Windows 7. Is this a problem in Windows? Y at - it an easy fix?
Have you tried to manually install the hotfix by clicking on it, and as an administrator?
-
Trying to update my driver Bluetooth for Lenovo IBM T60
Trying to update my Bluetooth driver for Lenovo IBM T60 running Windows XP Pro service pk 3. Could someone - paste the direct link for this update. Thank you
Hello
You can check out the link below to download the Bluetooth for Lenovo IBM T60 drivers.
Lenovo IBM T60
http://support.Lenovo.com/en_US/research/hints-or-tips/detail.page?&LegacyDocID=MIGR-62928
-
I can't log on because of windows I tried to install windows 7 themes for xp
Hello
Step 1:
Check if you are able to boot to the desktop in safe mode. To start in safe mode follow the link given below.
http://support.Microsoft.com/kb/315222
Step 2:
If the problem does not occur in safe mode then boot to the desktop in normal mode and check that the third-party program is causing the problem. To configure your computer to clean boot follow the link below.
How to configure Windows XP to start in a "clean boot" State
http://support.Microsoft.com/kb/310353
Note: When you are finished troubleshooting, follow step 7 in the article to start on normal startup.
Step 3:
If this does not help you try to perform a system restore and see if that helps.
http://support.Microsoft.com/kb/306084
Note: When you perform the system restore to restore the computer to a previous state, programs and updates that you have installed are removed.
Hope this information is useful.
Amrita M
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
I am trying to add a new theme for my office does anyone no site I can download a theme halloween or any good themes besides?
Do the free trial of windowblinds is always easier: http://www.stardock.com/products/windowblinds/
You can download more than 4500 different themes for it here: http://wincustomize.com/explore/windowblinds
Maybe you are looking for
-
Where is Firefox 11.0 on the website?
I received a notice to update, but do not download the update. I clicked on the link supposed to update, but couldn't find anywhere 11.0.
-
I don't know there was once a function - perhaps a bar downstairs to the left of my firefox browser that shows the URL when I wriggle ovr no matter what link. Seems he rocked out--I barely noticed his absence - and cannot find a way to turn it back o
-
Qosmio G20-139 are still no vista driver available
I was wondering if someone had managed to find drivers for vista for the G20-139 as I continue to see them appear for the G30?
-
Lost all sound from my computer. all of the suggestions. I tried to reset by default but can not even get a sound test.
-
Windows wallpapers - vs-sample photos
Is there a reason why none of these categories produce a thumbnail image view, for example when changing the wallpaper? It seems at the very least be unfinished on the part of the developers do not have features that did not exist in previous systems